Searched refs:keystream (Results 1 - 5 of 5) sorted by relevance

/freebsd-12-stable/lib/libc/gen/
H A Darc4random.c68 chacha_ctx rs_chacha; /* chacha context for random keystream */
69 u_char rs_buf[RSBUFSZ]; /* keystream blocks */
132 /* fill rs_buf with the keystream */
153 u_char *keystream; local
160 keystream = rsx->rs_buf + sizeof(rsx->rs_buf)
162 memcpy(buf, keystream, m);
163 memset(keystream, 0, m);
176 u_char *keystream; local
181 keystream = rsx->rs_buf + sizeof(rsx->rs_buf) - rs->rs_have;
182 memcpy(val, keystream, sizeo
[all...]
/freebsd-12-stable/sys/opencrypto/
H A Dxform_aes_icm.c139 u_int8_t keystream[AESICM_BLOCKSIZE]; local
143 rijndaelEncrypt(ctx->ac_ek, ctx->ac_nr, ctx->ac_block, keystream);
145 data[i] ^= keystream[i];
146 explicit_bzero(keystream, sizeof(keystream));
/freebsd-12-stable/tools/tools/net80211/wesside/wesside/
H A Daircrack-ptw-lib.h44 // How many bytes of a keystream we collect, 16 are needed for a 104 bit key
62 // The keystream used in this session
63 uint8_t keystream[PTW_KSBYTES]; member in struct:__anon17200
H A Daircrack-ptw-lib.c183 * keystream - keystream recovered
187 static void guesskeybytes(uint8_t * iv, uint8_t * keystream, uint8_t * result, int kb) { argument
203 tmp = jj - keystream[jj-1];
230 if ((rc4update(&rc4state) ^ state->sessions[i].keystream[j]) != 0) {
434 * keystream - recovered keystream from the session
436 int PTW_addsession(PTW_attackstate * state, uint8_t * iv, uint8_t * keystream) { argument
448 guesskeybytes(iv, keystream, buf, PTW_KEYHSBYTES);
454 memcpy(state->sessions[state->sessions_collected].keystream, keystrea
[all...]
/freebsd-12-stable/contrib/unbound/compat/
H A Darc4random.c68 chacha_ctx rs_chacha; /* chacha context for random keystream */
69 u_char rs_buf[RSBUFSZ]; /* keystream blocks */
235 /* fill rs_buf with the keystream */
256 u_char *keystream; local
263 keystream = rsx->rs_buf + sizeof(rsx->rs_buf)
265 memcpy(buf, keystream, m);
266 memset(keystream, 0, m);
279 u_char *keystream; local
283 keystream = rsx->rs_buf + sizeof(rsx->rs_buf) - rs->rs_have;
284 memcpy(val, keystream, sizeo
[all...]

Completed in 176 milliseconds