X-Git-Url: https://git.cryptolib.org/?p=arm-crypto-lib.git;a=blobdiff_plain;f=sha1%2Fsha1.c;h=740fe67a96b5426d65da836aa13449af0715239f;hp=a8b881219ee14855bf2e0e21e123a848ffdb3271;hb=b9d6e1eb867eaa431c4c555a7409342805fa2706;hpb=1ee55d2589fee6c40acb72a24c04528a8cc1772f 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)); }