Home
last modified time | relevance | path

Searched refs:LTC_SAFER_BLOCK_LEN (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()
115 unsigned char kb[LTC_SAFER_BLOCK_LEN + 1]; in _Safer_Expand_Userkey()
121 ka[LTC_SAFER_BLOCK_LEN] = (unsigned char)0; in _Safer_Expand_Userkey()
122 kb[LTC_SAFER_BLOCK_LEN] = (unsigned char)0; in _Safer_Expand_Userkey()
124 for (j = 0; j < LTC_SAFER_BLOCK_LEN; j++) { in _Safer_Expand_Userkey()
126 ka[LTC_SAFER_BLOCK_LEN] ^= ka[j]; in _Safer_Expand_Userkey()
128 kb[LTC_SAFER_BLOCK_LEN] ^= kb[j]; in _Safer_Expand_Userkey()
137 while (k >= (LTC_SAFER_BLOCK_LEN + 1)) { k -= LTC_SAFER_BLOCK_LEN + 1; } in _Safer_Expand_Userkey()
139 for (j = 0; j < LTC_SAFER_BLOCK_LEN; j++) { in _Safer_Expand_Userkey()
150 while (k >= (LTC_SAFER_BLOCK_LEN + 1)) { k -= LTC_SAFER_BLOCK_LEN + 1; } in _Safer_Expand_Userkey()
[all …]
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_cipher.h89 #define LTC_SAFER_BLOCK_LEN 8 macro
90 #define LTC_SAFER_KEY_LEN (1 + LTC_SAFER_BLOCK_LEN * (1 + 2 * LTC_SAFER_MAX_NOF_ROUNDS))
91 typedef unsigned char safer_block_t[LTC_SAFER_BLOCK_LEN];

Completed in 5 milliseconds