diff options
Diffstat (limited to 'crypto/fipsmodule/md5/md5.c')
-rw-r--r-- | crypto/fipsmodule/md5/md5.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/crypto/fipsmodule/md5/md5.c b/crypto/fipsmodule/md5/md5.c index eba34bc..1691526 100644 --- a/crypto/fipsmodule/md5/md5.c +++ b/crypto/fipsmodule/md5/md5.c @@ -119,33 +119,31 @@ int MD5_Final(uint8_t out[MD5_DIGEST_LENGTH], MD5_CTX *c) { #define H(b, c, d) ((b) ^ (c) ^ (d)) #define I(b, c, d) (((~(d)) | (b)) ^ (c)) -#define ROTATE(a, n) (((a) << (n)) | ((a) >> (32 - (n)))) - #define R0(a, b, c, d, k, s, t) \ do { \ (a) += ((k) + (t) + F((b), (c), (d))); \ - (a) = ROTATE(a, s); \ + (a) = CRYPTO_rotl_u32(a, s); \ (a) += (b); \ } while (0) #define R1(a, b, c, d, k, s, t) \ do { \ (a) += ((k) + (t) + G((b), (c), (d))); \ - (a) = ROTATE(a, s); \ + (a) = CRYPTO_rotl_u32(a, s); \ (a) += (b); \ } while (0) #define R2(a, b, c, d, k, s, t) \ do { \ (a) += ((k) + (t) + H((b), (c), (d))); \ - (a) = ROTATE(a, s); \ + (a) = CRYPTO_rotl_u32(a, s); \ (a) += (b); \ } while (0) #define R3(a, b, c, d, k, s, t) \ do { \ (a) += ((k) + (t) + I((b), (c), (d))); \ - (a) = ROTATE(a, s); \ + (a) = CRYPTO_rotl_u32(a, s); \ (a) += (b); \ } while (0) @@ -280,7 +278,6 @@ static void md5_block_data_order(uint32_t *state, const uint8_t *data, #undef G #undef H #undef I -#undef ROTATE #undef R0 #undef R1 #undef R2 |