mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
EVP: address CTR block size
This commit is contained in:
@ -34650,13 +34650,13 @@ static void test_wolfSSL_EVP_CIPHER_block_size(void)
|
|||||||
|
|
||||||
#ifdef WOLFSSL_AES_COUNTER
|
#ifdef WOLFSSL_AES_COUNTER
|
||||||
#ifdef WOLFSSL_AES_128
|
#ifdef WOLFSSL_AES_128
|
||||||
AssertIntEQ(EVP_CIPHER_block_size(EVP_aes_128_ctr()), AES_BLOCK_SIZE);
|
AssertIntEQ(EVP_CIPHER_block_size(EVP_aes_128_ctr()), 1);
|
||||||
#endif
|
#endif
|
||||||
#ifdef WOLFSSL_AES_192
|
#ifdef WOLFSSL_AES_192
|
||||||
AssertIntEQ(EVP_CIPHER_block_size(EVP_aes_192_ctr()), AES_BLOCK_SIZE);
|
AssertIntEQ(EVP_CIPHER_block_size(EVP_aes_192_ctr()), 1);
|
||||||
#endif
|
#endif
|
||||||
#ifdef WOLFSSL_AES_256
|
#ifdef WOLFSSL_AES_256
|
||||||
AssertIntEQ(EVP_CIPHER_block_size(EVP_aes_256_ctr()), AES_BLOCK_SIZE);
|
AssertIntEQ(EVP_CIPHER_block_size(EVP_aes_256_ctr()), 1);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1166,7 +1166,7 @@ int wolfSSL_EVP_CIPHER_block_size(const WOLFSSL_EVP_CIPHER *cipher)
|
|||||||
case AES_128_CTR_TYPE:
|
case AES_128_CTR_TYPE:
|
||||||
case AES_192_CTR_TYPE:
|
case AES_192_CTR_TYPE:
|
||||||
case AES_256_CTR_TYPE:
|
case AES_256_CTR_TYPE:
|
||||||
return AES_BLOCK_SIZE;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_AES_ECB)
|
#if defined(HAVE_AES_ECB)
|
||||||
case AES_128_ECB_TYPE:
|
case AES_128_ECB_TYPE:
|
||||||
|
Reference in New Issue
Block a user