Searched refs:c20_ctx (Results 1 – 1 of 1) sorted by relevance
38 struct aead_chacha20_poly1305_ctx *c20_ctx; in aead_chacha20_poly1305_init() local49 if (key_len != sizeof(c20_ctx->key)) { in aead_chacha20_poly1305_init()53 c20_ctx = OPENSSL_malloc(sizeof(struct aead_chacha20_poly1305_ctx)); in aead_chacha20_poly1305_init()54 if (c20_ctx == NULL) { in aead_chacha20_poly1305_init()58 memcpy(c20_ctx->key, key, key_len); in aead_chacha20_poly1305_init()59 c20_ctx->tag_len = tag_len; in aead_chacha20_poly1305_init()60 ctx->aead_state = c20_ctx; in aead_chacha20_poly1305_init()66 struct aead_chacha20_poly1305_ctx *c20_ctx = ctx->aead_state; in aead_chacha20_poly1305_cleanup() local67 OPENSSL_cleanse(c20_ctx->key, sizeof(c20_ctx->key)); in aead_chacha20_poly1305_cleanup()68 OPENSSL_free(c20_ctx); in aead_chacha20_poly1305_cleanup()[all …]