Use PSA_BLOCK_CIPHER_BLOCK_LENGTH instead of PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE in ssl_tls12_populate_transform()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
6b27c97a91
commit
d1be7674a4
1 changed files with 1 additions and 1 deletions
|
@ -7103,7 +7103,7 @@ static int ssl_tls12_populate_transform( mbedtls_ssl_transform *transform,
|
||||||
ssl_mode == MBEDTLS_SSL_MODE_CBC_ETM )
|
ssl_mode == MBEDTLS_SSL_MODE_CBC_ETM )
|
||||||
{
|
{
|
||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||||
size_t block_size = PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE;
|
size_t block_size = PSA_BLOCK_CIPHER_BLOCK_LENGTH( key_type );
|
||||||
#else
|
#else
|
||||||
size_t block_size = cipher_info->block_size;
|
size_t block_size = cipher_info->block_size;
|
||||||
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
||||||
|
|
Loading…
Reference in a new issue