summaryrefslogtreecommitdiffstats
path: root/src/include/krb5
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1989-12-12 13:01:20 +0000
committerJohn Kohl <jtkohl@mit.edu>1989-12-12 13:01:20 +0000
commitdf44c2db4e6a4e721167afd548fb245a48270751 (patch)
treea70bba0437011d127f5e75ac121954cb9c97696f /src/include/krb5
parente8c04cce5ef8ebdc0b27251bc5689edfe5bb3c5a (diff)
downloadkrb5-df44c2db4e6a4e721167afd548fb245a48270751.tar.gz
krb5-df44c2db4e6a4e721167afd548fb245a48270751.tar.xz
krb5-df44c2db4e6a4e721167afd548fb245a48270751.zip
need length in the checksum
add checksum_entry git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@48 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/krb5')
-rw-r--r--src/include/krb5/encryption.h9
1 files changed, 9 insertions, 0 deletions
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,