+Tue Oct 4 14:51:32 1994 Theodore Y. Ts'o (tytso@dcl)
+
+* encryption.h: Add magic number to encryption structures.
+
Mon Oct 3 18:45:55 1994 Theodore Y. Ts'o (tytso@dcl)
* kdb.h: Add magic number to _krb5_db_entry. (This among other
#define KRB5_ENCRYPTION__
typedef struct _krb5_keyblock {
+ krb5_magic magic;
krb5_keytype keytype;
int length;
krb5_octet *contents;
} krb5_keyblock;
typedef struct _krb5_checksum {
+ krb5_magic magic;
krb5_cksumtype checksum_type; /* checksum type */
int length;
krb5_octet *contents;
} krb5_checksum;
typedef struct _krb5_encrypt_block {
+ krb5_magic magic;
struct _krb5_cryptosystem_entry *crypto_entry;
krb5_keyblock *key;
krb5_pointer priv; /* for private use, e.g. DES
} krb5_encrypt_block;
typedef struct _krb5_enc_data {
+ krb5_magic magic;
krb5_enctype etype;
krb5_kvno kvno;
krb5_data ciphertext;
/* could be used in a table to find an etype and initialize a block */
typedef struct _krb5_cryptosystem_entry {
+ krb5_magic magic;
krb5_error_code (*encrypt_func) NPROTOTYPE((krb5_const_pointer /* in */,
krb5_pointer /* out */,
const size_t,
#include <krb5/narrow.h>
typedef struct _krb5_cs_table_entry {
+ krb5_magic magic;
krb5_cryptosystem_entry *system;
krb5_pointer random_sequence; /* from init_random_key() */
} krb5_cs_table_entry;
/* could be used in a table to find a sumtype */
typedef struct _krb5_checksum_entry {
+ krb5_magic magic;
krb5_error_code (*sum_func) NPROTOTYPE ((krb5_pointer /* in */,
size_t /* in_length */,
krb5_pointer /* key/seed */,
#include "des_int.h"
static krb5_cryptosystem_entry mit_raw_des_cryptosystem_entry = {
+ 0,
mit_raw_des_encrypt_func,
mit_raw_des_decrypt_func,
mit_des_process_key,
};
static krb5_cryptosystem_entry mit_des_cryptosystem_entry = {
+ 0,
mit_des_encrypt_func,
mit_des_decrypt_func,
mit_des_process_key,
};
krb5_cs_table_entry krb5_raw_des_cst_entry = {
+ 0,
&mit_raw_des_cryptosystem_entry,
0
};
krb5_cs_table_entry krb5_des_cst_entry = {
+ 0,
&mit_des_cryptosystem_entry,
0
};
krb5_checksum_entry krb5_des_cbc_cksumtable_entry = {
+ 0,
mit_des_cbc_checksum,
sizeof(mit_des_cblock),
1, /* is collision proof */