Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/safer/
A Dsafer.c107 unsigned char ka[LTC_SAFER_BLOCK_LEN + 1]; in s_safer_expand_userkey() local
114 ka[LTC_SAFER_BLOCK_LEN] = (unsigned char)0; in s_safer_expand_userkey()
118 ka[j] = ROL8(userkey_1[j], 5); in s_safer_expand_userkey()
119 ka[LTC_SAFER_BLOCK_LEN] ^= ka[j]; in s_safer_expand_userkey()
125 ka[j] = ROL8(ka[j], 6); in s_safer_expand_userkey()
134 *key++ = (ka[k] in s_safer_expand_userkey()
138 *key++ = (ka[j] + safer_ebox[(int)safer_ebox[(int)((18 * i + j + 1)&0xFF)]]) & 0xFF; in s_safer_expand_userkey()
157 zeromem(ka, sizeof(ka)); in s_safer_expand_userkey()
/optee_os-3.20.0/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 5 milliseconds