+2002-02-22 Ken Raeburn <raeburn@mit.edu>
+
+ * arcfour.h, arcfour.c, string_to_key.c: Use const instead of
+ krb5_const.
+
2001-12-05 Ezra Peisach <epeisach@mit.edu>
* string_to_key.c (krb5_arcfour_string_to_key): Use size_t instead
void
krb5_arcfour_encrypt_length(enc, hash, inputlen, length)
- krb5_const struct krb5_enc_provider *enc;
- krb5_const struct krb5_hash_provider *hash;
+ const struct krb5_enc_provider *enc;
+ const struct krb5_hash_provider *hash;
size_t inputlen;
size_t *length;
{
krb5_error_code
krb5_arcfour_encrypt(enc, hash, key, usage, ivec, input, output)
- krb5_const struct krb5_enc_provider *enc;
- krb5_const struct krb5_hash_provider *hash;
- krb5_const krb5_keyblock *key;
+ const struct krb5_enc_provider *enc;
+ const struct krb5_hash_provider *hash;
+ const krb5_keyblock *key;
krb5_keyusage usage;
- krb5_const krb5_data *ivec;
- krb5_const krb5_data *input;
+ const krb5_data *ivec;
+ const krb5_data *input;
krb5_data *output;
{
krb5_keyblock k1, k2, k3;
/* This is the arcfour-hmac decryption routine */
krb5_error_code
krb5_arcfour_decrypt(enc, hash, key, usage, ivec, input, output)
- krb5_const struct krb5_enc_provider *enc;
- krb5_const struct krb5_hash_provider *hash;
- krb5_const krb5_keyblock *key;
+ const struct krb5_enc_provider *enc;
+ const struct krb5_hash_provider *hash;
+ const krb5_keyblock *key;
krb5_keyusage usage;
- krb5_const krb5_data *ivec;
- krb5_const krb5_data *input;
+ const krb5_data *ivec;
+ const krb5_data *input;
krb5_data *output;
{
krb5_keyblock k1,k2,k3;
#define ARCFOUR_H
extern void
-krb5_arcfour_encrypt_length(krb5_const struct krb5_enc_provider *,
- krb5_const struct krb5_hash_provider *,
+krb5_arcfour_encrypt_length(const struct krb5_enc_provider *,
+ const struct krb5_hash_provider *,
size_t,
size_t *);
extern
-krb5_error_code krb5_arcfour_encrypt(krb5_const struct krb5_enc_provider *,
- krb5_const struct krb5_hash_provider *,
- krb5_const krb5_keyblock *,
+krb5_error_code krb5_arcfour_encrypt(const struct krb5_enc_provider *,
+ const struct krb5_hash_provider *,
+ const krb5_keyblock *,
krb5_keyusage,
- krb5_const krb5_data *,
- krb5_const krb5_data *,
+ const krb5_data *,
+ const krb5_data *,
krb5_data *);
extern
-krb5_error_code krb5_arcfour_decrypt(krb5_const struct krb5_enc_provider *,
- krb5_const struct krb5_hash_provider *,
- krb5_const krb5_keyblock *,
+krb5_error_code krb5_arcfour_decrypt(const struct krb5_enc_provider *,
+ const struct krb5_hash_provider *,
+ const krb5_keyblock *,
krb5_keyusage,
- krb5_const krb5_data *,
- krb5_const krb5_data *,
+ const krb5_data *,
+ const krb5_data *,
krb5_data *);
extern krb5_error_code krb5_arcfour_string_to_key(
- krb5_const struct krb5_enc_provider *,
- krb5_const krb5_data *,
- krb5_const krb5_data *,
+ const struct krb5_enc_provider *,
+ const krb5_data *,
+ const krb5_data *,
krb5_keyblock *);
extern const struct krb5_enc_provider krb5int_enc_arcfour;
krb5_error_code
krb5_arcfour_string_to_key(enc, string, salt, key)
- krb5_const struct krb5_enc_provider *enc;
- krb5_const krb5_data *string;
- krb5_const krb5_data *salt;
+ const struct krb5_enc_provider *enc;
+ const krb5_data *string;
+ const krb5_data *salt;
krb5_keyblock *key;
{
size_t len,slen;
+2002-02-22 Ken Raeburn <raeburn@mit.edu>
+
+ * arcfour.c: Use const instead of krb5_const.
+
2001-11-06 Sam Hartman <hartmans@mit.edu>
* arcfour.c (k5_arcfour_docrypt): Treat state as an
/* Interface layer to kerb5 crypto layer */
static krb5_error_code
-k5_arcfour_docrypt(krb5_const krb5_keyblock *, krb5_const krb5_data *,
- krb5_const krb5_data *, krb5_data *);
+k5_arcfour_docrypt(const krb5_keyblock *, const krb5_data *,
+ const krb5_data *, krb5_data *);
/* The blocksize for the enctype */
/* from a random bitstrem, construct a key */
static krb5_error_code
-k5_arcfour_make_key(krb5_const krb5_data *, krb5_keyblock *);
+k5_arcfour_make_key(const krb5_data *, krb5_keyblock *);
static unsigned char arcfour_weakkey1[] = {0x00, 0x00, 0xfd};
static unsigned char arcfour_weakkey2[] = {0x03, 0xfd, 0xfc};
/* The workhorse of the arcfour system, this impliments the cipher */
static krb5_error_code
-k5_arcfour_docrypt(krb5_const krb5_keyblock *key, krb5_const krb5_data *state,
- krb5_const krb5_data *input, krb5_data *output)
+k5_arcfour_docrypt(const krb5_keyblock *key, const krb5_data *state,
+ const krb5_data *input, krb5_data *output)
{
ArcfourContext *arcfour_ctx;
ArcFourCipherState *cipher_state;
}
static krb5_error_code
-k5_arcfour_make_key(krb5_const krb5_data *randombits, krb5_keyblock *key)
+k5_arcfour_make_key(const krb5_data *randombits, krb5_keyblock *key)
{
if (key->length != 16)
return(KRB5_BAD_KEYSIZE);
+2002-02-22 Ken Raeburn <raeburn@mit.edu>
+
+ * kdb_xdr.c (krb5_dbe_lookup_mod_princ_data): Use const instead of
+ krb5_const.
+
2001-11-19 Ezra Peisach <epeisach@mit.edu>
* t_kdb.c (do_testing): Invoke krb5_free_principal and
/* Mod Princ */
if ((code = krb5_parse_name(context,
- (krb5_const char *) (tl_data.tl_data_contents+4),
+ (const char *) (tl_data.tl_data_contents+4),
mod_princ)))
return(code);