Stream decryption is handled in krb5_k_decrypt_iov; remove some
authorGreg Hudson <ghudson@mit.edu>
Mon, 30 Nov 2009 14:17:06 +0000 (14:17 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 30 Nov 2009 14:17:06 +0000 (14:17 +0000)
lingering checks in the dk and raw aead providers from before that
was introduced.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23385 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/krb/dk/dk_aead.c
src/lib/crypto/krb/raw/raw_aead.c

index 1e13fbce406c8d7c382071057170054d2c43a0e3..e5cdd96d235c36708371ac4c68cecea5b2dac060 100644 (file)
@@ -204,12 +204,6 @@ krb5int_dk_decrypt_iov(const struct krb5_aead_provider *aead,
     unsigned int hmacsize = 0;
     unsigned char *cksum = NULL;
 
-    if (krb5int_c_locate_iov(data, num_data,
-                             KRB5_CRYPTO_TYPE_STREAM) != NULL) {
-        return krb5int_c_iov_decrypt_stream(aead, enc, hash, key,
-                                            usage, ivec, data, num_data);
-    }
-
     /* E(Confounder | Plaintext | Pad) | Checksum */
 
     ret = aead->crypto_length(aead, enc, hash, KRB5_CRYPTO_TYPE_PADDING,
index a4551b93e59ea4f5611b03f85634ccbac23d8977..ea91de83a97c28aa1b5796b15af234c8efa34136 100644 (file)
@@ -116,12 +116,6 @@ krb5int_raw_decrypt_iov(const struct krb5_aead_provider *aead,
     unsigned int blocksize = 0; /* careful, this is enc block size not confounder len */
     unsigned int cipherlen = 0;
 
-    if (krb5int_c_locate_iov(data, num_data, KRB5_CRYPTO_TYPE_STREAM) != NULL) {
-        return krb5int_c_iov_decrypt_stream(aead, enc, hash, key,
-                                            usage, ivec, data, num_data);
-    }
-
-
     /* E(Confounder | Plaintext | Pad) | Checksum */
 
     ret = aead->crypto_length(aead, enc, hash, KRB5_CRYPTO_TYPE_PADDING, &blocksize);