Lines Matching refs:iv
35 const struct chacha_ctx *ctx, const u8 *iv) in chacha_stream_xor() argument
43 crypto_chacha_init(state, ctx, iv); in chacha_stream_xor()
59 void crypto_chacha_init(u32 *state, const struct chacha_ctx *ctx, const u8 *iv) in crypto_chacha_init() argument
73 state[12] = get_unaligned_le32(iv + 0); in crypto_chacha_init()
74 state[13] = get_unaligned_le32(iv + 4); in crypto_chacha_init()
75 state[14] = get_unaligned_le32(iv + 8); in crypto_chacha_init()
76 state[15] = get_unaligned_le32(iv + 12); in crypto_chacha_init()
115 return chacha_stream_xor(req, ctx, req->iv); in crypto_chacha_crypt()
128 crypto_chacha_init(state, ctx, req->iv); in crypto_xchacha_crypt()
133 memcpy(&real_iv[0], req->iv + 24, 8); /* stream position */ in crypto_xchacha_crypt()
134 memcpy(&real_iv[8], req->iv + 16, 8); /* remaining 64 nonce bits */ in crypto_xchacha_crypt()