Skip to content

Commit 4719db3

Browse files
authored
Merge pull request #121 from gilles-peskine-arm/psa-api-1.0-beta-beta3_fix_unlinked_macros
Fix unlinked macros in API spec
2 parents 5b93990 + a9b9cf7 commit 4719db3

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

include/psa/crypto.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,6 @@ psa_status_t psa_hash_clone(const psa_hash_operation_t *source_operation,
12101210
* \retval #PSA_SUCCESS
12111211
* Success.
12121212
* \retval #PSA_ERROR_INVALID_HANDLE
1213-
* \retval #PSA_ERROR_EMPTY_SLOT
12141213
* \retval #PSA_ERROR_NOT_PERMITTED
12151214
* \retval #PSA_ERROR_INVALID_ARGUMENT
12161215
* \p handle is not compatible with \p alg.
@@ -1249,7 +1248,6 @@ psa_status_t psa_mac_compute(psa_key_handle_t handle,
12491248
* The MAC of the message was calculated successfully, but it
12501249
* differs from the expected value.
12511250
* \retval #PSA_ERROR_INVALID_HANDLE
1252-
* \retval #PSA_ERROR_EMPTY_SLOT
12531251
* \retval #PSA_ERROR_NOT_PERMITTED
12541252
* \retval #PSA_ERROR_INVALID_ARGUMENT
12551253
* \p handle is not compatible with \p alg.
@@ -1596,7 +1594,6 @@ psa_status_t psa_mac_abort(psa_mac_operation_t *operation);
15961594
* \retval #PSA_SUCCESS
15971595
* Success.
15981596
* \retval #PSA_ERROR_INVALID_HANDLE
1599-
* \retval #PSA_ERROR_EMPTY_SLOT
16001597
* \retval #PSA_ERROR_NOT_PERMITTED
16011598
* \retval #PSA_ERROR_INVALID_ARGUMENT
16021599
* \p handle is not compatible with \p alg.
@@ -1638,7 +1635,6 @@ psa_status_t psa_cipher_encrypt(psa_key_handle_t handle,
16381635
* \retval #PSA_SUCCESS
16391636
* Success.
16401637
* \retval #PSA_ERROR_INVALID_HANDLE
1641-
* \retval #PSA_ERROR_EMPTY_SLOT
16421638
* \retval #PSA_ERROR_NOT_PERMITTED
16431639
* \retval #PSA_ERROR_INVALID_ARGUMENT
16441640
* \p handle is not compatible with \p alg.
@@ -2214,7 +2210,6 @@ static psa_aead_operation_t psa_aead_operation_init(void);
22142210
* \retval #PSA_SUCCESS
22152211
* Success.
22162212
* \retval #PSA_ERROR_INVALID_HANDLE
2217-
* \retval #PSA_ERROR_EMPTY_SLOT
22182213
* \retval #PSA_ERROR_NOT_PERMITTED
22192214
* \retval #PSA_ERROR_INVALID_ARGUMENT
22202215
* \p handle is not compatible with \p alg.
@@ -2276,7 +2271,6 @@ psa_status_t psa_aead_encrypt_setup(psa_aead_operation_t *operation,
22762271
* \retval #PSA_SUCCESS
22772272
* Success.
22782273
* \retval #PSA_ERROR_INVALID_HANDLE
2279-
* \retval #PSA_ERROR_EMPTY_SLOT
22802274
* \retval #PSA_ERROR_NOT_PERMITTED
22812275
* \retval #PSA_ERROR_INVALID_ARGUMENT
22822276
* \p handle is not compatible with \p alg.
@@ -3384,7 +3378,6 @@ psa_status_t psa_key_derivation_abort(
33843378
* \retval #PSA_SUCCESS
33853379
* Success.
33863380
* \retval #PSA_ERROR_INVALID_HANDLE
3387-
* \retval #PSA_ERROR_EMPTY_SLOT
33883381
* \retval #PSA_ERROR_NOT_PERMITTED
33893382
* \retval #PSA_ERROR_INVALID_ARGUMENT
33903383
* \p alg is not a key agreement algorithm

include/psa/crypto_values.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,19 @@
480480
#define PSA_ECC_CURVE_BRAINPOOL_P256R1 ((psa_ecc_curve_t) 0x001a)
481481
#define PSA_ECC_CURVE_BRAINPOOL_P384R1 ((psa_ecc_curve_t) 0x001b)
482482
#define PSA_ECC_CURVE_BRAINPOOL_P512R1 ((psa_ecc_curve_t) 0x001c)
483+
/** Curve25519.
484+
*
485+
* This is the curve defined in Bernstein et al.,
486+
* _Curve25519: new Diffie-Hellman speed records_, LNCS 3958, 2006.
487+
* The algorithm #PSA_ALG_ECDH performs X25519 when used with this curve.
488+
*/
483489
#define PSA_ECC_CURVE_CURVE25519 ((psa_ecc_curve_t) 0x001d)
490+
/** Curve448
491+
*
492+
* This is the curve defined in Hamburg,
493+
* _Ed448-Goldilocks, a new elliptic curve_, NIST ECC Workshop, 2015.
494+
* The algorithm #PSA_ALG_ECDH performs X448 when used with this curve.
495+
*/
484496
#define PSA_ECC_CURVE_CURVE448 ((psa_ecc_curve_t) 0x001e)
485497

486498
#define PSA_KEY_TYPE_DH_PUBLIC_KEY_BASE ((psa_key_type_t)0x60040000)

0 commit comments

Comments
 (0)