secretstream_xchacha20poly1305.c | 20 #define STATE_COUNTER(STATE) ((STATE)->nonce) 21 #define STATE_INONCE(STATE) ((STATE)->nonce + \ 28 (crypto_secretstream_xchacha20poly1305_state *state) 30 memset(STATE_COUNTER(state), 0, 32 STATE_COUNTER(state)[0] = 1; local in function:_crypto_secretstream_xchacha20poly1305_counter_reset 44 (crypto_secretstream_xchacha20poly1305_state *state, 53 COMPILER_ASSERT(sizeof state->nonce == 58 crypto_core_hchacha20(state->k, out, k, NULL) 104 STATE_INONCE(state)[i] = local in function:crypto_secretstream_xchacha20poly1305_rekey [all...] |