commit | cbe395332cd726d77d259b60789c8398369de69b | [log] [tgz] |
---|---|---|
author | Bence Szépkúti <bence.szepkuti@arm.com> | Tue Dec 08 00:01:31 2020 +0100 |
committer | Bence Szépkúti <bence.szepkuti@arm.com> | Tue Dec 08 00:01:31 2020 +0100 |
tree | 04f2b46a550c0a037bcfed591affc19d3bb08551 | |
parent | c6a26c940c2360bc328c5d866bd4f34dca25dba1 [diff] [blame] |
Substitute PSA_ALG_STREAM_CIPHER into all files Deprecate PSA_ALG_ARC4 and PSA_ALG_CHACHA20. Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 9640687..30261a5 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c
@@ -4430,7 +4430,7 @@ } #if defined(MBEDTLS_CHACHA20_C) else - if( alg == PSA_ALG_CHACHA20 ) + if( alg == PSA_ALG_STREAM_CIPHER && slot->attr.type == PSA_KEY_TYPE_CHACHA20 ) operation->iv_size = 12; #endif