diff --git a/crypto/fipsmodule/aes/aes_test.cc b/crypto/fipsmodule/aes/aes_test.cc index 35bb40a312..9cc6338fb3 100644 --- a/crypto/fipsmodule/aes/aes_test.cc +++ b/crypto/fipsmodule/aes/aes_test.cc @@ -479,6 +479,13 @@ TEST(AESTest, ABI) { SCOPED_TRACE(blocks); CHECK_ABI(aes_hw_cbc_encrypt, buf, buf, AES_BLOCK_SIZE * blocks, &key, block, AES_ENCRYPT); +#if defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) + if (blocks == 0) { + Bytes buf_before = Bytes(buf,64); + CHECK_ABI(aes_hw_ctr32_encrypt_blocks, buf, buf, blocks, &key, block); + EXPECT_EQ(buf_before, Bytes(buf,64)); + } +#endif CHECK_ABI(aes_hw_ctr32_encrypt_blocks, buf, buf, blocks, &key, block); #if defined(HWAES_ECB) CHECK_ABI(aes_hw_ecb_encrypt, buf, buf, AES_BLOCK_SIZE * blocks, &key,