/openbsd/sys/crypto/ |
H A D | chachapoly.c | 47 chacha_ivsetup((chacha_ctx *)ctx->block, iv, ctx->nonce); in chacha20_reinit() 55 chacha_encrypt_bytes((chacha_ctx *)ctx->block, data, data, in chacha20_crypt() 84 chacha_ivsetup((chacha_ctx *)&ctx->chacha, iv, ctx->nonce); in Chacha20_Poly1305_Reinit() 129 chacha_ctx chacha_ctx; in chacha20poly1305_encrypt() local 137 chacha_ivsetup(&chacha_ctx, (uint8_t *) &le_nonce, NULL); in chacha20poly1305_encrypt() 138 chacha_encrypt_bytes(&chacha_ctx, b.b0, b.b0, sizeof(b.b0)); in chacha20poly1305_encrypt() 155 explicit_bzero(&chacha_ctx, sizeof(chacha_ctx)); in chacha20poly1305_encrypt() 170 chacha_ctx chacha_ctx; in chacha20poly1305_decrypt() local 184 chacha_ivsetup(&chacha_ctx, (uint8_t *) &le_nonce, NULL); in chacha20poly1305_decrypt() 185 chacha_encrypt_bytes(&chacha_ctx, b.b0, b.b0, sizeof(b.b0)); in chacha20poly1305_decrypt() [all …]
|
H A D | chacha_private.h | 16 } chacha_ctx; typedef 94 chacha_keysetup(chacha_ctx *x,const u8 *k,u32 kbits) in chacha_keysetup() 119 chacha_ivsetup(chacha_ctx *x, const u8 *iv, const u8 *counter) in chacha_ivsetup() 128 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) in chacha_encrypt_bytes()
|
/openbsd/usr.bin/ssh/ |
H A D | chacha.h | 15 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 D | chacha.c | 13 typedef struct chacha_ctx chacha_ctx; typedef 53 chacha_keysetup(chacha_ctx *x,const u8 *k,u32 kbits) in chacha_keysetup() 78 chacha_ivsetup(chacha_ctx *x, const u8 *iv, const u8 *counter) in chacha_ivsetup() 87 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) in chacha_encrypt_bytes()
|
H A D | cipher-chachapoly.c | 29 struct chacha_ctx main_ctx, header_ctx;
|
/openbsd/lib/libcrypto/chacha/ |
H A D | chacha.c | 27 chacha_keysetup((chacha_ctx *)ctx, key, keybits); in ChaCha_set_key() 36 chacha_ivsetup((chacha_ctx *)ctx, iv, counter); in ChaCha_set_iv() 62 chacha_encrypt_bytes((chacha_ctx *)ctx, in, out, (uint32_t)n); in ChaCha() 75 struct chacha_ctx ctx; in CRYPTO_chacha_20()
|
H A D | chacha-merged.c | 19 struct chacha_ctx { struct 25 static inline void chacha_keysetup(struct chacha_ctx *x, const u8 *k, u32 kbits) argument 27 static inline void chacha_ivsetup(struct chacha_ctx *x, const u8 *iv, 31 static inline void chacha_encrypt_bytes(struct chacha_ctx *x, const u8 *m, 36 typedef struct chacha_ctx chacha_ctx; typedef 85 chacha_keysetup(chacha_ctx *x, const u8 *k, u32 kbits) in chacha_keysetup() 110 chacha_ivsetup(chacha_ctx *x, const u8 *iv, const u8 *counter) in chacha_ivsetup() 119 chacha_encrypt_bytes(chacha_ctx *x, const u8 *m, u8 *c, u32 bytes) in chacha_encrypt_bytes()
|
/openbsd/sys/dev/ |
H A D | rnd.c | 326 static chacha_ctx rs; /* chacha context for random keystream */ 553 chacha_ctx *ctx = malloc(sizeof(chacha_ctx), M_TEMP, M_WAITOK); in arc4random_ctx_new() 567 explicit_bzero(ctx, sizeof(chacha_ctx)); in arc4random_ctx_free() 568 free(ctx, M_TEMP, sizeof(chacha_ctx)); in arc4random_ctx_free() 580 chacha_encrypt_bytes((chacha_ctx *)ctx, buf, buf, n); in arc4random_ctx_buf()
|
/openbsd/libexec/ld.so/ |
H A D | chacha_private.h | 15 } 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) in chacha_ivsetup() 89 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) in chacha_encrypt_bytes()
|
H A D | util.c | 83 static chacha_ctx chacha;
|
/openbsd/lib/libc/crypt/ |
H A D | chacha_private.h | 15 } 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) in chacha_ivsetup() 89 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) in chacha_encrypt_bytes()
|
H A D | arc4random.c | 62 chacha_ctx rs_chacha; /* chacha context for random keystream */
|