summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/k5-int.h25
1 files changed, 5 insertions, 20 deletions
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index 2047bb989..e0637e69d 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -653,6 +653,11 @@ struct krb5_enc_provider {
krb5_error_code (*decrypt)(krb5_key key, const krb5_data *cipher_state,
krb5_crypto_iov *data, size_t num_data);
+ /* May be NULL if the cipher is not used for a cbc-mac checksum. */
+ krb5_error_code (*cbc_mac)(krb5_key key, const krb5_crypto_iov *data,
+ size_t num_data, const krb5_data *ivec,
+ krb5_data *output);
+
krb5_error_code (*make_key)(const krb5_data *randombits,
krb5_keyblock *key);
@@ -671,26 +676,6 @@ struct krb5_hash_provider {
krb5_data *output);
};
-struct krb5_keyhash_provider {
- size_t hashsize;
-
- krb5_error_code (*hash)(krb5_key key, krb5_keyusage keyusage,
- const krb5_data *input, krb5_data *output);
-
- krb5_error_code (*verify)(krb5_key key, krb5_keyusage keyusage,
- const krb5_data *input, const krb5_data *hash,
- krb5_boolean *valid);
-
- krb5_error_code (*hash_iov)(krb5_key key, krb5_keyusage keyusage,
- const krb5_crypto_iov *data, size_t num_data,
- krb5_data *output);
-
- krb5_error_code (*verify_iov)(krb5_key key, krb5_keyusage keyusage,
- const krb5_crypto_iov *data,
- size_t num_data, const krb5_data *hash,
- krb5_boolean *valid);
-};
-
/*
* in here to deal with stuff from lib/crypto
*/