Skip to content

Commit 3836254

Browse files
Stream ciphers: align the low-order bits of key types and algorithms
1 parent f94001a commit 3836254

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/psa/crypto_values.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@
974974

975975
/** The ARC4 stream cipher algorithm.
976976
*/
977-
#define PSA_ALG_ARC4 ((psa_algorithm_t)0x04800001)
977+
#define PSA_ALG_ARC4 ((psa_algorithm_t)0x04800002)
978978

979979
/** The ChaCha20 stream cipher.
980980
*
@@ -986,7 +986,7 @@
986986
* The initial block counter is always 0.
987987
*
988988
*/
989-
#define PSA_ALG_CHACHA20 ((psa_algorithm_t)0x04800005)
989+
#define PSA_ALG_CHACHA20 ((psa_algorithm_t)0x04800004)
990990

991991
/** The CTR stream cipher mode.
992992
*

0 commit comments

Comments
 (0)