summaryrefslogtreecommitdiffstats
path: root/providers/fips
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2021-06-21 14:01:36 +1000
committerPauli <pauli@openssl.org>2021-06-22 15:04:30 +1000
commit3b1978e4860770089b6244c549059c43bd9cc4da (patch)
treee765447beb1c53168e039b867e4d251539d285f3 /providers/fips
parent4aaed2a5fb06ea327f60eea9f17a8f31a664eb99 (diff)
Change self test for AES_CGM to perform both an encrypt and decrypt.
This is a request from the lab that changes the AES_GCM test back to perform both a encrypt and decrypt. (This makes no logical sense since this is not an inverse cipher). I have left the AES_ECB decrypt test in (although it may not be needed) since it is actually testing the inverse cipher case. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15844)
Diffstat (limited to 'providers/fips')
-rw-r--r--providers/fips/self_test_data.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/fips/self_test_data.inc b/providers/fips/self_test_data.inc
index 7b6226574c..8c28144405 100644
--- a/providers/fips/self_test_data.inc
+++ b/providers/fips/self_test_data.inc
@@ -255,7 +255,7 @@ static const ST_KAT_CIPHER st_kat_cipher_tests[] = {
ITM(aes_256_gcm_pt),
ITM(aes_256_gcm_ct)
},
- CIPHER_MODE_ENCRYPT,
+ CIPHER_MODE_ENCRYPT | CIPHER_MODE_DECRYPT,
ITM(aes_256_gcm_key),
ITM(aes_256_gcm_iv),
ITM(aes_256_gcm_aad),