need length in the checksum
authorJohn Kohl <jtkohl@mit.edu>
Tue, 12 Dec 1989 13:01:20 +0000 (13:01 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 12 Dec 1989 13:01:20 +0000 (13:01 +0000)
add checksum_entry

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@48 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/encryption.h

index 5845f7ff5e7b23817f039362bf6d0efda423e2f0..034dde2b7bc66ff9285bb4c8bc6e3f70f2bba109 100644 (file)
@@ -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,