Use blocksize instead of 16.
authorLove Hörnquist Åstrand <lha@kth.se>
Wed, 25 Mar 2009 15:37:53 +0000 (15:37 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Wed, 25 Mar 2009 15:37:53 +0000 (15:37 +0000)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24946 ec53bebd-3082-4978-b11e-865c3cabbd6b

lib/krb5/crypto.c

index 88d39bff6c7aced8136ee551bb9e78a081751c7b..035026018aa4d59443e7617695c510fef4fed4ff 100644 (file)
@@ -2371,10 +2371,11 @@ AES_PRF(krb5_context context,
     {
        const EVP_CIPHER *c = (*crypto->et->keytype->evp)();
        EVP_CIPHER_CTX ctx;
-       /* XXX blksz 1 for cts, so we can't use that */
+
        EVP_CIPHER_CTX_init(&ctx); /* ivec all zero */
        EVP_CipherInit_ex(&ctx, c, NULL, derived->keyvalue.data, NULL, 1);
-       EVP_Cipher(&ctx, out->data, result.checksum.data, 16);
+       EVP_Cipher(&ctx, out->data, result.checksum.data,
+                  crypto->et->blocksize);
        EVP_CIPHER_CTX_cleanup(&ctx);
     }