diff options
author | Ezra Peisach <epeisach@mit.edu> | 2000-10-17 22:57:34 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2000-10-17 22:57:34 +0000 |
commit | a1453efdd2480cf6249795a41cd1a21579e2ada9 (patch) | |
tree | 0367ad41f61b7ffcbf7ca42be64a26dbb349d782 /src/lib/crypto/des/des_int.h | |
parent | 48e24f7ef133990af31e9554731a31b43c1d762c (diff) | |
download | krb5-a1453efdd2480cf6249795a41cd1a21579e2ada9.tar.gz krb5-a1453efdd2480cf6249795a41cd1a21579e2ada9.tar.xz krb5-a1453efdd2480cf6249795a41cd1a21579e2ada9.zip |
* des_int.h: Change prototypes for mit_des_cbc_encrypt(),
mit_des_cbc_cksum(), and mit_des3_cbc_encrypt() to take unsigned
long lengths.
* d3_cbc.c (mit_des3_cbc_encrypt): Length argument now takes an
unsigned long.
* f_cbc.c (mit_des_cbc_encrypt): Length argument now takes an
unsigned long.
* f_cksum.c (mit_des_cbc_cksum): Length argument now takes an
unsigned long.
* string2key.c: Unsigned/signed int cleanup. Test for a
salt-length of SALT_TYPE_AFS_LENGTH or -1 (for backwards
compatibilty) for use of mit_afs_string_to_key().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12774 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto/des/des_int.h')
-rw-r--r-- | src/lib/crypto/des/des_int.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/crypto/des/des_int.h b/src/lib/crypto/des/des_int.h index de8f2a480c..ec2047a258 100644 --- a/src/lib/crypto/des/des_int.h +++ b/src/lib/crypto/des/des_int.h @@ -147,7 +147,7 @@ extern krb5_error_code mit_afs_string_to_key /* f_cksum.c */ extern unsigned long mit_des_cbc_cksum - PROTOTYPE((krb5_octet FAR *, krb5_octet FAR *, long , mit_des_key_schedule , + PROTOTYPE((krb5_octet FAR *, krb5_octet FAR *, unsigned long , mit_des_key_schedule , krb5_octet FAR *)); /* f_ecb.c */ @@ -156,7 +156,8 @@ extern int mit_des_ecb_encrypt /* f_cbc.c */ extern int mit_des_cbc_encrypt - PROTOTYPE((const mit_des_cblock FAR *in, mit_des_cblock FAR *out, long length, + PROTOTYPE((const mit_des_cblock FAR *in, mit_des_cblock FAR *out, + unsigned long length, mit_des_key_schedule schedule, mit_des_cblock ivec, int encrypt)); @@ -241,7 +242,7 @@ extern int mit_des3_ecb_encrypt extern int mit_des3_cbc_encrypt PROTOTYPE((const mit_des_cblock FAR *in, mit_des_cblock FAR *out, - long length, + unsigned long length, mit_des_key_schedule ks1, mit_des_key_schedule ks2, mit_des_key_schedule ks3, |