Searched refs:keystream (Results 1 – 4 of 4) sorted by relevance
| /netbsd-src/external/bsd/unbound/dist/compat/ |
| H A D | arc4random.c | 262 u_char *keystream; in _rs_random_buf() local 269 keystream = rsx->rs_buf + sizeof(rsx->rs_buf) in _rs_random_buf() 271 memcpy(buf, keystream, m); in _rs_random_buf() 272 memset(keystream, 0, m); in _rs_random_buf() 285 u_char *keystream; in _rs_random_u32() local 289 keystream = rsx->rs_buf + sizeof(rsx->rs_buf) - rs->rs_have; in _rs_random_u32() 290 memcpy(val, keystream, sizeof(*val)); in _rs_random_u32() 291 memset(keystream, 0, sizeof(*val)); in _rs_random_u32()
|
| /netbsd-src/sys/opencrypto/ |
| H A D | gmac.c | 174 uint8_t keystream[GMAC_BLOCK_LEN], *k, *d; in AES_GMAC_Final() local 179 aes_enc(&ctx->K, ctx->J, keystream, ctx->rounds); in AES_GMAC_Final() 180 k = keystream; in AES_GMAC_Final() 205 memset(keystream, 0, sizeof(keystream)); in AES_GMAC_Final()
|
| H A D | cryptosoft_xform.c | 724 u_int8_t keystream[AESCTR_BLOCKSIZE]; in aes_ctr_crypt() local 733 aes_enc(&ctx->ac_ek, ctx->ac_block, keystream, ctx->ac_nr); in aes_ctr_crypt() 735 blk[i] ^= keystream[i]; in aes_ctr_crypt() 736 explicit_memset(keystream, 0, sizeof(keystream)); in aes_ctr_crypt()
|
| /netbsd-src/crypto/external/bsd/openssh/dist/ |
| H A D | PROTOCOL.chacha20poly1305 | 10 is used as a keystream, with any unused bytes simply discarded.
|