Lines Matching refs:shared_secret
59 unsigned char *shared_secret; /* KEM output, zz */ member
461 if (ctx->shared_secret != NULL) { in hpke_encap()
519 ctx->shared_secret = OPENSSL_malloc(lsslen); in hpke_encap()
520 if (ctx->shared_secret == NULL) in hpke_encap()
523 if (EVP_PKEY_encapsulate(pctx, enc, enclen, ctx->shared_secret, in hpke_encap()
526 OPENSSL_free(ctx->shared_secret); in hpke_encap()
527 ctx->shared_secret = NULL; in hpke_encap()
561 if (ctx->shared_secret != NULL) { in hpke_decap()
614 ctx->shared_secret = OPENSSL_malloc(lsslen); in hpke_decap()
615 if (ctx->shared_secret == NULL) in hpke_decap()
617 if (EVP_PKEY_decapsulate(pctx, ctx->shared_secret, &lsslen, in hpke_decap()
629 OPENSSL_free(ctx->shared_secret); in hpke_decap()
630 ctx->shared_secret = NULL; in hpke_decap()
737 ctx->shared_secret, ctx->shared_secretlen, in hpke_do_middle()
860 OPENSSL_clear_free(ctx->shared_secret, ctx->shared_secretlen); in OSSL_HPKE_CTX_free()
1086 if (ctx->shared_secret != NULL) { in OSSL_HPKE_encap()
1133 if (ctx->shared_secret != NULL) { in OSSL_HPKE_decap()