/third_party/node/deps/openssl/openssl/crypto/ec/ |
H A D | ecx_backend.c | 32 ossl_x25519_public_from_private(key->pubkey, key->privkey); in ossl_ecx_public_from_private() 35 if (!ossl_ed25519_public_from_private(key->libctx, key->pubkey, in ossl_ecx_public_from_private() 42 ossl_x448_public_from_private(key->pubkey, key->privkey); in ossl_ecx_public_from_private() 45 if (!ossl_ed448_public_from_private(key->libctx, key->pubkey, in ossl_ecx_public_from_private() 60 unsigned char *pubkey; in ossl_ecx_key_fromdata() local 91 pubkey = ecx->pubkey; in ossl_ecx_key_fromdata() 94 (void **)&pubkey, in ossl_ecx_key_fromdata() 95 sizeof(ecx->pubkey), &pubkeylen)) in ossl_ecx_key_fromdata() 138 memcpy(ret->pubkey, ke in ossl_ecx_key_dup() 164 unsigned char *privkey, *pubkey; ossl_ecx_key_op() local [all...] |
H A D | ecx_meth.c | 41 penc = OPENSSL_memdup(ecxkey->pubkey, KEYLEN(pkey)); in ecx_pub_encode() 56 static int ecx_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in ecx_pub_decode() argument 64 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, &palg, pubkey)) in ecx_pub_decode() 83 return CRYPTO_memcmp(akey->pubkey, bkey->pubkey, KEYLEN(a)) == 0; in ecx_pub_cmp() 199 if (ASN1_buf_print(bp, ecxkey->pubkey, KEYLEN(pkey), in ecx_key_print() 235 *ppt = OPENSSL_memdup(pkey->pkey.ecx->pubkey, KEYLEN(pkey)); in ecx_ctrl() 334 memcpy(pub, key->pubkey, *len); in ecx_get_pub_key() 363 key->pubkey, key->keylen)) in ecx_pkey_export_to() 727 const unsigned char **pubkey) in validate_ecx_derive() 724 validate_ecx_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen, const unsigned char **privkey, const unsigned char **pubkey) validate_ecx_derive() argument 754 const unsigned char *privkey, *pubkey; pkey_ecx_derive25519() local 767 const unsigned char *privkey, *pubkey; pkey_ecx_derive448() local 945 unsigned char *privkey = NULL, *pubkey; s390x_pkey_ecx_keygen25519() local 988 unsigned char *privkey = NULL, *pubkey; s390x_pkey_ecx_keygen448() local 1034 unsigned char *privkey = NULL, *pubkey; s390x_pkey_ecd_keygen25519() local 1100 unsigned char *privkey = NULL, *pubkey; s390x_pkey_ecd_keygen448() local 1161 const unsigned char *privkey, *pubkey; s390x_pkey_ecx_derive25519() local 1174 const unsigned char *privkey, *pubkey; s390x_pkey_ecx_derive448() local [all...] |
/third_party/openssl/crypto/ec/ |
H A D | ecx_backend.c | 32 ossl_x25519_public_from_private(key->pubkey, key->privkey); in ossl_ecx_public_from_private() 35 if (!ossl_ed25519_public_from_private(key->libctx, key->pubkey, in ossl_ecx_public_from_private() 42 ossl_x448_public_from_private(key->pubkey, key->privkey); in ossl_ecx_public_from_private() 45 if (!ossl_ed448_public_from_private(key->libctx, key->pubkey, in ossl_ecx_public_from_private() 60 unsigned char *pubkey; in ossl_ecx_key_fromdata() local 91 pubkey = ecx->pubkey; in ossl_ecx_key_fromdata() 94 (void **)&pubkey, in ossl_ecx_key_fromdata() 95 sizeof(ecx->pubkey), &pubkeylen)) in ossl_ecx_key_fromdata() 137 memcpy(ret->pubkey, ke in ossl_ecx_key_dup() 161 unsigned char *privkey, *pubkey; ossl_ecx_key_op() local [all...] |
H A D | ecx_meth.c | 41 penc = OPENSSL_memdup(ecxkey->pubkey, KEYLEN(pkey)); in ecx_pub_encode() 56 static int ecx_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in ecx_pub_decode() argument 64 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, &palg, pubkey)) in ecx_pub_decode() 83 return CRYPTO_memcmp(akey->pubkey, bkey->pubkey, KEYLEN(a)) == 0; in ecx_pub_cmp() 199 if (ASN1_buf_print(bp, ecxkey->pubkey, KEYLEN(pkey), in ecx_key_print() 235 *ppt = OPENSSL_memdup(pkey->pkey.ecx->pubkey, KEYLEN(pkey)); in ecx_ctrl() 334 memcpy(pub, key->pubkey, *len); in ecx_get_pub_key() 363 key->pubkey, key->keylen)) in ecx_pkey_export_to() 727 const unsigned char **pubkey) in validate_ecx_derive() 724 validate_ecx_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen, const unsigned char **privkey, const unsigned char **pubkey) validate_ecx_derive() argument 754 const unsigned char *privkey, *pubkey; pkey_ecx_derive25519() local 767 const unsigned char *privkey, *pubkey; pkey_ecx_derive448() local 945 unsigned char *privkey = NULL, *pubkey; s390x_pkey_ecx_keygen25519() local 988 unsigned char *privkey = NULL, *pubkey; s390x_pkey_ecx_keygen448() local 1034 unsigned char *privkey = NULL, *pubkey; s390x_pkey_ecd_keygen25519() local 1100 unsigned char *privkey = NULL, *pubkey; s390x_pkey_ecd_keygen448() local 1161 const unsigned char *privkey, *pubkey; s390x_pkey_ecx_derive25519() local 1174 const unsigned char *privkey, *pubkey; s390x_pkey_ecx_derive448() local [all...] |
/third_party/node/deps/openssl/openssl/crypto/x509/ |
H A D | x_pubkey.c | 87 X509_PUBKEY *pubkey; 89 if (pval != NULL && (pubkey = (X509_PUBKEY *)*pval) != NULL) { 90 X509_ALGOR_free(pubkey->algor); 91 ASN1_BIT_STRING_free(pubkey->public_key); 92 EVP_PKEY_free(pubkey->pkey); 93 OPENSSL_free(pubkey->propq); 94 OPENSSL_free(pubkey); 101 X509_PUBKEY *pubkey = (X509_PUBKEY *)*pval; 103 return (pubkey->algor != NULL 104 || (pubkey 269 X509_PUBKEY *pubkey = NULL; IMPLEMENT_EXTERN_ASN1() local 285 X509_PUBKEY *pubkey = OPENSSL_zalloc(sizeof(*pubkey)); X509_PUBKEY_dup() local [all...] |
H A D | x509_r2x.c | 25 EVP_PKEY *pubkey = NULL; in X509_REQ_to_X509() local 56 pubkey = X509_REQ_get0_pubkey(r); in X509_REQ_to_X509() 57 if (pubkey == NULL || !X509_set_pubkey(ret, pubkey)) in X509_REQ_to_X509()
|
H A D | v3_skid.c | 55 ASN1_OCTET_STRING *ossl_x509_pubkey_hash(X509_PUBKEY *pubkey) in ossl_x509_pubkey_hash() argument 66 if (pubkey == NULL) { in ossl_x509_pubkey_hash() 70 if (!ossl_x509_PUBKEY_get0_libctx(&libctx, &propq, pubkey)) in ossl_x509_pubkey_hash() 79 X509_PUBKEY_get0_param(NULL, &pk, &pklen, NULL, pubkey); in ossl_x509_pubkey_hash() 110 ctx->subject_req->req_info.pubkey); in s2i_skey_id()
|
/third_party/openssl/crypto/x509/ |
H A D | x_pubkey.c | 87 X509_PUBKEY *pubkey; 89 if (pval != NULL && (pubkey = (X509_PUBKEY *)*pval) != NULL) { 90 X509_ALGOR_free(pubkey->algor); 91 ASN1_BIT_STRING_free(pubkey->public_key); 92 EVP_PKEY_free(pubkey->pkey); 93 OPENSSL_free(pubkey->propq); 94 OPENSSL_free(pubkey); 101 X509_PUBKEY *pubkey = (X509_PUBKEY *)*pval; 103 return (pubkey->algor != NULL 104 || (pubkey 269 X509_PUBKEY *pubkey = NULL; IMPLEMENT_EXTERN_ASN1() local 285 X509_PUBKEY *pubkey = OPENSSL_zalloc(sizeof(*pubkey)); X509_PUBKEY_dup() local [all...] |
H A D | x509_r2x.c | 25 EVP_PKEY *pubkey = NULL; in X509_REQ_to_X509() local 56 pubkey = X509_REQ_get0_pubkey(r); in X509_REQ_to_X509() 57 if (pubkey == NULL || !X509_set_pubkey(ret, pubkey)) in X509_REQ_to_X509()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
H A D | crypto_internal-modexp.c | 17 u8 *pubkey) in crypto_dh_init() 30 pubkey, &pubkey_len) < 0) in crypto_dh_init() 34 os_memmove(pubkey + pad, pubkey, pubkey_len); in crypto_dh_init() 35 os_memset(pubkey, 0, pad); in crypto_dh_init() 45 const u8 *pubkey, size_t pubkey_len, in crypto_dh_derive_secret() 53 os_memcmp(pubkey, prime, prime_len) >= 0)) in crypto_dh_derive_secret() 57 if (!pub || bignum_set_unsigned_bin(pub, pubkey, pubkey_len) < 0 || in crypto_dh_derive_secret() 65 /* verify: pubkey^q == 1 mod p */ in crypto_dh_derive_secret() 81 res = crypto_mod_exp(pubkey, pubkey_le in crypto_dh_derive_secret() 16 crypto_dh_init(u8 generator, const u8 *prime, size_t prime_len, u8 *privkey, u8 *pubkey) crypto_dh_init() argument 42 crypto_dh_derive_secret(u8 generator, const u8 *prime, size_t prime_len, const u8 *order, size_t order_len, const u8 *privkey, size_t privkey_len, const u8 *pubkey, size_t pubkey_len, u8 *secret, size_t *len) crypto_dh_derive_secret() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
H A D | crypto_internal-modexp.c | 17 u8 *pubkey) in crypto_dh_init() 30 pubkey, &pubkey_len) < 0) in crypto_dh_init() 34 os_memmove(pubkey + pad, pubkey, pubkey_len); in crypto_dh_init() 35 os_memset(pubkey, 0, pad); in crypto_dh_init() 45 const u8 *pubkey, size_t pubkey_len, in crypto_dh_derive_secret() 53 os_memcmp(pubkey, prime, prime_len) >= 0)) in crypto_dh_derive_secret() 57 if (!pub || bignum_set_unsigned_bin(pub, pubkey, pubkey_len) < 0 || in crypto_dh_derive_secret() 65 /* verify: pubkey^q == 1 mod p */ in crypto_dh_derive_secret() 81 res = crypto_mod_exp(pubkey, pubkey_le in crypto_dh_derive_secret() 16 crypto_dh_init(u8 generator, const u8 *prime, size_t prime_len, u8 *privkey, u8 *pubkey) crypto_dh_init() argument 42 crypto_dh_derive_secret(u8 generator, const u8 *prime, size_t prime_len, const u8 *order, size_t order_len, const u8 *privkey, size_t privkey_len, const u8 *pubkey, size_t pubkey_len, u8 *secret, size_t *len) crypto_dh_derive_secret() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
H A D | wps_attr_build.c | 23 struct wpabuf *pubkey = NULL; in wps_build_public_key() local 39 pubkey = wpabuf_dup(wps->wps->dh_pubkey); in wps_build_public_key() 62 pubkey = wpabuf_dup(wps->wps->ap_nfc_dh_pubkey); in wps_build_public_key() 63 if (wps->dh_privkey && pubkey) in wps_build_public_key() 64 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, pubkey); in wps_build_public_key() 69 wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey); in wps_build_public_key() 70 pubkey = wpabuf_zeropad(pubkey, 192); in wps_build_public_key() 72 if (wps->dh_ctx == NULL || wps->dh_privkey == NULL || pubkey == NULL) { in wps_build_public_key() 75 wpabuf_free(pubkey); in wps_build_public_key() 414 wps_build_oob_dev_pw(struct wpabuf *msg, u16 dev_pw_id, const struct wpabuf *pubkey, const u8 *dev_pw, size_t dev_pw_len) wps_build_oob_dev_pw() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
H A D | wps_attr_build.c | 23 struct wpabuf *pubkey = NULL; in wps_build_public_key() local 39 pubkey = wpabuf_dup(wps->wps->dh_pubkey); in wps_build_public_key() 62 pubkey = wpabuf_dup(wps->wps->ap_nfc_dh_pubkey); in wps_build_public_key() 63 if (wps->dh_privkey && pubkey) in wps_build_public_key() 64 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, pubkey); in wps_build_public_key() 69 wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey); in wps_build_public_key() 70 pubkey = wpabuf_zeropad(pubkey, 192); in wps_build_public_key() 72 if (wps->dh_ctx == NULL || wps->dh_privkey == NULL || pubkey == NULL) { in wps_build_public_key() 75 wpabuf_free(pubkey); in wps_build_public_key() 423 wps_build_oob_dev_pw(struct wpabuf *msg, u16 dev_pw_id, const struct wpabuf *pubkey, const u8 *dev_pw, size_t dev_pw_len) wps_build_oob_dev_pw() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/cms/ |
H A D | cms_dh.c | 20 X509_ALGOR *alg, ASN1_BIT_STRING *pubkey) in dh_cms_set_peerkey() 45 plen = ASN1_STRING_length(pubkey); in dh_cms_set_peerkey() 46 p = ASN1_STRING_get0_data(pubkey); in dh_cms_set_peerkey() 170 ASN1_BIT_STRING *pubkey; in dh_cms_decrypt() local 172 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &alg, &pubkey, in dh_cms_decrypt() 175 if (alg == NULL || pubkey == NULL) in dh_cms_decrypt() 177 if (!dh_cms_set_peerkey(pctx, alg, pubkey)) { in dh_cms_decrypt() 198 ASN1_BIT_STRING *pubkey; in dh_cms_encrypt() local 213 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &talg, &pubkey, in dh_cms_encrypt() 236 ASN1_STRING_set0(pubkey, pen in dh_cms_encrypt() 19 dh_cms_set_peerkey(EVP_PKEY_CTX *pctx, X509_ALGOR *alg, ASN1_BIT_STRING *pubkey) dh_cms_set_peerkey() argument [all...] |
H A D | cms_ec.c | 73 X509_ALGOR *alg, ASN1_BIT_STRING *pubkey) in ecdh_cms_set_peerkey() 108 plen = ASN1_STRING_length(pubkey); in ecdh_cms_set_peerkey() 109 p = ASN1_STRING_get0_data(pubkey); in ecdh_cms_set_peerkey() 229 ASN1_BIT_STRING *pubkey; in ecdh_cms_decrypt() local 231 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &alg, &pubkey, in ecdh_cms_decrypt() 234 if (alg == NULL || pubkey == NULL) in ecdh_cms_decrypt() 236 if (!ecdh_cms_set_peerkey(pctx, alg, pubkey)) { in ecdh_cms_decrypt() 257 ASN1_BIT_STRING *pubkey; in ecdh_cms_encrypt() local 271 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &talg, &pubkey, in ecdh_cms_encrypt() 283 ASN1_STRING_set0(pubkey, pen in ecdh_cms_encrypt() 72 ecdh_cms_set_peerkey(EVP_PKEY_CTX *pctx, X509_ALGOR *alg, ASN1_BIT_STRING *pubkey) ecdh_cms_set_peerkey() argument [all...] |
/third_party/openssl/crypto/cms/ |
H A D | cms_dh.c | 20 X509_ALGOR *alg, ASN1_BIT_STRING *pubkey) in dh_cms_set_peerkey() 45 plen = ASN1_STRING_length(pubkey); in dh_cms_set_peerkey() 46 p = ASN1_STRING_get0_data(pubkey); in dh_cms_set_peerkey() 170 ASN1_BIT_STRING *pubkey; in dh_cms_decrypt() local 172 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &alg, &pubkey, in dh_cms_decrypt() 175 if (alg == NULL || pubkey == NULL) in dh_cms_decrypt() 177 if (!dh_cms_set_peerkey(pctx, alg, pubkey)) { in dh_cms_decrypt() 198 ASN1_BIT_STRING *pubkey; in dh_cms_encrypt() local 213 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &talg, &pubkey, in dh_cms_encrypt() 236 ASN1_STRING_set0(pubkey, pen in dh_cms_encrypt() 19 dh_cms_set_peerkey(EVP_PKEY_CTX *pctx, X509_ALGOR *alg, ASN1_BIT_STRING *pubkey) dh_cms_set_peerkey() argument [all...] |
H A D | cms_ec.c | 73 X509_ALGOR *alg, ASN1_BIT_STRING *pubkey) in ecdh_cms_set_peerkey() 108 plen = ASN1_STRING_length(pubkey); in ecdh_cms_set_peerkey() 109 p = ASN1_STRING_get0_data(pubkey); in ecdh_cms_set_peerkey() 229 ASN1_BIT_STRING *pubkey; in ecdh_cms_decrypt() local 231 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &alg, &pubkey, in ecdh_cms_decrypt() 234 if (alg == NULL || pubkey == NULL) in ecdh_cms_decrypt() 236 if (!ecdh_cms_set_peerkey(pctx, alg, pubkey)) { in ecdh_cms_decrypt() 257 ASN1_BIT_STRING *pubkey; in ecdh_cms_encrypt() local 271 if (!CMS_RecipientInfo_kari_get0_orig_id(ri, &talg, &pubkey, in ecdh_cms_encrypt() 283 ASN1_STRING_set0(pubkey, pen in ecdh_cms_encrypt() 72 ecdh_cms_set_peerkey(EVP_PKEY_CTX *pctx, X509_ALGOR *alg, ASN1_BIT_STRING *pubkey) ecdh_cms_set_peerkey() argument [all...] |
/third_party/openssl/test/ |
H A D | tls-provider.c | 45 unsigned char pubkey[XOR_KEY_SIZE]; member 282 secret[i] = pxorctx->key->privkey[i] ^ pxorctx->peerkey->pubkey[i]; in xor_derive() 338 * 2. we encode our ephemeral pubkey as the outgoing ct in xor_encapsulate() 340 * pubkey from the ctx; the result is our ss. in xor_encapsulate() 367 /* 2. Encode ephemeral pubkey as ct */ in xor_encapsulate() 368 memcpy(ct, ourkey->pubkey, XOR_KEY_SIZE); in xor_encapsulate() 395 * - ct is our peer's pubkey in xor_decapsulate() 416 memcpy(peerkey->pubkey, ct, XOR_KEY_SIZE); in xor_decapsulate() 493 memcpy(tokey->pubkey, fromkey->pubkey, XOR_KEY_SIZ in xor_dup() 665 unsigned char pubkey[XOR_KEY_SIZE]; xor_import() local [all...] |
H A D | algorithmid_test.c | 23 static int test_spki_aid(X509_PUBKEY *pubkey, const char *filename) in test_spki_aid() argument 43 if (!TEST_true(X509_PUBKEY_get0_param(NULL, NULL, NULL, &alg, pubkey)) in test_spki_aid() 44 || !TEST_ptr(pkey = X509_PUBKEY_get0(pubkey))) in test_spki_aid() 105 X509_PUBKEY *pubkey = X509_get_X509_PUBKEY(cert); in test_x509_spki_aid() local 107 return test_spki_aid(pubkey, filename); in test_x509_spki_aid() 141 TEST_info("The '%s' pubkey can't be used to verify the '%s' signature", in test_x509_sig_aid() 190 X509_PUBKEY *pubkey = NULL; in test_spki_file() local 200 if ((pubkey = PEM_read_bio_X509_PUBKEY(b, NULL, NULL, NULL)) == NULL) { in test_spki_file() 207 ret = test_spki_aid(pubkey, pubkey_filename); in test_spki_file() 210 X509_PUBKEY_free(pubkey); in test_spki_file() [all...] |
/third_party/node/deps/openssl/openssl/crypto/ec/curve448/ |
H A D | ed448.h | 37 * pubkey (out): The public key. 43 uint8_t pubkey [EDDSA_448_PUBLIC_BYTES], 52 * pubkey (in): The public key. 68 const uint8_t pubkey[EDDSA_448_PUBLIC_BYTES], 79 * pubkey (in): The public key. 94 const uint8_t pubkey[EDDSA_448_PUBLIC_BYTES], 106 * pubkey (in): The public key. 123 pubkey[EDDSA_448_PUBLIC_BYTES], 135 * pubkey (in): The public key. 150 const uint8_t pubkey[EDDSA_448_PUBLIC_BYTE [all...] |
/third_party/openssl/crypto/ec/curve448/ |
H A D | ed448.h | 37 * pubkey (out): The public key. 43 uint8_t pubkey [EDDSA_448_PUBLIC_BYTES], 52 * pubkey (in): The public key. 68 const uint8_t pubkey[EDDSA_448_PUBLIC_BYTES], 79 * pubkey (in): The public key. 94 const uint8_t pubkey[EDDSA_448_PUBLIC_BYTES], 106 * pubkey (in): The public key. 123 pubkey[EDDSA_448_PUBLIC_BYTES], 135 * pubkey (in): The public key. 150 const uint8_t pubkey[EDDSA_448_PUBLIC_BYTE [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/keymgmt/ |
H A D | ecx_kmgmt.c | 158 const unsigned char *pa = key1->haspubkey ? key1->pubkey : NULL; in ecx_match() 159 const unsigned char *pb = key2->haspubkey ? key2->pubkey : NULL; in ecx_match() 217 key->pubkey, key->keylen)) in key_to_params() 299 if (!OSSL_PARAM_set_octet_string(p, ecx->pubkey, ecx->keylen)) in ecx_get_params() 405 void *buf = ecxkey->pubkey; in ecx_set_params() 408 || !OSSL_PARAM_get_octet_string(p, &buf, sizeof(ecxkey->pubkey), in ecx_set_params() 607 ossl_x25519_public_from_private(key->pubkey, privkey); in ecx_gen() 612 ossl_x448_public_from_private(key->pubkey, privkey); in ecx_gen() 615 if (!ossl_ed25519_public_from_private(gctx->libctx, key->pubkey, privkey, in ecx_gen() 620 if (!ossl_ed448_public_from_private(gctx->libctx, key->pubkey, privke in ecx_gen() 840 unsigned char *privkey = NULL, *pubkey; s390x_ecx_keygen25519() local 886 unsigned char *privkey = NULL, *pubkey; s390x_ecx_keygen448() local 935 unsigned char *privkey = NULL, *pubkey; s390x_ecd_keygen25519() local 1003 unsigned char *privkey = NULL, *pubkey; s390x_ecd_keygen448() local [all...] |
/third_party/openssl/providers/implementations/keymgmt/ |
H A D | ecx_kmgmt.c | 158 const unsigned char *pa = key1->haspubkey ? key1->pubkey : NULL; in ecx_match() 159 const unsigned char *pb = key2->haspubkey ? key2->pubkey : NULL; in ecx_match() 217 key->pubkey, key->keylen)) in key_to_params() 296 if (!OSSL_PARAM_set_octet_string(p, ecx->pubkey, ecx->keylen)) in ecx_get_params() 402 void *buf = ecxkey->pubkey; in ecx_set_params() 405 || !OSSL_PARAM_get_octet_string(p, &buf, sizeof(ecxkey->pubkey), in ecx_set_params() 604 ossl_x25519_public_from_private(key->pubkey, privkey); in ecx_gen() 609 ossl_x448_public_from_private(key->pubkey, privkey); in ecx_gen() 612 if (!ossl_ed25519_public_from_private(gctx->libctx, key->pubkey, privkey, in ecx_gen() 617 if (!ossl_ed448_public_from_private(gctx->libctx, key->pubkey, privke in ecx_gen() 837 unsigned char *privkey = NULL, *pubkey; s390x_ecx_keygen25519() local 883 unsigned char *privkey = NULL, *pubkey; s390x_ecx_keygen448() local 932 unsigned char *privkey = NULL, *pubkey; s390x_ecd_keygen25519() local 1000 unsigned char *privkey = NULL, *pubkey; s390x_ecd_keygen448() local [all...] |
/third_party/node/deps/openssl/openssl/apps/lib/ |
H A D | engine_loader.c | 119 EVP_PKEY *pkey = NULL, *pubkey = NULL; in engine_load() local 131 pubkey = in engine_load() 140 if (pubkey != NULL) in engine_load() 141 info = OSSL_STORE_INFO_new_PUBKEY(pubkey); in engine_load() 146 EVP_PKEY_free(pubkey); in engine_load()
|
/third_party/node/deps/openssl/openssl/providers/implementations/encode_decode/ |
H A D | encode_key2blob.c | 92 unsigned char *pubkey = NULL; in key2blob_encode() local 94 pubkey_len = i2o_ECPublicKey(key, &pubkey); in key2blob_encode() 95 if (pubkey_len > 0 && pubkey != NULL) in key2blob_encode() 96 ok = write_blob(vctx, cout, pubkey, pubkey_len); in key2blob_encode() 97 OPENSSL_free(pubkey); in key2blob_encode()
|