Lines Matching defs:bytes
100 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes)
108 if (!bytes) return;
128 if (bytes < 64) {
129 for (i = 0;i < bytes;++i) tmp[i] = m[i];
197 /* stopping at 2^70 bytes per nonce is user's responsibility */
216 if (bytes <= 64) {
217 if (bytes < 64) {
218 for (i = 0;i < bytes;++i) ctarget[i] = c[i];
224 bytes -= 64;
251 /* uses 2 x 256-bit keys, so 512 bits (64 bytes) needed */
280 * bytes of ciphertext length have been received, they may be decrypted
294 * En/decrypt with header key 'aadlen' bytes from 'src', storing result
297 * En/decrypt 'len' bytes at offset 'aadlen' from 'src' to 'dest'. Use
298 * POLY1305_TAGLEN bytes at offset 'len'+'aadlen' as the authentication