Lines Matching refs:x
45 #define SHFR(x, n) (x >> n) argument
46 #define ROTR(x, n) ((x >> n) | (x << ((sizeof(x) << 3) - n))) argument
47 #define ROTL(x, n) ((x << n) | (x >> ((sizeof(x) << 3) - n))) argument
48 #define CH(x, y, z) ((x & y) ^ (~x & z)) argument
49 #define MAJ(x, y, z) ((x & y) ^ (x & z) ^ (y & z)) argument
51 #define SHA256_F1(x) (ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22)) argument
52 #define SHA256_F2(x) (ROTR(x, 6) ^ ROTR(x, 11) ^ ROTR(x, 25)) argument
53 #define SHA256_F3(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ SHFR(x, 3)) argument
54 #define SHA256_F4(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ SHFR(x, 10)) argument
56 #define UNPACK32(x, str) \ argument
58 *((str) + 3) = (uint8_t) ((x)); \
59 *((str) + 2) = (uint8_t) ((x) >> 8); \
60 *((str) + 1) = (uint8_t) ((x) >> 16); \
61 *((str) + 0) = (uint8_t) ((x) >> 24); \
64 #define PACK32(str, x) \ argument
66 *(x) = ((uint32_t) *((str) + 3)) \