Home
last modified time | relevance | path

Searched refs:ecxkey (Results 1 – 3 of 3) sorted by relevance

/freebsd/crypto/openssl/providers/implementations/keymgmt/
H A Decx_kmgmt.c381 static int set_property_query(ECX_KEY *ecxkey, const char *propq) in set_property_query() argument
383 OPENSSL_free(ecxkey->propq); in set_property_query()
384 ecxkey->propq = NULL; in set_property_query()
386 ecxkey->propq = OPENSSL_strdup(propq); in set_property_query()
387 if (ecxkey->propq == NULL) { in set_property_query()
397 ECX_KEY *ecxkey = key; in ecx_set_params() local
405 void *buf = ecxkey->pubkey; in ecx_set_params()
407 if (p->data_size != ecxkey->keylen in ecx_set_params()
408 || !OSSL_PARAM_get_octet_string(p, &buf, sizeof(ecxkey->pubkey), in ecx_set_params()
411 OPENSSL_clear_free(ecxkey->privkey, ecxkey->keylen); in ecx_set_params()
[all …]
/freebsd/crypto/openssl/crypto/ec/
H A Decx_meth.c33 const ECX_KEY *ecxkey = pkey->pkey.ecx; in ecx_pub_encode() local
36 if (ecxkey == NULL) { in ecx_pub_encode()
41 penc = OPENSSL_memdup(ecxkey->pubkey, KEYLEN(pkey)); in ecx_pub_encode()
102 const ECX_KEY *ecxkey = pkey->pkey.ecx; in ecx_priv_encode() local
107 if (ecxkey == NULL || ecxkey->privkey == NULL) { in ecx_priv_encode()
112 oct.data = ecxkey->privkey; in ecx_priv_encode()
171 const ECX_KEY *ecxkey = pkey->pkey.ecx; in ecx_key_print() local
175 if (ecxkey == NULL || ecxkey->privkey == NULL) { in ecx_key_print()
184 if (ASN1_buf_print(bp, ecxkey->privkey, KEYLEN(pkey), in ecx_key_print()
188 if (ecxkey == NULL) { in ecx_key_print()
[all …]
/freebsd/crypto/openssl/providers/implementations/encode_decode/
H A Dencode_key2any.c764 const ECX_KEY *ecxkey = vecxkey; in ecx_spki_pub_to_der() local
767 if (ecxkey == NULL) { in ecx_spki_pub_to_der()
772 keyblob = OPENSSL_memdup(ecxkey->pubkey, ecxkey->keylen); in ecx_spki_pub_to_der()
779 return ecxkey->keylen; in ecx_spki_pub_to_der()
784 const ECX_KEY *ecxkey = vecxkey; in ecx_pki_priv_to_der() local
788 if (ecxkey == NULL || ecxkey->privkey == NULL) { in ecx_pki_priv_to_der()
793 oct.data = ecxkey->privkey; in ecx_pki_priv_to_der()
794 oct.length = ecxkey->keylen; in ecx_pki_priv_to_der()