From 1987668bf1d228bcce73c97b01d462876d3a6d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 3 Feb 2004 21:05:57 +0000 Subject: [PATCH] add "next iv" test for aes128, check decryption case too git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13312 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/aes-test.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/krb5/aes-test.c b/lib/krb5/aes-test.c index 148cd5bec..e62016c80 100644 --- a/lib/krb5/aes-test.c +++ b/lib/krb5/aes-test.c @@ -587,6 +587,11 @@ encryption_test(krb5_context context, char *key, int keylen, if (!samep(i, "clear", p, enc[i].input, enc[i].len)) val = 1; + if (enc[i].nextiv && !samep(i, "iv", iv, enc[i].nextiv, 16)){ /*XXX*/ + krb5_warnx(context, "%d: iv", i); + val = 1; + } + free(p); if (val) {