svn rev #23573: trunk/src/lib/crypto/builtin/enc_provider/

ghudson@MIT.EDU ghudson at MIT.EDU
Sun Jan 3 18:12:19 EST 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=23573
Commit By: ghudson
Log Message:
Fix a case where krb5int_aes_decrypt was trying to encrypt a block
instead of decrypting it.



Changed Files:
U   trunk/src/lib/crypto/builtin/enc_provider/aes.c
Modified: trunk/src/lib/crypto/builtin/enc_provider/aes.c
===================================================================
--- trunk/src/lib/crypto/builtin/enc_provider/aes.c	2010-01-03 15:14:51 UTC (rev 23572)
+++ trunk/src/lib/crypto/builtin/enc_provider/aes.c	2010-01-03 23:12:19 UTC (rev 23573)
@@ -193,7 +193,7 @@
     nblocks = (input_length + BLOCK_SIZE - 1) / BLOCK_SIZE;
     if (nblocks == 1) {
         krb5int_c_iov_get_block(tmp, BLOCK_SIZE, data, num_data, &input_pos);
-        enc(tmp2, tmp, &ctx);
+        dec(tmp2, tmp, &ctx);
         krb5int_c_iov_put_block(data, num_data, tmp2, BLOCK_SIZE, &output_pos);
     } else if (nblocks > 1) {
         unsigned char blockN2[BLOCK_SIZE];   /* second last */




More information about the cvs-krb5 mailing list