Lines Matching refs:BELT_BLOCK_LEN
207 u8 r[((MAX_DIGEST_SIZE / BELT_BLOCK_LEN) * BELT_BLOCK_LEN) + (2 * BELT_BLOCK_LEN)]; in __bign_determinitic_nonce()
208 u8 r_bar[((MAX_DIGEST_SIZE / BELT_BLOCK_LEN) * BELT_BLOCK_LEN) + (2 * BELT_BLOCK_LEN)]; in __bign_determinitic_nonce()
253 n = (hlen / BELT_BLOCK_LEN); in __bign_determinitic_nonce()
274 u8 s[BELT_BLOCK_LEN]; in __bign_determinitic_nonce()
275 u8 i_block[BELT_BLOCK_LEN]; in __bign_determinitic_nonce()
280 for(z = 0; z < BELT_BLOCK_LEN; z++){ in __bign_determinitic_nonce()
281 s[z] ^= r[(BELT_BLOCK_LEN * j) + z]; in __bign_determinitic_nonce()
285 ret = local_memcpy(&r[0], &r[BELT_BLOCK_LEN], (n - 2) * BELT_BLOCK_LEN); EG(ret, err); in __bign_determinitic_nonce()
290 belt_encrypt(s, &r[(n - 2) * BELT_BLOCK_LEN], theta); in __bign_determinitic_nonce()
291 for(z = 0; z < BELT_BLOCK_LEN; z++){ in __bign_determinitic_nonce()
292 r[((n - 2) * BELT_BLOCK_LEN) + z] ^= (r[((n - 1) * BELT_BLOCK_LEN) + z] ^ i_block[z]); in __bign_determinitic_nonce()
296 ret = local_memcpy(&r[(n - 1) * BELT_BLOCK_LEN], s, BELT_BLOCK_LEN); EG(ret, err); in __bign_determinitic_nonce()
301 if(q_len < (n * BELT_BLOCK_LEN)){ in __bign_determinitic_nonce()
315 MUST_HAVE((n * BELT_BLOCK_LEN) <= 0xffff, ret, err); in __bign_determinitic_nonce()
316 r_bar_len = (u16)(n * BELT_BLOCK_LEN); in __bign_determinitic_nonce()