Searched refs:SM3_ROTL (Results 1 – 1 of 1) sorted by relevance
/freebsd/crypto/libecc/src/hash/ |
H A D | sm3.c | 76 #define SM3_ROTL(x, y) ((((y) < (sizeof(u32) * 8)) && ((y) > 0)) ? (_SM3_ROTL_(x, y)) : (x)) macro 79 #define SM3_P_0(X) (((u32)X) ^ SM3_ROTL((X), 9) ^ SM3_ROTL((X), 17)) 80 #define SM3_P_1(X) (((u32)X) ^ SM3_ROTL((X), 15) ^ SM3_ROTL((X), 23)) 100 W[j] = SM3_P_1(W[j - 16] ^ W[j - 9] ^ (SM3_ROTL(W[j - 3], 15))) ^ in sm3_process() 101 (SM3_ROTL(W[j - 13], 7)) ^ W[j - 6]; in sm3_process() 130 SS1 = SM3_ROTL(SM3_ROTL(A, 12) + E + SM3_ROTL(SM3_Tj_low, j),7); in sm3_process() 131 SS2 = SS1 ^ SM3_ROTL(A, 12); in sm3_process() 135 C = SM3_ROTL(B, 9); in sm3_process() 139 G = SM3_ROTL(F, 19); in sm3_process() 145 SS1 = SM3_ROTL(SM3_ROTL(A, 12) + E + SM3_ROTL(SM3_Tj_high, j), 7); in sm3_process() [all …]
|