+
+Fri Jul 7 15:56:49 EDT 1995 Paul Park (pjpark@mit.edu)
+ * krb5.hin - Add checksum verifier dispatch in the checksum entry.
+ This is now the supported method for verifying checksums. Also
+ add krb5_verify_checksum which uses this dispatch.
+
Thu Jul 6 17:19:26 1995 Tom Yu <tlyu@lothlorien.MIT.EDU>
* krb5.hin: Change definition of krb5_os_localaddr to include
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;
*/
#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"