mbedtls_ssl_get_record_expansion: use same condidion set as for non-psa build
Signed-off-by: Przemyslaw Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
parent
2c87a200a3
commit
be47ecf5e2
1 changed files with 4 additions and 1 deletions
|
@ -5096,7 +5096,10 @@ int mbedtls_ssl_get_record_expansion( const mbedtls_ssl_context *ssl )
|
|||
|
||||
|
||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||
if ( transform->psa_alg == PSA_ALG_IS_AEAD( transform->psa_alg ) ||
|
||||
if ( transform->psa_alg == PSA_ALG_GCM ||
|
||||
transform->psa_alg == PSA_ALG_CCM ||
|
||||
transform->psa_alg == PSA_ALG_AEAD_WITH_SHORTENED_TAG( PSA_ALG_CCM, 8 ) ||
|
||||
transform->psa_alg == PSA_ALG_CHACHA20_POLY1305 ||
|
||||
transform->psa_alg == MBEDTLS_SSL_NULL_CIPHER )
|
||||
{
|
||||
transform_expansion = transform->minlen;
|
||||
|
|
Loading…
Reference in a new issue