diff options
| author | Ezra Peisach <epeisach@mit.edu> | 2004-05-25 18:06:13 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 2004-05-25 18:06:13 +0000 |
| commit | 998285f6f07bf9348062b62752a0147252dc2e6e (patch) | |
| tree | 63997024967f4764a0af401211f86a08e27eb224 /src | |
| parent | 1b86f2c181c3c2b68eedfedb93a475dcdc4b5436 (diff) | |
| download | krb5-998285f6f07bf9348062b62752a0147252dc2e6e.tar.gz krb5-998285f6f07bf9348062b62752a0147252dc2e6e.tar.xz krb5-998285f6f07bf9348062b62752a0147252dc2e6e.zip | |
* aes.c (krb5int_aes_encrypt): Signed/unsigned warning fix
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16359 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/crypto/enc_provider/ChangeLog | 4 | ||||
| -rw-r--r-- | src/lib/crypto/enc_provider/aes.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/crypto/enc_provider/ChangeLog b/src/lib/crypto/enc_provider/ChangeLog index f27a6c3563..c898e6479b 100644 --- a/src/lib/crypto/enc_provider/ChangeLog +++ b/src/lib/crypto/enc_provider/ChangeLog @@ -1,3 +1,7 @@ +2004-05-25 Ezra Peisach <epeisach@mit.edu> + + * aes.c (krb5int_aes_encrypt): Signed/unsigned warning fix. + 2004-02-09 Ken Raeburn <raeburn@mit.edu> * aes.c (krb5int_aes_encrypt, krb5int_aes_decrypt): Copy out value diff --git a/src/lib/crypto/enc_provider/aes.c b/src/lib/crypto/enc_provider/aes.c index 2bbddddd98..45019692d4 100644 --- a/src/lib/crypto/enc_provider/aes.c +++ b/src/lib/crypto/enc_provider/aes.c @@ -12,6 +12,7 @@ aes_rval aes_dec_blk(const unsigned char in_blk[], unsigned char out_blk[], cons #define CHECK_SIZES 0 +#if 0 static void printd (const char *descr, krb5_data *d) { int i, j; const int r = 16; @@ -34,6 +35,8 @@ static void printd (const char *descr, krb5_data *d) { } printf("\n"); } +#endif + #define enc(OUT, IN, CTX) (aes_enc_blk((IN),(OUT),(CTX)) == aes_good ? (void) 0 : abort()) #define dec(OUT, IN, CTX) (aes_dec_blk((IN),(OUT),(CTX)) == aes_good ? (void) 0 : abort()) @@ -68,7 +71,7 @@ krb5int_aes_encrypt(const krb5_keyblock *key, const krb5_data *ivec, /* XXX Used for DK function. */ enc(output->data, input->data, &ctx); } else { - int nleft; + unsigned int nleft; for (blockno = 0; blockno < nblocks - 2; blockno++) { xorblock(tmp, input->data + blockno * BLOCK_SIZE); @@ -123,7 +126,6 @@ krb5int_aes_decrypt(const krb5_keyblock *key, const krb5_data *ivec, abort(); dec(output->data, input->data, &ctx); } else { - int nleft; for (blockno = 0; blockno < nblocks - 2; blockno++) { dec(tmp2, input->data + blockno * BLOCK_SIZE, &ctx); |
