Consolidate migration guide #512
No reviewers
Labels
No labels
api-break
approved
bug
component-docs
component-platform
component-test
dependencies
deprecation
DO-NOT-MERGE
enhancement
good first issue
help wanted
needs-adoption
needs-backports
needs-ci
needs-design-approval
needs-info
needs-preceding-pr
needs-review
needs-reviewer
needs-work
priority-high
priority-low
priority-medium
priority-scheduled
priority-very-high
resolved-after-1.1
single-reviewer
size-l
size-m
size-optimisation
size-s
size-xs
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-Mbed-TLS/TF-PSA-Crypto!512
Loading…
Reference in a new issue
No description provided.
Delete branch "migration-guide-1.0-consolidate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Put it in one file and fix broken links.
PR checklist
looks good overall. Only some minor typos and artefacts.
I have confirmed that the only text which has been removed is the following
docs/4.0-migration-guide/README
docs/4.0-migration-guide/private-decls/00README
Temporary sub-directory to avoid conflicts in private-decls.md.
Will be merged back to private-decls.md as part of
https://github.com/Mbed-TLS/TF-PSA-Crypto/issues/232
One file per header, with .md extension (and valid markdown content).
@ -0,0 +1,1076 @@# Migrating from Mbed TLS 3.x to TF-PSA-Crypto 1.0typo:
ommited->omittedMultiple occurences
include/psa/crypto_config.h.This
looks like merge artifact
A few fairly minor things that are probably only worth updating if you are already upreving,
@ -0,0 +1,1076 @@# Migrating from Mbed TLS 3.x to TF-PSA-Crypto 1.01.0 instead of 1?
instead.
all the options
@ -0,0 +12,4 @@- CMake is now the only supported build system.- The cryptography API is now mostly the PSA API: most legacy cryptography APIs have been removed. Some non-PSA APIs remain for features that PSA does not cover.- In the same vein, third-party implementations of cryptographic mechanisms must be provided as PSA drivers: ALT implementations are no longer supported.- In the same vein, the random generator configuration has been adapted and simplified.Random Number Generator not Random Generator?
@ -0,0 +243,4 @@### No random generator instantiationFormerly, applications using various cryptographic features needed to provide a random generator, generally by instantiating an entropy context (`mbedtls_entropy_context`) and a DRBG context (`mbedtls_ctr_drbg_context` or `mbedtls_hmac_drbg_context`). This is no longer necessary, or possible. All features that require a random generator (RNG) now use the one provided by the PSA subsystem.Random Number Generator?
@ -0,0 +458,4 @@Some obsolescent cryptographic mechanisms have been removed:* The library no longer supports DES (including 3DES). All supported block ciphers now have 128-bit blocks. As a consequence, the PKCS12 module, which provided the obsolete PBE mode for private key encryption that does not support stronger ciphers, has been removed.* The library no longer supports elliptic curves whose size is 224 bits or less. The following curves are no longer supported: secp192r1, secp192k1, secp224k1, secp224r1. Use larger curves such as secp256r1.static ecdh?
@ -0,0 +965,4 @@### Move the hash algorithm parameter into the algorithm identifierThe function `psa_pake_cs_set_hash()` has been removed. Its `hash` argument is now passed to `PSA_ALG_JPAKE()` which is now a function-like macro with one parameter.probably , which is now...
LGTM
@ -0,0 +243,4 @@### No random generator instantiationFormerly, applications using various cryptographic features needed to provide a random generator, generally by instantiating an entropy context (`mbedtls_entropy_context`) and a DRBG context (`mbedtls_ctr_drbg_context` or `mbedtls_hmac_drbg_context`). This is no longer necessary, or possible. All features that require a random generator (RNG) now use the one provided by the PSA subsystem.“Random generator” and “random number generator” are synonyms in practice. “Random number generator” is more traditional, but it's more of a random bit generator or random byte generator, really, so modern terminology is evolving. The abbreviation RNG has stuck, however.
In this context, I don't think there's any risk of confusion from mixing the two terms, so I prefer to not make further changes for this.
@ -0,0 +1,1076 @@# Migrating from Mbed TLS 3.x to TF-PSA-Crypto 1.0Technically 1 is a new major version, and 1.0.0 is the first release in that major version? I don't think that matters much anyway.
@ -0,0 +458,4 @@Some obsolescent cryptographic mechanisms have been removed:* The library no longer supports DES (including 3DES). All supported block ciphers now have 128-bit blocks. As a consequence, the PKCS12 module, which provided the obsolete PBE mode for private key encryption that does not support stronger ciphers, has been removed.* The library no longer supports elliptic curves whose size is 224 bits or less. The following curves are no longer supported: secp192r1, secp192k1, secp224k1, secp224r1. Use larger curves such as secp256r1.Static ECDH is a way to use ECDH. It wasn't a feature of the crypto library.
@ -0,0 +965,4 @@### Move the hash algorithm parameter into the algorithm identifierThe function `psa_pake_cs_set_hash()` has been removed. Its `hash` argument is now passed to `PSA_ALG_JPAKE()` which is now a function-like macro with one parameter.I don't understand your comment: the text already has “which is now”.