Searched refs:W (Results 1 – 2 of 2) sorted by relevance
/lib/crypto/ |
D | sha256.c | 36 static inline void LOAD_OP(int I, u32 *W, const u8 *input) in LOAD_OP() argument 38 W[I] = get_unaligned_be32((__u32 *)input + I); in LOAD_OP() 41 static inline void BLEND_OP(int I, u32 *W) in BLEND_OP() argument 43 W[I] = s1(W[I-2]) + W[I-7] + s0(W[I-15]) + W[I-16]; in BLEND_OP() 49 u32 W[64]; in sha256_transform() local 54 LOAD_OP(i, W, input); in sha256_transform() 58 BLEND_OP(i, W); in sha256_transform() 65 t1 = h + e1(e) + Ch(e, f, g) + 0x428a2f98 + W[0]; in sha256_transform() 67 t1 = g + e1(d) + Ch(d, e, f) + 0x71374491 + W[1]; in sha256_transform() 69 t1 = f + e1(c) + Ch(c, d, e) + 0xb5c0fbcf + W[2]; in sha256_transform() [all …]
|
/lib/ |
D | sha1.c | 38 #define setW(x, val) (*(volatile __u32 *)&W(x) = (val)) 40 #define setW(x, val) do { W(x) = (val); __asm__("":::"memory"); } while (0) 42 #define setW(x, val) (W(x) = (val)) 46 #define W(x) (array[(x)&15]) macro 53 #define SHA_MIX(t) rol32(W(t+13) ^ W(t+8) ^ W(t+2) ^ W(t), 1)
|