Home
last modified time | relevance | path

Searched refs:W (Results 1 – 2 of 2) sorted by relevance

/lib/crypto/
Dsha256.c55 static inline void LOAD_OP(int I, u32 *W, const u8 *input) in LOAD_OP() argument
57 W[I] = get_unaligned_be32((__u32 *)input + I); in LOAD_OP()
60 static inline void BLEND_OP(int I, u32 *W) in BLEND_OP() argument
62 W[I] = s1(W[I-2]) + W[I-7] + s0(W[I-15]) + W[I-16]; in BLEND_OP()
67 t1 = h + e1(e) + Ch(e, f, g) + SHA256_K[i] + W[i]; \
73 static void sha256_transform(u32 *state, const u8 *input, u32 *W) in sha256_transform() argument
80 LOAD_OP(i + 0, W, input); in sha256_transform()
81 LOAD_OP(i + 1, W, input); in sha256_transform()
82 LOAD_OP(i + 2, W, input); in sha256_transform()
83 LOAD_OP(i + 3, W, input); in sha256_transform()
[all …]
Dsha1.c40 #define setW(x, val) (*(volatile __u32 *)&W(x) = (val))
42 #define setW(x, val) do { W(x) = (val); __asm__("":::"memory"); } while (0)
44 #define setW(x, val) (W(x) = (val))
48 #define W(x) (array[(x)&15]) macro
55 #define SHA_MIX(t) rol32(W(t+13) ^ W(t+8) ^ W(t+2) ^ W(t), 1)