cosmetic fix of src/ac.c

This commit is contained in:
NIIBE Yutaka
2011-11-01 11:39:47 +09:00
parent f3a3808608
commit ec7a2db43a
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
2011-11-01 Niibe Yutaka <gniibe@fsij.org>
* src/ac.c (calc_md): Fix comparison.
* src/call-rsa.c (RSA_SIGNATURE_LENGTH): Use KEY_CONTENT_LEN.
(rsa_sign, rsa_decrypt): Likewise.
(modulus_calc): Don't assume it's 2048-bit.

View File

@@ -172,7 +172,7 @@ calc_md (int count, const uint8_t *salt, const uint8_t *pw, int pw_len,
count -= pw_len + 8;
}
if (count < 8)
if (count <= 8)
sha1_update (&sha1_ctx, salt, count);
else
{