Home
last modified time | relevance | path

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

/external/dropbear/libtomcrypt/src/ciphers/safer/
Dsafer.c114 unsigned char ka[SAFER_BLOCK_LEN + 1]; in _Safer_Expand_Userkey()
115 unsigned char kb[SAFER_BLOCK_LEN + 1]; in _Safer_Expand_Userkey()
120 ka[SAFER_BLOCK_LEN] = (unsigned char)0; in _Safer_Expand_Userkey()
121 kb[SAFER_BLOCK_LEN] = (unsigned char)0; in _Safer_Expand_Userkey()
123 for (j = 0; j < SAFER_BLOCK_LEN; j++) { in _Safer_Expand_Userkey()
125 ka[SAFER_BLOCK_LEN] ^= ka[j]; in _Safer_Expand_Userkey()
127 kb[SAFER_BLOCK_LEN] ^= kb[j]; in _Safer_Expand_Userkey()
130 for (j = 0; j < SAFER_BLOCK_LEN + 1; j++) { in _Safer_Expand_Userkey()
136 while (k >= (SAFER_BLOCK_LEN + 1)) { k -= SAFER_BLOCK_LEN + 1; } in _Safer_Expand_Userkey()
138 for (j = 0; j < SAFER_BLOCK_LEN; j++) { in _Safer_Expand_Userkey()
[all …]
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_cipher.h79 #define SAFER_BLOCK_LEN 8 macro
80 #define SAFER_KEY_LEN (1 + SAFER_BLOCK_LEN * (1 + 2 * SAFER_MAX_NOF_ROUNDS))
81 typedef unsigned char safer_block_t[SAFER_BLOCK_LEN];