Skip to content

Commit d29bc2d

Browse files
Declare NIST KW and KWP as examples of key wrapping algorithms
1 parent 341ab2c commit d29bc2d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

include/psa/crypto_values.h

+18
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,24 @@
10941094
PSA_ALG_AEAD_WITH_TAG_LENGTH(ref, 0) ? \
10951095
ref :
10961096

1097+
/** The KW algorithm from NIST SP 800-38F, also described in RFC 3394.
1098+
*
1099+
* This algorithm may be used with any key type for a block cipher with
1100+
* a 128-bit block size, not just AES. The calculations are the same as
1101+
* described in SP 800-38F, but replacing uses of AES with the 128-bit
1102+
* block cipher that the key is for.
1103+
*/
1104+
#define PSA_ALG_NIST_KW ((psa_algorithm_t)0x0e401003)
1105+
1106+
/** The KWP algorithm from NIST SP 800-38F.
1107+
*
1108+
* This algorithm may be used with any key type for a block cipher with
1109+
* a 128-bit block size, not just AES. The calculations are the same as
1110+
* described in SP 800-38F, but replacing uses of AES with the 128-bit
1111+
* block cipher that the key is for.
1112+
*/
1113+
#define PSA_ALG_NIST_KWP ((psa_algorithm_t)0x0e401005)
1114+
10971115
#define PSA_ALG_RSA_PKCS1V15_SIGN_BASE ((psa_algorithm_t)0x10020000)
10981116
/** RSA PKCS#1 v1.5 signature with hashing.
10991117
*

0 commit comments

Comments
 (0)