Skip to contentSkip to conversation

s390: in-kernel crypto test vectors.

PATCH In review Martin Schwidefsky 1 participant 1 message Dec 9, 2005 Crypto API

lore
Share & tools
lore
#0 lore raw

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.

---

 crypto/tcrypt.c |    4 +++
 crypto/tcrypt.h |   64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)
crypto/tcrypt.c +4 -0
diff -urpN linux-2.6/crypto/tcrypt.c linux-2.6-patched/crypto/tcrypt.c
@@ -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