summaryrefslogtreecommitdiffstats
path: root/src/include
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/include
parent0c3ba5525f2e3fff51da72bdfaa35ce7dae9f800 (diff)
downloadkrb5-638fc9ce2cfdd2e8395471d974ec0d28d1b9064c.tar.gz
krb5-638fc9ce2cfdd2e8395471d974ec0d28d1b9064c.tar.xz
krb5-638fc9ce2cfdd2e8395471d974ec0d28d1b9064c.zip
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/include')
-rw-r--r--src/include/k5-int.h22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index 04e3310917..d16642e9e3 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 *);