X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=sha1%2Fsha1.c;h=740fe67a96b5426d65da836aa13449af0715239f;hb=2b0000dcd4848a3231831a79e2cd35c049909ec9;hp=a8b881219ee14855bf2e0e21e123a848ffdb3271;hpb=e1db57c69472f52cf2405ef4eb22f085a868eeeb;p=arm-crypto-lib.git diff --git a/sha1/sha1.c b/sha1/sha1.c index a8b8812..740fe67 100644 --- a/sha1/sha1.c +++ b/sha1/sha1.c @@ -52,12 +52,12 @@ void sha1_init(sha1_ctx_t *state){ /********************************************************************************************************/ /* some helping functions */ -const +static const uint32_t rotl32(uint32_t n, uint8_t bits){ return ((n<>(32-bits))); } -const +static const uint32_t change_endian32(uint32_t x){ return (((x)<<24) | ((x)>>24) | (((x)& 0x0000ff00)<<8) | (((x)& 0x00ff0000)>>8)); }