Permalink
Browse files

On decrypt, the ivec should be chained from ciphertext

not output

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/mskrb-integ@21689 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information...
1 parent e29397d commit 667b7b47579ea9aced8fe2ec290d18d989fe0219 hartmans committed Jan 3, 2009
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/lib/crypto/des/d3_aead.c
View
7 src/lib/crypto/des/d3_aead.c
@@ -199,6 +199,9 @@ krb5int_des3_cbc_decrypt_iov(krb5_crypto_iov *data,
krb5int_c_iov_put_block(data, num_data, oblock, MIT_DES_BLOCK_LENGTH, &output_pos);
}
- if (ivec != NULL)
- memcpy(ivec, oblock, MIT_DES_BLOCK_LENGTH);
+ if (ivec != NULL) {
+ op = ivec;
+ PUT_HALF_BLOCK(ocipherl,op);
+ PUT_HALF_BLOCK(ocipherr, op);
+ }
}

0 comments on commit 667b7b4

Please sign in to comment.