diff options
author | Paul Park <pjpark@mit.edu> | 1995-07-07 20:55:05 +0000 |
---|---|---|
committer | Paul Park <pjpark@mit.edu> | 1995-07-07 20:55:05 +0000 |
commit | fad1d6e48be12a7abe8dd80a9101780ace141bc3 (patch) | |
tree | 1f0674ae953f5ec7563df0a08d75523d4b38a6d4 /src/include/krb5.hin | |
parent | 84cbf814f09c6f58af470c356ec51109cff241a5 (diff) | |
download | krb5-fad1d6e48be12a7abe8dd80a9101780ace141bc3.zip krb5-fad1d6e48be12a7abe8dd80a9101780ace141bc3.tar.gz krb5-fad1d6e48be12a7abe8dd80a9101780ace141bc3.tar.bz2 |
Add checksum verifier dispatch in checksum entry
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6246 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/krb5.hin')
-rw-r--r-- | src/include/krb5.hin | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/include/krb5.hin b/src/include/krb5.hin index f750acb..ada092c 100644 --- a/src/include/krb5.hin +++ b/src/include/krb5.hin @@ -361,9 +361,17 @@ typedef krb5_error_code (*SUM_FUNC) KRB5_NPROTOTYPE ( size_t /* key/seed size */, krb5_checksum FAR * /* out_cksum */)); +typedef krb5_error_code (*SUM_VERF_FUNC) KRB5_NPROTOTYPE ( + (krb5_checksum FAR * /* out_cksum */, + krb5_pointer /* in */, + size_t /* in_length */, + krb5_pointer /* key/seed */, + size_t /* key/seed size */)); + typedef struct _krb5_checksum_entry { krb5_magic magic; - SUM_FUNC sum_func; + SUM_FUNC sum_func; /* Checksum generator */ + SUM_VERF_FUNC sum_verf_func; /* Verifier of checksum */ int checksum_length; /* length of stuff returned by sum_func */ unsigned int is_collision_proof:1; @@ -451,6 +459,7 @@ extern int krb5_max_cksum; /* max entry in array */ */ #define krb5_checksum_size(context, ctype) (krb5_cksumarray[ctype]->checksum_length) #define krb5_calculate_checksum(context, ctype, in, in_length, seed, seed_length, outcksum) ((*krb5_cksumarray[ctype]->sum_func)(in, in_length, seed, seed_length, outcksum)) +#define krb5_verify_checksum(context, ctype, cksum, in, in_length, seed, seed_length) ((*krb5_cksumarray[ctype]->sum_verf_func)(cksum, in, in_length, seed, seed_length)) /* * end "encryption.h" |