From 638fc9ce2cfdd2e8395471d974ec0d28d1b9064c Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sun, 6 Dec 2009 16:23:11 +0000 Subject: 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 --- src/include/k5-int.h | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'src/include') diff --git a/src/include/k5-int.h b/src/include/k5-int.h index 04e331091..d16642e9e 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -667,8 +667,7 @@ struct krb5_hash_provider { char hash_name[8]; size_t hashsize, blocksize; - /* this takes multiple inputs to avoid lots of copying. */ - krb5_error_code (*hash)(unsigned int icount, const krb5_data *input, + krb5_error_code (*hash)(const krb5_crypto_iov *data, size_t num_data, krb5_data *output); }; @@ -703,23 +702,14 @@ void krb5int_nfold(unsigned int inbits, const unsigned char *in, unsigned int outbits, unsigned char *out); krb5_error_code krb5int_hmac(const struct krb5_hash_provider *hash, - krb5_key key, unsigned int icount, - const krb5_data *input, krb5_data *output); - -krb5_error_code krb5int_hmac_iov(const struct krb5_hash_provider *hash, - krb5_key key, const krb5_crypto_iov *data, - size_t num_data, krb5_data *output); + krb5_key key, const krb5_crypto_iov *data, + size_t num_data, krb5_data *output); krb5_error_code krb5int_hmac_keyblock(const struct krb5_hash_provider *hash, - const krb5_keyblock *key, unsigned int icount, - const krb5_data *input, krb5_data *output); - -krb5_error_code -krb5int_hmac_iov_keyblock(const struct krb5_hash_provider *hash, - const krb5_keyblock *key, - const krb5_crypto_iov *data, size_t num_data, - krb5_data *output); + const krb5_keyblock *keyblock, + const krb5_crypto_iov *data, size_t num_data, + krb5_data *output); krb5_error_code krb5int_pbkdf2_hmac_sha1(const krb5_data *, unsigned long, const krb5_data *, const krb5_data *); -- cgit