Home
last modified time | relevance | path

Searched refs:kem (Results 1 – 25 of 42) sorted by relevance

12

/freebsd/crypto/openssl/crypto/evp/
H A Dkem.c34 EVP_KEM *kem = NULL; in evp_kem_init() local
99 EVP_KEM_free(kem); in evp_kem_init()
104 kem = EVP_KEM_fetch(ctx->libctx, supported_kem, ctx->propquery); in evp_kem_init()
105 if (kem != NULL) in evp_kem_init()
106 tmp_prov = EVP_KEM_get0_provider(kem); in evp_kem_init()
110 kem = evp_kem_fetch_from_prov((OSSL_PROVIDER *)tmp_prov, in evp_kem_init()
113 if (kem == NULL) { in evp_kem_init()
120 if (kem == NULL) in evp_kem_init()
143 EVP_KEM_free(kem); in evp_kem_init()
154 EVP_KEM_free(kem); in evp_kem_init()
[all …]
H A Dpmeth_lib.c373 if (ctx->op.encap.algctx != NULL && ctx->op.encap.kem != NULL) in evp_pkey_ctx_free_old_ops()
374 ctx->op.encap.kem->freectx(ctx->op.encap.algctx); in evp_pkey_ctx_free_old_ops()
375 EVP_KEM_free(ctx->op.encap.kem); in evp_pkey_ctx_free_old_ops()
377 ctx->op.encap.kem = NULL; in evp_pkey_ctx_free_old_ops()
552 if (pctx->op.encap.kem != NULL) { in EVP_PKEY_CTX_dup()
553 rctx->op.encap.kem = pctx->op.encap.kem; in EVP_PKEY_CTX_dup()
554 if (!EVP_KEM_up_ref(rctx->op.encap.kem)) in EVP_PKEY_CTX_dup()
558 if (!ossl_assert(pctx->op.encap.kem != NULL)) in EVP_PKEY_CTX_dup()
561 if (pctx->op.encap.kem->dupctx != NULL) in EVP_PKEY_CTX_dup()
563 = pctx->op.encap.kem->dupctx(pctx->op.encap.algctx); in EVP_PKEY_CTX_dup()
[all …]
H A Dbuild.info6 evp_rand.c asymcipher.c kem.c dh_support.c ec_support.c pmeth_check.c
/freebsd/crypto/openssl/doc/man3/
H A DEVP_KEM_free.pod17 void EVP_KEM_free(EVP_KEM *kem);
18 int EVP_KEM_up_ref(EVP_KEM *kem);
19 const char *EVP_KEM_get0_name(const EVP_KEM *kem);
20 int EVP_KEM_is_a(const EVP_KEM *kem, const char *name);
21 OSSL_PROVIDER *EVP_KEM_get0_provider(const EVP_KEM *kem);
23 void (*fn)(EVP_KEM *kem, void *arg), void *arg);
24 int EVP_KEM_names_do_all(const EVP_KEM *kem,
26 const char *EVP_KEM_get0_description(const EVP_KEM *kem);
27 const OSSL_PARAM *EVP_KEM_gettable_ctx_params(const EVP_KEM *kem);
28 const OSSL_PARAM *EVP_KEM_settable_ctx_params(const EVP_KEM *kem);
[all …]
/freebsd/crypto/openssl/doc/man7/
H A Dprovider-kem.pod5 provider-kem - The kem library E<lt>-E<gt> provider functions
53 The asymmetric kem (OSSL_OP_KEM) operation enables providers to
54 implement asymmetric kem algorithms and make them available to applications
94 An asymmetric kem algorithm implementation may not implement all of these
108 An asymmetric kem algorithm must also implement some mechanism for generating,
115 structure for holding context information during an asymmetric kem operation.
117 asymmetric kem operation function calls.
122 kem context in the I<ctx> parameter.
125 OSSL_FUNC_kem_dupctx() should duplicate the provider side asymmetric kem
131 encapsulation given a provider side asymmetric kem context in the I<ctx>
[all …]
H A DEVP_PKEY-ML-KEM.pod111 =item C<ml-kem.import_pct_type> (B<OSSL_PKEY_PARAM_ML_KEM_IMPORT_PCT_TYPE>) <UTF8 string>
122 =item C<ml-kem.retain_seed> (B<OSSL_PKEY_PARAM_ML_KEM_RETAIN_SEED>) <UTF8 string>
130 =item C<ml-kem.prefer_seed> (B<OSSL_PKEY_PARAM_ML_KEM_PREFER_SEED>) <UTF8 string>
140 =item C<ml-kem.input_formats> (B<OSSL_PKEY_PARAM_ML_KEM_INPUT_FORMATS>) <UTF8 string>
209 =item C<ml-kem.output_formats> (B<OSSL_PKEY_PARAM_ML_KEM_OUTPUT_FORMATS>) <UTF8 string>
217 This supports the same set of formats as described under C<ml-kem.input_formats>
257 $ openssl pkey -provparam ml-kem.retain_seed=no \
262 $ openssl genpkey -provparam ml-kem.retain_seed=no \
263 -algorithm ml-kem-768 -out priv-only.pem
268 $ openssl pkey -provparam ml-kem.prefer_seed=no \
[all …]
H A DEVP_KEM-X25519.pod29 supplied recipient public key. A HKDF operation using the keymaterial and a kem
35 See L<https://www.rfc-editor.org/rfc/rfc9180.html#name-dh-based-kem-dhkem>
H A DEVP_KEM-EC.pod28 recipient public key. A HKDF operation using the keymaterial and a kem context
34 See L<https://www.rfc-editor.org/rfc/rfc9180.html#name-dh-based-kem-dhkem>
H A DEVP_KEM-RSA.pod38 These parameters are described in L<provider-kem(7)>.
/freebsd/crypto/openssl/fuzz/
H A Dbuild.info17 IF[{- !$disabled{"ml-kem"} -}]
18 PROGRAMS{noinst}=ml-kem
165 SOURCE[ml-kem]=ml-kem.c driver.c
166 INCLUDE[ml-kem]=../include {- $ex_inc -}
167 DEPEND[ml-kem]=../libcrypto {- $ex_lib -}
180 IF[{- !$disabled{"ml-kem"} -}]
181 PROGRAMS{noinst}=ml-kem-test
242 SOURCE[ml-kem-test]=ml-kem.c test-corpus.c fuzz_rand.c
243 INCLUDE[ml-kem-test]=../include
244 DEPEND[ml-kem-test]=../libcrypto.a
/freebsd/crypto/openssl/test/recipes/15-test_ml_kem_codecs_data/
H A Dml-kem.cnf15 ml-kem = ml_kem_sect
18 ml-kem = ml_kem_sect
/freebsd/crypto/openssl/providers/implementations/encode_decode/
H A Dbuild.info26 IF[{- !$disabled{'ml-kem'} -}]
30 IF[{- !$disabled{'ml-dsa'} || !$disabled{'ml-kem'} -}]
/freebsd/crypto/openssl/providers/implementations/
H A Dbuild.info2 encode_decode storemgmt kem skeymgmt
/freebsd/crypto/openssl/crypto/ml_kem/
H A Dbuild.info3 IF[{- !$disabled{'ml-kem'} -}]
/freebsd/crypto/openssl/doc/internal/man3/
H A Devp_md_get_number.pod18 int evp_kem_get_number(const EVP_KEM *kem);
53 Returns the internal dynamic number assigned to I<kem>.
/freebsd/crypto/openssl/crypto/hpke/
H A Dhpke_util.c453 uint16_t kem = 0, kdf = 0, aead = 0; in ossl_hpke_str2suite() local
500 && (kem = synonyms_name2id(st, kemstrtab, in ossl_hpke_str2suite()
523 suite->kem_id = kem; in ossl_hpke_str2suite()
/freebsd/crypto/openssh/
H A Dsntrup761.sh92 */crypto_kem/sntrup761/compact/kem.c)
/freebsd/crypto/openssl/providers/implementations/kem/
H A Dbuild.info19 IF[{- !$disabled{'ml-kem'} -}]
/freebsd/crypto/openssl/providers/implementations/keymgmt/
H A Dbuild.info44 IF[{- !$disabled{'ml-kem'} -}]
/freebsd/crypto/openssl/doc/man1/
H A Dopenssl-speed.pod.in19 [B<-kem-algorithms>]
103 =item B<-kem-algorithms>
H A Dopenssl-list.pod.in35 [B<-kem-algorithms>]
182 The options B<key-exchange-algorithms>, B<kem-algorithms>,
201 =item B<-kem-algorithms>
/freebsd/crypto/openssl/apps/
H A Dlist.c63 IS_FETCHABLE(kem, EVP_KEM) in IS_FETCHABLE()
910 static void collect_kem(EVP_KEM *kem, void *stack) in collect_kem() argument
914 if (is_kem_fetchable(kem) in collect_kem()
915 && EVP_KEM_up_ref(kem) in collect_kem()
916 && sk_EVP_KEM_push(kem_stack, kem) <= 0) in collect_kem()
917 EVP_KEM_free(kem); /* up-ref successful but push to stack failed */ in collect_kem()
H A Dspeed.c113 int kem; member
1878 IS_FETCHABLE(kem, EVP_KEM) in IS_FETCHABLE()
1889 static void collect_kem(EVP_KEM *kem, void *stack) in collect_kem() argument
1893 if (is_kem_fetchable(kem) in collect_kem()
1894 && EVP_KEM_up_ref(kem) in collect_kem()
1895 && sk_EVP_KEM_push(kem_stack, kem) <= 0) in collect_kem()
1896 EVP_KEM_free(kem); /* up-ref successful but push to stack failed */ in collect_kem()
2250 = seconds.kem = seconds.sig = opt_int_arg(); in speed_main()
2288 EVP_KEM *kem = sk_EVP_KEM_value(kem_stack, idx); in speed_main() local
2290 if (strcmp(EVP_KEM_get0_name(kem), "RSA") == 0) { in speed_main()
[all …]
/freebsd/contrib/wpa/src/crypto/
H A Dcrypto_openssl.c4731 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()
[all …]
/freebsd/secure/lib/libcrypto/man/man7/
H A DMakefile146 MAN+= provider-kem.7

12