Home
last modified time | relevance | path

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

/device/google/contexthub/lib/nanohub/
Daes.c138 …#define ror(v, b) ({uint32_t ret; if (b) asm("ror %0, #" STRINGIFY(b) :"=r"(ret):"0"(v)); else ret… macro
142 inline static uint32_t ror(uint32_t val, uint32_t by) in ror() function
195 ror(RevTab0[FwdSbox[(encrK[j] >> 24) & 0xff]], 0) ^ in aesInitForDecr()
196 ror(RevTab0[FwdSbox[(encrK[j] >> 16) & 0xff]], 8) ^ in aesInitForDecr()
197 ror(RevTab0[FwdSbox[(encrK[j] >> 8) & 0xff]], 16) ^ in aesInitForDecr()
198 ror(RevTab0[FwdSbox[(encrK[j] >> 0) & 0xff]], 24); in aesInitForDecr()
220 ror(FwdTab0[(x0 >> 24) & 0xff], 0) ^ in aesEncr()
221 ror(FwdTab0[(x1 >> 16) & 0xff], 8) ^ in aesEncr()
222 ror(FwdTab0[(x2 >> 8) & 0xff], 16) ^ in aesEncr()
223 ror(FwdTab0[(x3 >> 0) & 0xff], 24); in aesEncr()
[all …]
Dsha2.c39 …#define ror(v, b) ({uint32_t ret; if (b) asm("ror %0, #" STRINGIFY(b) :"=r"(ret):"0"(v)); else ret… macro
43 inline static uint32_t ror(uint32_t val, uint32_t by) in ror() function
76 uint32_t s0 = ror(state->w[i-15], 7) ^ ror(state->w[i-15], 18) ^ (state->w[i-15] >> 3); in sha2processBlock()
77 uint32_t s1 = ror(state->w[i-2], 17) ^ ror(state->w[i-2], 19) ^ (state->w[i-2] >> 10); in sha2processBlock()
93 uint32_t s1 = ror(e, 6) ^ ror(e, 11) ^ ror(e, 25); in sha2processBlock()
96 uint32_t s0 = ror(a, 2) ^ ror(a, 13) ^ ror(a, 22); in sha2processBlock()