mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-25 13:43:31 +00:00
Officially deprecate MBEDTLS_CIPHER_BLKSIZE_MAX
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
9e930e2887
commit
c453e2e7e8
@ -46,6 +46,7 @@ extern "C" {
|
|||||||
#define MBEDTLS_CMAC_MAX_BLOCK_SIZE 8 /**< The longest block used by CMAC is that of 3DES. */
|
#define MBEDTLS_CMAC_MAX_BLOCK_SIZE 8 /**< The longest block used by CMAC is that of 3DES. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
|
||||||
/** The longest block supported by the cipher module.
|
/** The longest block supported by the cipher module.
|
||||||
*
|
*
|
||||||
* \deprecated
|
* \deprecated
|
||||||
@ -60,6 +61,7 @@ extern "C" {
|
|||||||
* is sufficient for any cipher, but the name is defined in cmac.h for
|
* is sufficient for any cipher, but the name is defined in cmac.h for
|
||||||
* backward compatibility. */
|
* backward compatibility. */
|
||||||
#define MBEDTLS_CIPHER_BLKSIZE_MAX MBEDTLS_MAX_BLOCK_LENGTH
|
#define MBEDTLS_CIPHER_BLKSIZE_MAX MBEDTLS_MAX_BLOCK_LENGTH
|
||||||
|
#endif /* MBEDTLS_DEPRECATED_REMOVED */
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CMAC_ALT)
|
#if !defined(MBEDTLS_CMAC_ALT)
|
||||||
|
|
||||||
|
@ -111,8 +111,10 @@ void mbedtls_cmac_setkey(int cipher_type, int key_size, int result)
|
|||||||
|
|
||||||
TEST_ASSERT((cipher_info = mbedtls_cipher_info_from_type(cipher_type))
|
TEST_ASSERT((cipher_info = mbedtls_cipher_info_from_type(cipher_type))
|
||||||
!= NULL);
|
!= NULL);
|
||||||
|
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
|
||||||
TEST_LE_U(mbedtls_cipher_info_get_block_size(cipher_info),
|
TEST_LE_U(mbedtls_cipher_info_get_block_size(cipher_info),
|
||||||
MBEDTLS_CIPHER_BLKSIZE_MAX);
|
MBEDTLS_CIPHER_BLKSIZE_MAX);
|
||||||
|
#endif /* MBEDTLS_DEPRECATED_REMOVED */
|
||||||
TEST_LE_U(mbedtls_cipher_info_get_block_size(cipher_info),
|
TEST_LE_U(mbedtls_cipher_info_get_block_size(cipher_info),
|
||||||
MBEDTLS_CMAC_MAX_BLOCK_SIZE);
|
MBEDTLS_CMAC_MAX_BLOCK_SIZE);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user