Searched refs:CHACHA20_BLOCK_SIZE (Results 1 – 3 of 3) sorted by relevance
32 u8 buf[CHACHA20_BLOCK_SIZE]; in chacha20_dosimd()36 while (bytes >= CHACHA20_BLOCK_SIZE * 8) { in chacha20_dosimd()38 bytes -= CHACHA20_BLOCK_SIZE * 8; in chacha20_dosimd()39 src += CHACHA20_BLOCK_SIZE * 8; in chacha20_dosimd()40 dst += CHACHA20_BLOCK_SIZE * 8; in chacha20_dosimd()45 while (bytes >= CHACHA20_BLOCK_SIZE * 4) { in chacha20_dosimd()47 bytes -= CHACHA20_BLOCK_SIZE * 4; in chacha20_dosimd()48 src += CHACHA20_BLOCK_SIZE * 4; in chacha20_dosimd()49 dst += CHACHA20_BLOCK_SIZE * 4; in chacha20_dosimd()52 while (bytes >= CHACHA20_BLOCK_SIZE) { in chacha20_dosimd()[all …]
87 u8 stream[CHACHA20_BLOCK_SIZE]; in chacha20_docrypt()92 while (bytes >= CHACHA20_BLOCK_SIZE) { in chacha20_docrypt()94 crypto_xor(dst, stream, CHACHA20_BLOCK_SIZE); in chacha20_docrypt()95 bytes -= CHACHA20_BLOCK_SIZE; in chacha20_docrypt()96 dst += CHACHA20_BLOCK_SIZE; in chacha20_docrypt()151 err = blkcipher_walk_virt_block(desc, &walk, CHACHA20_BLOCK_SIZE); in crypto_chacha20_crypt()155 while (walk.nbytes >= CHACHA20_BLOCK_SIZE) { in crypto_chacha20_crypt()157 rounddown(walk.nbytes, CHACHA20_BLOCK_SIZE)); in crypto_chacha20_crypt()159 walk.nbytes % CHACHA20_BLOCK_SIZE); in crypto_chacha20_crypt()
13 #define CHACHA20_BLOCK_SIZE 64 macro