Lines Matching refs:kem
4731 static size_t hpke_suite_id(struct hpke_context *ctx, bool kem, u8 *suite_id) in hpke_suite_id() argument
4735 if (kem) { in hpke_suite_id()
4750 static int hpke_labeled_extract(struct hpke_context *ctx, bool kem, in hpke_labeled_extract() argument
4758 unsigned int mdlen = kem ? ctx->kem_n_h : ctx->n_h; in hpke_labeled_extract()
4776 suite_id_len = hpke_suite_id(ctx, kem, suite_id); in hpke_labeled_extract()
4788 (char *) EVP_MD_get0_name(kem ? ctx->kem_h : ctx->kdf_h), 0); in hpke_labeled_extract()
4817 res = HMAC_Init_ex(hctx, salt, salt_len, kem ? ctx->kem_h : ctx->kdf_h, in hpke_labeled_extract()
4837 hpke_labeled_expand(struct hpke_context *ctx, bool kem, const u8 *prk, in hpke_labeled_expand() argument
4864 suite_id_len = hpke_suite_id(ctx, kem, suite_id); in hpke_labeled_expand()
4889 (char *) EVP_MD_get0_name(kem ? ctx->kem_h : ctx->kdf_h), 0); in hpke_labeled_expand()
4898 mdlen = kem ? ctx->kem_n_h : ctx->n_h; in hpke_labeled_expand()
4922 kem ? ctx->kem_h : ctx->kdf_h, in hpke_labeled_expand()