From: John Kohl Date: Tue, 12 Dec 1989 13:01:20 +0000 (+0000) Subject: need length in the checksum X-Git-Tag: krb5-1.0-alpha2~1325 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=df44c2db4e6a4e721167afd548fb245a48270751;p=krb5.git need length in the checksum add checksum_entry git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@48 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/encryption.h b/src/include/krb5/encryption.h index 5845f7ff5..034dde2b7 100644 --- a/src/include/krb5/encryption.h +++ b/src/include/krb5/encryption.h @@ -25,6 +25,7 @@ typedef struct _krb5_keyblock { typedef struct _krb5_checksum { krb5_cksumtype checksum_type; /* checksum type */ + int length; octet contents[1]; /* actually can be more, depending on length */ } krb5_checksum; @@ -49,6 +50,14 @@ typedef struct _krb5_encrypt_block { key schedules */ } krb5_encrypt_block; +/* could be used in a table to find a sumtype */ +typedef struct _krb5_checksum_entry { + void * (*sum_func)(/* void *in, void *out, void *seed, + size_t in_length, size_t seed_length */); + int checksum_length; /* length of stuff returned by + sum_func */ +} krb5_checksum_entry; + /* per Kerberos v5 protocol spec */ #define KEYTYPE_NULL 0x0000 #define KEYTYPE_DES 0x0001 /* Data Encryption Standard,