s390: in-kernel crypto test vectors.
PATCH 10/17 s390: in-kernel crypto test vectors.
From: Jan Glauber <[email protected]>
[patch 10/17] s390: in-kernel crypto test vectors.
Add new test vectors to the AES test suite for AES CBC and AES with plaintext larger than AES blocksize.
Signed-off-by Jan Glauber <[email protected]>
Signed-off-by Martin Schwidefsky <[email protected]>
---
crypto/tcrypt.c | 4 +++ crypto/tcrypt.h | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+)
crypto/tcrypt.c +4 -0
@@ -805,6 +805,8 @@ static void do_test(void)//AES test_cipher ("aes" ,MODE_ECB ,ENCRYPT , aes_enc_tv_template,AES_ENC_TEST_VECTORS );test_cipher ("aes" ,MODE_ECB ,DECRYPT , aes_dec_tv_template,AES_DEC_TEST_VECTORS ); +test_cipher ("aes" ,MODE_CBC ,ENCRYPT , aes_cbc_enc_tv_template,AES_CBC_ENC_TEST_VECTORS ); +test_cipher ("aes" ,MODE_CBC ,DECRYPT , aes_cbc_dec_tv_template,AES_CBC_DEC_TEST_VECTORS );//CAST5 test_cipher ("cast5" ,MODE_ECB ,ENCRYPT , cast5_enc_tv_template,CAST5_ENC_TEST_VECTORS );
@@ -910,6 +912,8 @@ static void do_test(void)case 10 :test_cipher ("aes" ,MODE_ECB ,ENCRYPT , aes_enc_tv_template,AES_ENC_TEST_VECTORS );test_cipher ("aes" ,MODE_ECB ,DECRYPT , aes_dec_tv_template,AES_DEC_TEST_VECTORS ); +test_cipher ("aes" ,MODE_CBC ,ENCRYPT , aes_cbc_enc_tv_template,AES_CBC_ENC_TEST_VECTORS ); +test_cipher ("aes" ,MODE_CBC ,DECRYPT , aes_cbc_dec_tv_template,AES_CBC_DEC_TEST_VECTORS );break ;case 11 :
crypto/tcrypt.h +64 -0
76 lines not on this page · raw message