aboutsummaryrefslogtreecommitdiff
path: root/src/lib/crypto/krb/arcfour/arcfour_aead.c
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2009-12-06 16:23:11 +0000
committerGreg Hudson <ghudson@mit.edu>2009-12-06 16:23:11 +0000
commit638fc9ce2cfdd2e8395471d974ec0d28d1b9064c (patch)
tree31ea13f7a88d93b17c77f19a6b1eb66ad0fe8175 /src/lib/crypto/krb/arcfour/arcfour_aead.c
parent0c3ba5525f2e3fff51da72bdfaa35ce7dae9f800 (diff)
downloadkrb5-638fc9ce2cfdd2e8395471d974ec0d28d1b9064c.zip
krb5-638fc9ce2cfdd2e8395471d974ec0d28d1b9064c.tar.gz
krb5-638fc9ce2cfdd2e8395471d974ec0d28d1b9064c.tar.bz2
Make the libk5crypto hash_provider interface take crypto_iov lists
instead of lists of krb5_data. Make the base HMAC APIs take crypto_iov lists and drop the _iov variants. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23450 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto/krb/arcfour/arcfour_aead.c')
-rw-r--r--src/lib/crypto/krb/arcfour/arcfour_aead.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/crypto/krb/arcfour/arcfour_aead.c b/src/lib/crypto/krb/arcfour/arcfour_aead.c
index d886235..6f82921 100644
--- a/src/lib/crypto/krb/arcfour/arcfour_aead.c
+++ b/src/lib/crypto/krb/arcfour/arcfour_aead.c
@@ -137,8 +137,8 @@ krb5int_arcfour_encrypt(const struct krb5_keytypes *ktp, krb5_key key,
header->data.data += hash->hashsize;
/* Compute the checksum using the usage key. */
- ret = krb5int_hmac_iov_keyblock(hash, usage_keyblock, data, num_data,
- &checksum);
+ ret = krb5int_hmac_keyblock(hash, usage_keyblock, data, num_data,
+ &checksum);
if (ret != 0)
goto cleanup;
@@ -219,8 +219,8 @@ krb5int_arcfour_decrypt(const struct krb5_keytypes *ktp, krb5_key key,
goto cleanup;
/* Compute HMAC(usage key, plaintext) to get the checksum. */
- ret = krb5int_hmac_iov_keyblock(hash, usage_keyblock, data, num_data,
- &comp_checksum);
+ ret = krb5int_hmac_keyblock(hash, usage_keyblock, data, num_data,
+ &comp_checksum);
if (ret != 0)
goto cleanup;