From 9fb47bf12c71d0690cd88997b6363bf2fb190229 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 17 Oct 2000 22:58:08 +0000 Subject: [PATCH] * nfold.c (krb5_nfold): inbots and outbits are now unsigned int * prng.c: Local variable random_count is now unsigned int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12776 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/ChangeLog | 6 ++++++ src/lib/crypto/nfold.c | 4 ++-- src/lib/crypto/prng.c | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/lib/crypto/ChangeLog b/src/lib/crypto/ChangeLog index d47798582..76aec91ed 100644 --- a/src/lib/crypto/ChangeLog +++ b/src/lib/crypto/ChangeLog @@ -1,3 +1,9 @@ +2000-10-17 Ezra Peisach + + * nfold.c (krb5_nfold): inbots and outbits are now unsigned int. + + * prng.c: Local variable random_count is now unsigned int. + 2000-06-30 Ezra Peisach * crypto_libinit.c: Add prototype for prng_cleanup(). diff --git a/src/lib/crypto/nfold.c b/src/lib/crypto/nfold.c index 9c1fe2686..d9bc804a1 100644 --- a/src/lib/crypto/nfold.c +++ b/src/lib/crypto/nfold.c @@ -47,9 +47,9 @@ n-fold(k-bits): void krb5_nfold(inbits, in, outbits, out) - int inbits; + unsigned int inbits; krb5_const unsigned char *in; - int outbits; + unsigned int outbits; unsigned char *out; { int a,b,c,lcm; diff --git a/src/lib/crypto/prng.c b/src/lib/crypto/prng.c index 78075a3f1..c89bc8b19 100644 --- a/src/lib/crypto/prng.c +++ b/src/lib/crypto/prng.c @@ -44,7 +44,7 @@ static const struct krb5_enc_provider *const enc = &krb5_enc_des; static int inited = 0; static size_t blocksize, keybytes, keylength; -static int random_count; +static unsigned int random_count; /* keybytes | state-block | encblock | key | new-keybytes | new-state-block */ static unsigned char *random_state; #define STATE (random_state) -- 2.26.2