remove unnecessary #define's
authorJohn Kohl <jtkohl@mit.edu>
Wed, 29 Nov 1989 14:39:13 +0000 (14:39 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 29 Nov 1989 14:39:13 +0000 (14:39 +0000)
change to pointer to krb5_cryptosystem_entry
add finish_key func

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

src/include/krb5/encryption.h

index cfed5e40007a196d5b03c32608c2acb544c28cf5..5ec9c59d0d439c7ad2b606af0e036f65d532e764 100644 (file)
@@ -30,25 +30,19 @@ typedef struct _krb5_cryptosystem_entry {
     int (*decrypt_func)(/* void *in, void *out, size_t length,
                           krb5_encrypt_block *block */);
     int (*process_key)(/* krb5_encrypt_block *block, krb5_keyblock *key */);
+    int (*finish_key)(/* krb5_encrypt_block *block */);
     int block_length;
     int pad_minimum;                   /* needed for cksum size computation */
     int keysize;
 } krb5_cryptosystem_entry;
 
 typedef struct _krb5_encrypt_block {
-    krb5_cryptosystem_entry crypto_entry;
+    krb5_cryptosystem_entry *crypto_entry;
     krb5_keyblock *key;
     void *priv;                                /* for private use, e.g. DES
                                           key schedules */
 } krb5_encrypt_block;
 
-#define efunc crypto_entry.encrypt_func
-#define dfunc crypto_entry.decrypt_func
-#define prkey crypto_entry.process_key
-#define blength crypto_entry.block_length
-#define padmin crypto_entry.pad_minimum
-#define ksize crypto_entry.keysize
-
 /* per Kerberos v5 protocol spec */
 #define        KEYTYPE_NULL            0x0000
 #define KEYTYPE_DES            0x0001  /* Data Encryption Standard,