Home
last modified time | relevance | path

Searched refs:chacha_ctx (Results 1 – 20 of 20) sorted by relevance

/freebsd/sys/contrib/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/
H A Dchacha20_dolbeau-avx2.c32 typedef struct chacha_ctx { struct
34 } chacha_ctx; typedef
37 chacha_keysetup(chacha_ctx *ctx, const uint8_t *k) in chacha_keysetup()
54 chacha_ivsetup(chacha_ctx *ctx, const uint8_t *iv, const uint8_t *counter) in chacha_ivsetup()
63 chacha_ietf_ivsetup(chacha_ctx *ctx, const uint8_t *iv, const uint8_t *counter) in chacha_ietf_ivsetup()
72 chacha20_encrypt_bytes(chacha_ctx *ctx, const uint8_t *m, uint8_t *c, in chacha20_encrypt_bytes()
93 struct chacha_ctx ctx; in stream_ref()
112 struct chacha_ctx ctx; in stream_ietf_ref()
132 struct chacha_ctx ctx; in stream_ref_xor_ic()
157 struct chacha_ctx ctx; in stream_ietf_ref_xor_ic()
H A Dchacha20_dolbeau-ssse3.c27 typedef struct chacha_ctx { struct
29 } chacha_ctx; argument
32 chacha_keysetup(chacha_ctx *ctx, const uint8_t *k) in chacha_keysetup()
49 chacha_ivsetup(chacha_ctx *ctx, const uint8_t *iv, const uint8_t *counter) in chacha_ivsetup()
58 chacha_ietf_ivsetup(chacha_ctx *ctx, const uint8_t *iv, const uint8_t *counter) in chacha_ietf_ivsetup()
67 chacha20_encrypt_bytes(chacha_ctx *ctx, const uint8_t *m, uint8_t *c, in chacha20_encrypt_bytes()
87 struct chacha_ctx ctx; in stream_ref()
106 struct chacha_ctx ctx; in stream_ietf_ref()
126 struct chacha_ctx ctx; in stream_ref_xor_ic()
151 struct chacha_ctx ctx; in stream_ietf_ref_xor_ic()
/freebsd/crypto/openssh/
H A Dchacha.h15 struct chacha_ctx { struct
25 void chacha_keysetup(struct chacha_ctx *x, const u_char *k, u_int kbits) argument
27 void chacha_ivsetup(struct chacha_ctx *x, const u_char *iv, const u_char *ctr)
30 void chacha_encrypt_bytes(struct chacha_ctx *x, const u_char *m,
H A Dchacha.c15 typedef struct chacha_ctx chacha_ctx; typedef
55 chacha_keysetup(chacha_ctx *x,const u8 *k,u32 kbits) in chacha_keysetup()
80 chacha_ivsetup(chacha_ctx *x, const u8 *iv, const u8 *counter) in chacha_ivsetup()
89 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) in chacha_encrypt_bytes()
H A Dcipher-chachapoly.c36 struct chacha_ctx main_ctx, header_ctx;
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_stream/chacha20/ref/
H A Dchacha20_ref.c20 struct chacha_ctx { struct
24 typedef struct chacha_ctx chacha_ctx; typedef
46 chacha_keysetup(chacha_ctx *ctx, const uint8_t *k) in chacha_keysetup()
63 chacha_ivsetup(chacha_ctx *ctx, const uint8_t *iv, const uint8_t *counter) in chacha_ivsetup()
72 chacha_ietf_ivsetup(chacha_ctx *ctx, const uint8_t *iv, const uint8_t *counter) in chacha_ietf_ivsetup()
81 chacha20_encrypt_bytes(chacha_ctx *ctx, const uint8_t *m, uint8_t *c, in chacha20_encrypt_bytes()
230 struct chacha_ctx ctx; in stream_ref()
249 struct chacha_ctx ctx; in stream_ietf_ref()
269 struct chacha_ctx ctx; in stream_ref_xor_ic()
294 struct chacha_ctx ctx; in stream_ietf_ref_xor_ic()
/freebsd/sys/crypto/chacha20/
H A Dchacha.h33 LOCAL void chacha_keysetup(struct chacha_ctx *x, const u_char *k, u_int kbits);
34 LOCAL void chacha_ivsetup(struct chacha_ctx *x, const u_char *iv CHACHA_UNUSED,
36 LOCAL void chacha_encrypt_bytes(struct chacha_ctx *x, const u_char *m,
H A Dchacha.c17 typedef struct chacha_ctx chacha_ctx; typedef
57 chacha_keysetup(chacha_ctx *x,const u8 *k,u32 kbits) in chacha_keysetup()
82 chacha_ivsetup(chacha_ctx *x, const u8 *iv, const u8 *counter) in chacha_ivsetup()
101 chacha_ctrsave(const chacha_ctx *x, u8 *counter) in chacha_ctrsave()
111 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) in chacha_encrypt_bytes()
H A D_chacha.h10 struct chacha_ctx { struct
H A Dchacha-sw.c52 .ctxsize = sizeof(struct chacha_ctx),
/freebsd/sys/dev/random/fenestrasX/
H A Dfx_rng.c64 fxrng_rng_keystream_internal(struct chacha_ctx *prf, void *buf, size_t nbytes) in fxrng_rng_keystream_internal()
84 fxrng_chacha_nonce_add64(struct chacha_ctx *ctx, uint64_t addend) in fxrng_chacha_nonce_add64()
121 struct chacha_ctx ctx_copy, *p_ctx; in fxrng_rng_genrandom_internal()
H A Dfx_rng.h41 struct chacha_ctx rng_prf;
/freebsd/contrib/unbound/compat/
H A Dchacha_private.h15 } chacha_ctx; typedef
55 chacha_keysetup(chacha_ctx *x,const u8 *k,u32 kbits,u32 ATTR_UNUSED(ivbits)) in chacha_keysetup()
80 chacha_ivsetup(chacha_ctx *x,const u8 *iv) in chacha_ivsetup()
89 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) in chacha_encrypt_bytes()
H A Darc4random.c70 chacha_ctx rs_chacha; /* chacha context for random keystream */
/freebsd/crypto/openssh/openbsd-compat/
H A Dchacha_private.h17 } chacha_ctx; typedef
57 chacha_keysetup(chacha_ctx *x,const u8 *k,u32 kbits) in chacha_keysetup()
82 chacha_ivsetup(chacha_ctx *x,const u8 *iv) in chacha_ivsetup()
91 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) in chacha_encrypt_bytes()
H A Darc4random.c85 chacha_ctx rs_chacha; /* chacha context for random keystream */
/freebsd/sys/dev/random/
H A Dhash.h56 struct chacha_ctx chacha;
/freebsd/sys/libkern/
H A Darc4random.c67 struct chacha_ctx ctx;
/freebsd/lib/libc/gen/
H A Darc4random.c77 chacha_ctx rs_chacha; /* chacha context for random keystream */
/freebsd/sys/kern/
H A Dkern_shutdown.c196 struct chacha_ctx u_chacha;