summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/dk/dk_encrypt.c
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2006-04-20 04:24:48 +0000
committerEzra Peisach <epeisach@mit.edu>2006-04-20 04:24:48 +0000
commite79dd1356bec312af8aee6093dfddea0c978ebbd (patch)
treec90d63ccb09adc7db5f6d46ea7bef1b952f66956 /src/lib/crypto/dk/dk_encrypt.c
parentd29518ffa3a2100c7c7296ac1afdc7b1202035f1 (diff)
downloadkrb5-e79dd1356bec312af8aee6093dfddea0c978ebbd.tar.gz
krb5-e79dd1356bec312af8aee6093dfddea0c978ebbd.tar.xz
krb5-e79dd1356bec312af8aee6093dfddea0c978ebbd.zip
shsUpdate should take an unsigned int for length
Update shsUpdate to take an unsigned int length instead of signed. The code already assumes that it is an integer >= 0. This change cleans up a number of signed/unsigned warnings. sha1/shs.h, shs.c, t_shs.c: change ints to unsigned int dk/dk_encrypt.c: static function trunc_hmac change a signed int to unsigned hash_provider/hash_sha1.c: Remove cast in argument to shsUpdate ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17945 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto/dk/dk_encrypt.c')
-rw-r--r--src/lib/crypto/dk/dk_encrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/crypto/dk/dk_encrypt.c b/src/lib/crypto/dk/dk_encrypt.c
index 2431e61c8..dfa7e07da 100644
--- a/src/lib/crypto/dk/dk_encrypt.c
+++ b/src/lib/crypto/dk/dk_encrypt.c
@@ -191,7 +191,7 @@ krb5int_aes_encrypt_length(const struct krb5_enc_provider *enc,
static krb5_error_code
trunc_hmac (const struct krb5_hash_provider *hash,
- const krb5_keyblock *ki, int num,
+ const krb5_keyblock *ki, unsigned int num,
const krb5_data *input, const krb5_data *output)
{
size_t hashsize;