+2003-12-19 Ken Raeburn <raeburn@mit.edu>
+
+ * f_cbc.c (mit_des_zeroblock): Define, as a single cblock, not the
+ array of 8 that was used elsewhere.
+ * des_int.h (mit_des_zeroblock): Declare, and use a macro to stick
+ a krb5int prefix on it.
+
2003-07-22 Ken Raeburn <raeburn@mit.edu>
* f_cbc.c (krb5int_des_cbc_decrypt): Move declarations that were
const mit_des_key_schedule schedule,
const mit_des_cblock ivec, int enc);
+#define mit_des_zeroblock krb5int_c_mit_des_zeroblock
+extern const mit_des_cblock mit_des_zeroblock;
+
/* fin_rndkey.c */
extern krb5_error_code mit_des_finish_random_key
( const krb5_encrypt_block *,
* cleartext.
*/
+const mit_des_cblock mit_des_zeroblock /* = all zero */;
+
#undef mit_des_cbc_encrypt
int
mit_des_cbc_encrypt(in, out, length, schedule, ivec, enc)
+2003-12-19 Ken Raeburn <raeburn@mit.edu>
+
+ * des.c (mit_des_zeroblock): Don't define here.
+ * des3.c (mit_des_zeroblock): Don't define here.
+
2003-07-22 Ken Raeburn <raeburn@mit.edu>
* aes.c (aes_block_size, aes128_keysize, aes256_keysize):
#include "des_int.h"
#include "enc_provider.h"
-static const mit_des_cblock mit_des_zeroblock[8] /* = all zero */;
-
static krb5_error_code
k5_des_docrypt(const krb5_keyblock *key, const krb5_data *ivec,
const krb5_data *input, krb5_data *output, int enc)
#include "k5-int.h"
#include "des_int.h"
-static const mit_des_cblock mit_des_zeroblock[8] /* = all zero */;
-
static krb5_error_code
validate_and_schedule(const krb5_keyblock *key, const krb5_data *ivec,
const krb5_data *input, const krb5_data *output,
+2003-12-19 Ken Raeburn <raeburn@mit.edu>
+
+ * descbc.c (mit_des_zeroblock): Don't define here.
+ * k5_md4des.c (mit_des_zeroblock): Don't define here.
+ * k5_md5des.c (mit_des_zeroblock): Don't define here.
+
2003-07-22 Ken Raeburn <raeburn@mit.edu>
* descbc.c (k5_descbc_hash_size): Deleted.
#include "des_int.h"
#include "keyhash_provider.h"
-static const mit_des_cblock mit_des_zeroblock[8] /* = all zero */;
-
static krb5_error_code
k5_descbc_hash(const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *ivec,
const krb5_data *input, krb5_data *output)
/* Force acceptance of krb5-beta5 md4des checksum for now. */
#define KRB5_MD4DES_BETA5_COMPAT
-static const mit_des_cblock mit_des_zeroblock[8] /* = all zero */;
-
/* des-cbc(xorkey, conf | rsa-md4(conf | data)) */
/* this could be done in terms of the md4 and des providers, but
/* Force acceptance of krb5-beta5 md5des checksum for now. */
#define KRB5_MD5DES_BETA5_COMPAT
-static const mit_des_cblock mit_des_zeroblock[8] /* = all zero */;
-
/* des-cbc(xorkey, conf | rsa-md5(conf | data)) */
/* this could be done in terms of the md5 and des providers, but