chacha_ctx
chacha_ivsetup(chacha_ctx *x, const u8 *iv, const u8 *counter)
chacha_encrypt_bytes(chacha_ctx *x, const u8 *m, u8 *c, u32 bytes)
static inline void chacha_keysetup(struct chacha_ctx *x, const u8 *k, u32 kbits)
static inline void chacha_ivsetup(struct chacha_ctx *x, const u8 *iv,
static inline void chacha_encrypt_bytes(struct chacha_ctx *x, const u8 *m,
typedef struct chacha_ctx chacha_ctx;
chacha_keysetup(chacha_ctx *x, const u8 *k, u32 kbits)
chacha_keysetup((chacha_ctx *)ctx, key, keybits);
chacha_ivsetup((chacha_ctx *)ctx, iv, counter);
chacha_encrypt_bytes((chacha_ctx *)ctx, in, out, (uint32_t)n);
struct chacha_ctx ctx;
typedef struct chacha_ctx chacha_ctx;
chacha_keysetup(chacha_ctx *x,const u8 *k,u32 kbits)
chacha_ivsetup(chacha_ctx *x, const u8 *iv, const u8 *counter)
chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes)
void chacha_keysetup(struct chacha_ctx *x, const u_char *k, u_int kbits)
void chacha_ivsetup(struct chacha_ctx *x, const u_char *iv, const u_char *ctr)
void chacha_encrypt_bytes(struct chacha_ctx *x, const u_char *m,
struct chacha_ctx main_ctx, header_ctx;
chacha_ctx rs_chacha; /* chacha context for random keystream */
chacha_ctrsave(const chacha_ctx *x, u8 *counter)
chacha_encrypt_bytes(chacha_ctx *x, const u8 *m, u8 *c, u32 bytes)
typedef struct chacha_ctx chacha_ctx;
chacha_keysetup(chacha_ctx *x, const u8 *k, u32 kbits)
chacha_ivsetup(chacha_ctx *x, const u8 *iv, const u8 *counter)
LOCAL void chacha_keysetup(struct chacha_ctx *x, const uint8_t *k,
LOCAL void chacha_ivsetup(struct chacha_ctx *x, const uint8_t *iv,
LOCAL void chacha_encrypt_bytes(struct chacha_ctx *x, const uint8_t *m,
LOCAL void chacha_ctrsave(const struct chacha_ctx *x, uint8_t *counter)
struct chacha_ctx chacha;
struct chacha_ctx cipher_ctx; /* (Stream) cipher context */