Searched refs:c20_ctx (Results 1 – 1 of 1) sorted by relevance
37 struct aead_chacha20_poly1305_ctx *c20_ctx; in aead_chacha20_poly1305_init() local48 if (key_len != sizeof(c20_ctx->key)) { in aead_chacha20_poly1305_init()52 c20_ctx = OPENSSL_malloc(sizeof(struct aead_chacha20_poly1305_ctx)); in aead_chacha20_poly1305_init()53 if (c20_ctx == NULL) { in aead_chacha20_poly1305_init()57 memcpy(c20_ctx->key, key, key_len); in aead_chacha20_poly1305_init()58 c20_ctx->tag_len = tag_len; in aead_chacha20_poly1305_init()59 ctx->aead_state = c20_ctx; in aead_chacha20_poly1305_init()65 struct aead_chacha20_poly1305_ctx *c20_ctx = ctx->aead_state; in aead_chacha20_poly1305_cleanup() local66 OPENSSL_cleanse(c20_ctx->key, sizeof(c20_ctx->key)); in aead_chacha20_poly1305_cleanup()67 OPENSSL_free(c20_ctx); in aead_chacha20_poly1305_cleanup()[all …]