diff options
Diffstat (limited to 'src/lib/crypto/builtin/hash_provider/hash_crc32.c')
-rw-r--r-- | src/lib/crypto/builtin/hash_provider/hash_crc32.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/crypto/builtin/hash_provider/hash_crc32.c b/src/lib/crypto/builtin/hash_provider/hash_crc32.c index e748c98..58efffe 100644 --- a/src/lib/crypto/builtin/hash_provider/hash_crc32.c +++ b/src/lib/crypto/builtin/hash_provider/hash_crc32.c @@ -33,17 +33,15 @@ static krb5_error_code k5_crc32_hash(unsigned int icount, const krb5_data *input, krb5_data *output) { - unsigned long c, cn; + unsigned long c; unsigned int i; if (output->length != CRC32_CKSUM_LENGTH) return(KRB5_CRYPTO_INTERNAL); c = 0; - for (i=0; i<icount; i++) { - mit_crc32(input[i].data, input[i].length, &cn); - c ^= cn; - } + for (i=0; i<icount; i++) + mit_crc32(input[i].data, input[i].length, &c); store_32_le(c, output->data); return(0); |