Home
last modified time | relevance | path

Searched refs:vkey (Results 1 – 18 of 18) sorted by relevance

/freebsd/crypto/openssl/providers/implementations/exchange/
H A Decx_exch.c71 static int ecx_init(void *vecxctx, void *vkey, const char *algname) in ecx_init() argument
74 ECX_KEY *key = vkey; in ecx_init()
97 static int x25519_init(void *vecxctx, void *vkey, in x25519_init() argument
100 return ecx_init(vecxctx, vkey, "X25519"); in x25519_init()
103 static int x448_init(void *vecxctx, void *vkey, in x448_init() argument
106 return ecx_init(vecxctx, vkey, "X448"); in x448_init()
109 static int ecx_set_peer(void *vecxctx, void *vkey) in ecx_set_peer() argument
112 ECX_KEY *key = vkey; in ecx_set_peer()
/freebsd/crypto/heimdal/lib/roken/
H A Dtsearch.c40 rk_tsearch(const void *vkey, void **vrootp, in rk_tsearch() argument
52 if ((r = (*compar)(vkey, (*rootp)->key)) == 0) /* T2: */ in rk_tsearch()
64 q->key = __DECONST(void *, vkey); /* initialize new node */ in rk_tsearch()
116 rk_tdelete(const void * vkey, void ** vrootp, in rk_tdelete() argument
126 while ((cmp = (*compar)(vkey, (*rootp)->key)) != 0) { in rk_tdelete()
162 rk_tfind(const void *vkey, void * const *vrootp, in rk_tfind() argument
173 if ((r = (*compar)(vkey, (*rootp)->key)) == 0) /* T2: */ in rk_tfind()
/freebsd/crypto/openssl/providers/implementations/signature/
H A Dml_dsa_sig.c124 static int ml_dsa_signverify_msg_init(void *vctx, void *vkey, in ml_dsa_signverify_msg_init() argument
129 ML_DSA_KEY *key = vkey; in ml_dsa_signverify_msg_init()
135 if (vkey == NULL && ctx->key == NULL) { in ml_dsa_signverify_msg_init()
141 ctx->key = vkey; in ml_dsa_signverify_msg_init()
151 static int ml_dsa_sign_msg_init(void *vctx, void *vkey, const OSSL_PARAM params[]) in ml_dsa_sign_msg_init() argument
153 return ml_dsa_signverify_msg_init(vctx, vkey, params, in ml_dsa_sign_msg_init()
158 void *vkey, const OSSL_PARAM params[]) in ml_dsa_digest_signverify_init() argument
170 if (vkey == NULL && ctx->key != NULL) in ml_dsa_digest_signverify_init()
173 return ml_dsa_signverify_msg_init(vctx, vkey, params, in ml_dsa_digest_signverify_init()
214 static int ml_dsa_verify_msg_init(void *vctx, void *vkey, const OSSL_PARAM params[]) in ml_dsa_verify_msg_init() argument
[all …]
H A Dslh_dsa_sig.c145 static int slh_dsa_signverify_msg_init(void *vctx, void *vkey, in slh_dsa_signverify_msg_init() argument
150 SLH_DSA_KEY *key = vkey; in slh_dsa_signverify_msg_init()
156 if (vkey == NULL && ctx->key == NULL) { in slh_dsa_signverify_msg_init()
167 ctx->key = vkey; in slh_dsa_signverify_msg_init()
176 static int slh_dsa_sign_msg_init(void *vctx, void *vkey, const OSSL_PARAM params[]) in slh_dsa_sign_msg_init() argument
178 return slh_dsa_signverify_msg_init(vctx, vkey, params, in slh_dsa_sign_msg_init()
183 void *vkey, const OSSL_PARAM params[]) in slh_dsa_digest_signverify_init() argument
193 if (vkey == NULL && ctx->key != NULL) in slh_dsa_digest_signverify_init()
196 return slh_dsa_signverify_msg_init(vctx, vkey, params, in slh_dsa_digest_signverify_init()
236 static int slh_dsa_verify_msg_init(void *vctx, void *vkey, const OSSL_PARAM params[]) in slh_dsa_verify_msg_init() argument
[all …]
H A Dmac_legacy_sig.c96 static int mac_digest_sign_init(void *vpmacctx, const char *mdname, void *vkey, in mac_digest_sign_init() argument
106 if (pmacctx->key == NULL && vkey == NULL) { in mac_digest_sign_init()
111 if (vkey != NULL) { in mac_digest_sign_init()
112 if (!ossl_mac_key_up_ref(vkey)) in mac_digest_sign_init()
115 pmacctx->key = vkey; in mac_digest_sign_init()
/freebsd/crypto/openssl/providers/implementations/kem/
H A Dtemplate_kem.c81 static int template_init(void *vctx, int operation, void *vkey, void *vauth, in template_init() argument
86 debug_print("init %p / %p\n", ctx, vkey); in template_init()
96 static int template_encapsulate_init(void *vctx, void *vkey, in template_encapsulate_init() argument
99 return template_init(vctx, EVP_PKEY_OP_ENCAPSULATE, vkey, NULL, params); in template_encapsulate_init()
102 static int template_decapsulate_init(void *vctx, void *vkey, in template_decapsulate_init() argument
105 return template_init(vctx, EVP_PKEY_OP_DECAPSULATE, vkey, NULL, params); in template_decapsulate_init()
H A Dml_kem_kem.c74 static int ml_kem_encapsulate_init(void *vctx, void *vkey, in ml_kem_encapsulate_init() argument
77 ML_KEM_KEY *key = vkey; in ml_kem_encapsulate_init()
86 static int ml_kem_decapsulate_init(void *vctx, void *vkey, in ml_kem_decapsulate_init() argument
89 ML_KEM_KEY *key = vkey; in ml_kem_decapsulate_init()
H A Dmlx_kem.c69 mlx_kem_encapsulate_init(void *vctx, void *vkey, const OSSL_PARAM params[]) in mlx_kem_encapsulate_init() argument
71 MLX_KEY *key = vkey; in mlx_kem_encapsulate_init()
81 mlx_kem_decapsulate_init(void *vctx, void *vkey, const OSSL_PARAM params[]) in mlx_kem_decapsulate_init() argument
83 MLX_KEY *key = vkey; in mlx_kem_decapsulate_init()
/freebsd/crypto/openssl/providers/implementations/keymgmt/
H A Dmlx_kmgmt.c62 static void mlx_kem_key_free(void *vkey) in mlx_kem_key_free() argument
64 MLX_KEY *key = vkey; in mlx_kem_key_free()
100 static int mlx_kem_has(const void *vkey, int selection) in mlx_kem_has() argument
102 const MLX_KEY *key = vkey; in mlx_kem_has()
243 static int mlx_kem_export(void *vkey, int selection, OSSL_CALLBACK *param_cb, in mlx_kem_export() argument
246 MLX_KEY *key = vkey; in mlx_kem_export()
457 static int mlx_kem_import(void *vkey, int selection, const OSSL_PARAM params[]) in mlx_kem_import() argument
459 MLX_KEY *key = vkey; in mlx_kem_import()
489 static int mlx_kem_get_params(void *vkey, OSSL_PARAM params[]) in mlx_kem_get_params() argument
491 MLX_KEY *key = vkey; in mlx_kem_get_params()
[all …]
H A Dml_kem_kmgmt.c189 static int ml_kem_has(const void *vkey, int selection) in ml_kem_has() argument
191 const ML_KEM_KEY *key = vkey; in ml_kem_has()
222 static int ml_kem_validate(const void *vkey, int selection, int check_type) in ml_kem_validate() argument
224 const ML_KEM_KEY *key = vkey; in ml_kem_validate()
234 static int ml_kem_export(void *vkey, int selection, OSSL_CALLBACK *param_cb, in ml_kem_export() argument
237 ML_KEM_KEY *key = vkey; in ml_kem_export()
463 static int ml_kem_import(void *vkey, int selection, const OSSL_PARAM params[]) in ml_kem_import() argument
465 ML_KEM_KEY *key = vkey; in ml_kem_import()
558 static int ml_kem_get_params(void *vkey, OSSL_PARAM params[]) in ml_kem_get_params() argument
560 ML_KEM_KEY *key = vkey; in ml_kem_get_params()
[all …]
H A Dtemplate_kmgmt.c85 static void template_free(void *vkey) in template_free() argument
87 debug_print("free key %p\n", vkey); in template_free()
88 if (vkey == NULL) in template_free()
93 OPENSSL_free(vkey); in template_free()
/freebsd/lib/libc/stdlib/
H A Dtfind.c29 tfind(const void *vkey, posix_tnode * const *rootp, in tfind() argument
39 if ((r = (*compar)(vkey, (*rootp)->key)) == 0) /* T2: */ in tfind()
/freebsd/crypto/openssl/providers/implementations/asymciphers/
H A Dsm2_enc.c60 static int sm2_init(void *vpsm2ctx, void *vkey, const OSSL_PARAM params[]) in sm2_init() argument
64 if (psm2ctx == NULL || vkey == NULL || !EC_KEY_up_ref(vkey)) in sm2_init()
67 psm2ctx->key = vkey; in sm2_init()
/freebsd/crypto/openssl/crypto/sm4/asm/
H A Dvpsm4-armv8.pl590 my ($vkey,$vfk,$vmap)=("v5","v6","v7");
596 ld1 {$vkey.4s},[$key]
599 &rev32($vkey,$vkey);
607 eor $vkey.16b,$vkey.16b,$vfk.16b
615 mov $wtmp,$vkey.s[1]
618 mov $wtmp,$vkey.s[2]
620 mov $wtmp,$vkey.s[3]
634 mov $wtmp,$vkey.s[0]
636 mov $vkey.s[0],$roundkey
643 tbl $vkey.16b,{$vkey.16b},$vmap.16b
H A Dvpsm4_ex-armv8.pl589 my ($vkey,$vfk,$vmap)=("v5","v6","v7");
595 ld1 {$vkey.4s},[$key]
598 &rev32($vkey,$vkey);
606 eor $vkey.16b,$vkey.16b,$vfk.16b
614 mov $wtmp,$vkey.s[1]
617 mov $wtmp,$vkey.s[2]
619 mov $wtmp,$vkey.s[3]
635 mov $wtmp,$vkey.s[0]
637 mov $vkey.s[0],$roundkey
644 tbl $vkey.16b,{$vkey.16b},$vmap.16b
/freebsd/crypto/openssl/providers/implementations/encode_decode/
H A Dencode_key2any.c847 static int ml_dsa_spki_pub_to_der(const void *vkey, unsigned char **pder, in ml_dsa_spki_pub_to_der() argument
850 return ossl_ml_dsa_i2d_pubkey(vkey, pder); in ml_dsa_spki_pub_to_der()
853 static int ml_dsa_pki_priv_to_der(const void *vkey, unsigned char **pder, in ml_dsa_pki_priv_to_der() argument
858 return ossl_ml_dsa_i2d_prvkey(vkey, pder, ctx->provctx); in ml_dsa_pki_priv_to_der()
877 static int ml_kem_spki_pub_to_der(const void *vkey, unsigned char **pder, in ml_kem_spki_pub_to_der() argument
880 return ossl_ml_kem_i2d_pubkey(vkey, pder); in ml_kem_spki_pub_to_der()
883 static int ml_kem_pki_priv_to_der(const void *vkey, unsigned char **pder, in ml_kem_pki_priv_to_der() argument
888 return ossl_ml_kem_i2d_prvkey(vkey, pder, ctx->provctx); in ml_kem_pki_priv_to_der()
1020 static int slh_dsa_spki_pub_to_der(const void *vkey, unsigned char **pder, in slh_dsa_spki_pub_to_der() argument
1023 const SLH_DSA_KEY *key = vkey; in slh_dsa_spki_pub_to_der()
[all …]
H A Dencode_key2text.c443 static int ml_kem_to_text(BIO *out, const void *vkey, int selection) in ml_kem_to_text() argument
445 return ossl_ml_kem_key_to_text(out, (ML_KEM_KEY *)vkey, selection); in ml_kem_to_text()
/freebsd/crypto/openssl/test/
H A Dtls-provider.c474 static int xor_init(void *vpxorctx, void *vkey, in xor_init() argument
479 if (pxorctx == NULL || vkey == NULL) in xor_init()
481 pxorctx->key = vkey; in xor_init()
735 static int xor_has(const void *vkey, int selection) in xor_has() argument
737 const XORKEY *key = vkey; in xor_has()
786 static ossl_inline int xor_get_params(void *vkey, OSSL_PARAM params[]) in xor_get_params() argument
788 XORKEY *key = vkey; in xor_get_params()
824 static int xor_set_params(void *vkey, const OSSL_PARAM params[]) in xor_set_params() argument
826 XORKEY *key = vkey; in xor_set_params()
997 static int xor_import(void *vkey, int select, const OSSL_PARAM params[]) in xor_import() argument
[all …]