Symbol: chacha_ctx
lib/libc/crypt/arc4random.c
62
chacha_ctx rs_chacha; /* chacha context for random keystream */
lib/libc/crypt/chacha_private.h
55
chacha_keysetup(chacha_ctx *x,const u8 *k,u32 kbits)
lib/libc/crypt/chacha_private.h
80
chacha_ivsetup(chacha_ctx *x,const u8 *iv)
lib/libc/crypt/chacha_private.h
89
chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes)
lib/libcrypto/chacha/chacha-merged.c
110
chacha_ivsetup(chacha_ctx *x, const u8 *iv, const u8 *counter)
lib/libcrypto/chacha/chacha-merged.c
119
chacha_encrypt_bytes(chacha_ctx *x, const u8 *m, u8 *c, u32 bytes)
lib/libcrypto/chacha/chacha-merged.c
25
static inline void chacha_keysetup(struct chacha_ctx *x, const u8 *k, u32 kbits)
lib/libcrypto/chacha/chacha-merged.c
27
static inline void chacha_ivsetup(struct chacha_ctx *x, const u8 *iv,
lib/libcrypto/chacha/chacha-merged.c
31
static inline void chacha_encrypt_bytes(struct chacha_ctx *x, const u8 *m,
lib/libcrypto/chacha/chacha-merged.c
36
typedef struct chacha_ctx chacha_ctx;
lib/libcrypto/chacha/chacha-merged.c
85
chacha_keysetup(chacha_ctx *x, const u8 *k, u32 kbits)
lib/libcrypto/chacha/chacha.c
27
chacha_keysetup((chacha_ctx *)ctx, key, keybits);
lib/libcrypto/chacha/chacha.c
36
chacha_ivsetup((chacha_ctx *)ctx, iv, counter);
lib/libcrypto/chacha/chacha.c
62
chacha_encrypt_bytes((chacha_ctx *)ctx, in, out, (uint32_t)n);
lib/libcrypto/chacha/chacha.c
75
struct chacha_ctx ctx;
libexec/ld.so/chacha_private.h
55
chacha_keysetup(chacha_ctx *x,const u8 *k,u32 kbits)
libexec/ld.so/chacha_private.h
80
chacha_ivsetup(chacha_ctx *x,const u8 *iv)
libexec/ld.so/chacha_private.h
89
chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes)
libexec/ld.so/util.c
83
static chacha_ctx chacha;
sys/crypto/chacha_private.h
119
chacha_ivsetup(chacha_ctx *x, const u8 *iv, const u8 *counter)
sys/crypto/chacha_private.h
128
chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes)
sys/crypto/chacha_private.h
94
chacha_keysetup(chacha_ctx *x,const u8 *k,u32 kbits)
sys/crypto/chachapoly.c
129
chacha_ctx chacha_ctx;
sys/crypto/chachapoly.c
136
chacha_keysetup(&chacha_ctx, key, CHACHA20POLY1305_KEY_SIZE * 8);
sys/crypto/chachapoly.c
137
chacha_ivsetup(&chacha_ctx, (uint8_t *) &le_nonce, NULL);
sys/crypto/chachapoly.c
138
chacha_encrypt_bytes(&chacha_ctx, b.b0, b.b0, sizeof(b.b0));
sys/crypto/chachapoly.c
144
chacha_encrypt_bytes(&chacha_ctx, (uint8_t *) src, dst, src_len);
sys/crypto/chachapoly.c
155
explicit_bzero(&chacha_ctx, sizeof(chacha_ctx));
sys/crypto/chachapoly.c
170
chacha_ctx chacha_ctx;
sys/crypto/chachapoly.c
183
chacha_keysetup(&chacha_ctx, key, CHACHA20POLY1305_KEY_SIZE * 8);
sys/crypto/chachapoly.c
184
chacha_ivsetup(&chacha_ctx, (uint8_t *) &le_nonce, NULL);
sys/crypto/chachapoly.c
185
chacha_encrypt_bytes(&chacha_ctx, b.b0, b.b0, sizeof(b.b0));
sys/crypto/chachapoly.c
203
chacha_encrypt_bytes(&chacha_ctx, (uint8_t *) src, dst, dst_len);
sys/crypto/chachapoly.c
205
explicit_bzero(&chacha_ctx, sizeof(chacha_ctx));
sys/crypto/chachapoly.c
38
chacha_keysetup((chacha_ctx *)&ctx->block, key, CHACHA20_KEYSIZE * 8);
sys/crypto/chachapoly.c
47
chacha_ivsetup((chacha_ctx *)ctx->block, iv, ctx->nonce);
sys/crypto/chachapoly.c
55
chacha_encrypt_bytes((chacha_ctx *)ctx->block, data, data,
sys/crypto/chachapoly.c
75
chacha_keysetup((chacha_ctx *)&ctx->chacha, key, CHACHA20_KEYSIZE * 8);
sys/crypto/chachapoly.c
84
chacha_ivsetup((chacha_ctx *)&ctx->chacha, iv, ctx->nonce);
sys/crypto/chachapoly.c
85
chacha_encrypt_bytes((chacha_ctx *)&ctx->chacha, ctx->key, ctx->key,
sys/dev/rnd.c
326
static chacha_ctx rs; /* chacha context for random keystream */
sys/dev/rnd.c
553
chacha_ctx *ctx = malloc(sizeof(chacha_ctx), M_TEMP, M_WAITOK);
sys/dev/rnd.c
567
explicit_bzero(ctx, sizeof(chacha_ctx));
sys/dev/rnd.c
568
free(ctx, M_TEMP, sizeof(chacha_ctx));
sys/dev/rnd.c
580
chacha_encrypt_bytes((chacha_ctx *)ctx, buf, buf, n);
usr.bin/ssh/chacha.c
13
typedef struct chacha_ctx chacha_ctx;
usr.bin/ssh/chacha.c
53
chacha_keysetup(chacha_ctx *x,const u8 *k,u32 kbits)
usr.bin/ssh/chacha.c
78
chacha_ivsetup(chacha_ctx *x, const u8 *iv, const u8 *counter)
usr.bin/ssh/chacha.c
87
chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes)
usr.bin/ssh/chacha.h
25
void chacha_keysetup(struct chacha_ctx *x, const u_char *k, u_int kbits)
usr.bin/ssh/chacha.h
27
void chacha_ivsetup(struct chacha_ctx *x, const u_char *iv, const u_char *ctr)
usr.bin/ssh/chacha.h
30
void chacha_encrypt_bytes(struct chacha_ctx *x, const u_char *m,
usr.bin/ssh/cipher-chachapoly.c
29
struct chacha_ctx main_ctx, header_ctx;