diff options
author | Soby Mathew <soby.mathew@arm.com> | 2020-02-24 10:23:43 +0000 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2020-02-24 11:53:56 +0000 |
commit | fd247c4d6aedeef6b75b67dce9d669d07e38473c (patch) | |
tree | ca107d9658c7f6892db86d9529eab7ac662c971f /interface | |
parent | 044bd8ef1e1a3c5055d7987bb60cfd4673f61c3f (diff) | |
download | trusted-firmware-m-fd247c4d6aedeef6b75b67dce9d669d07e38473c.tar.gz |
Crypto: Introduce declarations for deprecated PSA APIs
The psa_asymmetric_sign() and psa_asymmetric_verify(),although part
of 1.0 beta3 specification, were deprecated by mbed-crypto as part
of migrating towards PSA 1.0 specification. Reintroduce the
declarations to allow Apps to use these APIs.
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Change-Id: I453b7be8db2114863e689aa6d5fbda3101c98bfb
Diffstat (limited to 'interface')
-rw-r--r-- | interface/include/psa/crypto_compat.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/interface/include/psa/crypto_compat.h b/interface/include/psa/crypto_compat.h index 86fea2d3b0..518008b8a7 100644 --- a/interface/include/psa/crypto_compat.h +++ b/interface/include/psa/crypto_compat.h @@ -84,6 +84,24 @@ typedef MBEDTLS_PSA_DEPRECATED psa_key_usage_t mbedtls_deprecated_psa_key_usage_ #define PSA_ASYMMETRIC_SIGN_OUTPUT_SIZE( key_type, key_bits, alg ) \ MBEDTLS_DEPRECATED_CONSTANT( size_t, PSA_SIGN_OUTPUT_SIZE( key_type, key_bits, alg ) ) +/* + * Deprecated PSA Crypto function names (PSA Crypto API <= 1.0 beta3) + */ +MBEDTLS_PSA_DEPRECATED psa_status_t psa_asymmetric_sign( psa_key_handle_t key, + psa_algorithm_t alg, + const uint8_t *hash, + size_t hash_length, + uint8_t *signature, + size_t signature_size, + size_t *signature_length ); + +MBEDTLS_PSA_DEPRECATED psa_status_t psa_asymmetric_verify( psa_key_handle_t key, + psa_algorithm_t alg, + const uint8_t *hash, + size_t hash_length, + const uint8_t *signature, + size_t signature_length ); + #endif /* MBEDTLS_DEPRECATED_REMOVED */ #ifdef __cplusplus |