Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/ciphers/safer/
A Dsafer.c114 unsigned char ka[LTC_SAFER_BLOCK_LEN + 1]; in _Safer_Expand_Userkey() local
121 ka[LTC_SAFER_BLOCK_LEN] = (unsigned char)0; in _Safer_Expand_Userkey()
125 ka[j] = ROL8(userkey_1[j], 5); in _Safer_Expand_Userkey()
126 ka[LTC_SAFER_BLOCK_LEN] ^= ka[j]; in _Safer_Expand_Userkey()
132 ka[j] = ROL8(ka[j], 6); in _Safer_Expand_Userkey()
141 *key++ = (ka[k] in _Safer_Expand_Userkey()
145 *key++ = (ka[j] + safer_ebox[(int)safer_ebox[(int)((18 * i + j + 1)&0xFF)]]) & 0xFF; in _Safer_Expand_Userkey()
164 zeromem(ka, sizeof(ka)); in _Safer_Expand_Userkey()
/optee_os/core/crypto/
A Dsm4.c102 static uint32_t sm4Lt(uint32_t ka) in sm4Lt() argument
108 PUT_UINT32_BE(ka, a, 0); in sm4Lt()
124 static uint32_t sm4CalciRK(uint32_t ka) in sm4CalciRK() argument
130 PUT_UINT32_BE(ka, a, 0); in sm4CalciRK()

Completed in 3 milliseconds