Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/cipher_extra/
De_chacha20poly1305.c83 struct aead_chacha20_poly1305_ctx *c20_ctx; in aead_chacha20_poly1305_init() local
94 if (key_len != sizeof(c20_ctx->key)) { in aead_chacha20_poly1305_init()
98 c20_ctx = OPENSSL_malloc(sizeof(struct aead_chacha20_poly1305_ctx)); in aead_chacha20_poly1305_init()
99 if (c20_ctx == NULL) { in aead_chacha20_poly1305_init()
103 OPENSSL_memcpy(c20_ctx->key, key, key_len); in aead_chacha20_poly1305_init()
104 ctx->aead_state = c20_ctx; in aead_chacha20_poly1305_init()
111 struct aead_chacha20_poly1305_ctx *c20_ctx = ctx->aead_state; in aead_chacha20_poly1305_cleanup() local
112 OPENSSL_cleanse(c20_ctx->key, sizeof(c20_ctx->key)); in aead_chacha20_poly1305_cleanup()
113 OPENSSL_free(c20_ctx); in aead_chacha20_poly1305_cleanup()
129 const struct aead_chacha20_poly1305_ctx *c20_ctx, in calc_tag() argument
[all …]