Lines Matching refs:rem
62 unsigned int n, rem, ctr32; in chacha_cipher() local
82 rem = (unsigned int)(len % CHACHA_BLK_SIZE); in chacha_cipher()
83 len -= rem; in chacha_cipher()
116 if (rem) { in chacha_cipher()
120 for (n = 0; n < rem; n++) in chacha_cipher()
122 key->partial_len = rem; in chacha_cipher()
368 size_t rem, plen = actx->tls_payload_length; in chacha20_poly1305_cipher() local
399 if ((rem = (size_t)actx->len.aad % POLY1305_BLOCK_SIZE)) in chacha20_poly1305_cipher()
401 POLY1305_BLOCK_SIZE - rem); in chacha20_poly1305_cipher()
432 if ((rem = (size_t)actx->len.aad % POLY1305_BLOCK_SIZE)) in chacha20_poly1305_cipher()
434 POLY1305_BLOCK_SIZE - rem); in chacha20_poly1305_cipher()
438 if ((rem = (size_t)actx->len.text % POLY1305_BLOCK_SIZE)) in chacha20_poly1305_cipher()
440 POLY1305_BLOCK_SIZE - rem); in chacha20_poly1305_cipher()