mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-02-04 00:05:05 +01:00
Testing aes_*_xts
This commit is contained in:
@@ -6039,6 +6039,14 @@ EVP_TEST_END:
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef OPENSSL_EXTRA
|
||||
ret = EVP_test(EVP_aes_128_xts(), key2, iv2, plain2, sizeof(plain2),
|
||||
cipher2, sizeof(cipher2));
|
||||
if (ret != 0) {
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
ret = wc_AesSetKey(&enc, key2, sizeof(key2), iv2, AES_ENCRYPTION);
|
||||
if (ret != 0)
|
||||
return -5000;
|
||||
@@ -6115,6 +6123,14 @@ EVP_TEST_END:
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef OPENSSL_EXTRA
|
||||
ret = EVP_test(EVP_aes_256_xts(), key1, iv1, plain1, sizeof(plain1),
|
||||
cipher1, sizeof(cipher1));
|
||||
if (ret != 0) {
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
ret = wc_AesSetKey(&enc, key1, sizeof(key1), iv1, AES_ENCRYPTION);
|
||||
if (ret != 0)
|
||||
return -5012;
|
||||
|
||||
Reference in New Issue
Block a user