/third_party/node/deps/openssl/openssl/crypto/ec/ |
H A D | ec_ameth.c | 29 static int eckey_param2type(int *pptype, void **ppval, const EC_KEY *ec_key) in eckey_param2type() argument 34 if (ec_key == NULL || (group = EC_KEY_get0_group(ec_key)) == NULL) { in eckey_param2type() 56 pstr->length = i2d_ECParameters(ec_key, &pstr->data); in eckey_param2type() 70 const EC_KEY *ec_key = pkey->pkey.ec; in eckey_pub_encode() local 76 if (!eckey_param2type(&ptype, &pval, ec_key)) { in eckey_pub_encode() 80 penclen = i2o_ECPublicKey(ec_key, NULL); in eckey_pub_encode() 87 penclen = i2o_ECPublicKey(ec_key, &p); in eckey_pub_encode() 164 EC_KEY ec_key = *(pkey->pkey.ec); in eckey_priv_encode() local 170 if (!eckey_param2type(&ptype, &pval, &ec_key)) { in eckey_priv_encode() [all...] |
H A D | ec_pmeth.c | 280 const EC_KEY *ec_key = EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_ctrl() local 281 return EC_KEY_get_flags(ec_key) & EC_FLAG_COFACTOR_ECDH ? 1 : 0; in pkey_ec_ctrl() 287 EC_KEY *ec_key = (EC_KEY *)EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_ctrl() local 297 if (!ec_key->group) in pkey_ec_ctrl() 300 if (BN_is_one(ec_key->group->cofactor)) in pkey_ec_ctrl() 303 dctx->co_key = EC_KEY_dup(ec_key); in pkey_ec_ctrl()
|
H A D | ec_key.c | 187 EC_KEY *EC_KEY_dup(const EC_KEY *ec_key) in EC_KEY_dup() argument 189 return ossl_ec_key_dup(ec_key, OSSL_KEYMGMT_SELECT_ALL); in EC_KEY_dup()
|
/third_party/openssl/crypto/ec/ |
H A D | ec_ameth.c | 29 static int eckey_param2type(int *pptype, void **ppval, const EC_KEY *ec_key) in eckey_param2type() argument 34 if (ec_key == NULL || (group = EC_KEY_get0_group(ec_key)) == NULL) { in eckey_param2type() 56 pstr->length = i2d_ECParameters(ec_key, &pstr->data); in eckey_param2type() 70 const EC_KEY *ec_key = pkey->pkey.ec; in eckey_pub_encode() local 76 if (!eckey_param2type(&ptype, &pval, ec_key)) { in eckey_pub_encode() 80 penclen = i2o_ECPublicKey(ec_key, NULL); in eckey_pub_encode() 87 penclen = i2o_ECPublicKey(ec_key, &p); in eckey_pub_encode() 164 EC_KEY ec_key = *(pkey->pkey.ec); in eckey_priv_encode() local 170 if (!eckey_param2type(&ptype, &pval, &ec_key)) { in eckey_priv_encode() [all...] |
H A D | ec_pmeth.c | 280 const EC_KEY *ec_key = EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_ctrl() local 281 return EC_KEY_get_flags(ec_key) & EC_FLAG_COFACTOR_ECDH ? 1 : 0; in pkey_ec_ctrl() 287 EC_KEY *ec_key = (EC_KEY *)EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_ctrl() local 297 if (!ec_key->group) in pkey_ec_ctrl() 300 if (BN_is_one(ec_key->group->cofactor)) in pkey_ec_ctrl() 303 dctx->co_key = EC_KEY_dup(ec_key); in pkey_ec_ctrl()
|
H A D | ec_key.c | 187 EC_KEY *EC_KEY_dup(const EC_KEY *ec_key) in EC_KEY_dup() argument 189 return ossl_ec_key_dup(ec_key, OSSL_KEYMGMT_SELECT_ALL); in EC_KEY_dup()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | derive.rs | 185 let ec_key = EcKey::generate(&group).unwrap(); in derive_without_peer() 186 let pkey = PKey::from_ec_key(ec_key).unwrap(); in derive_without_peer() 194 let ec_key = EcKey::generate(&group).unwrap(); in test_ec_key_derive() 196 let pkey = PKey::from_ec_key(ec_key).unwrap(); in test_ec_key_derive() 208 let ec_key = EcKey::generate(&group).unwrap(); in test_ec_key_derive_ex() 210 let pkey = PKey::from_ec_key(ec_key).unwrap(); in test_ec_key_derive_ex()
|
H A D | pkey.rs | 187 pub fn ec_key(&self) -> Result<EcKey<T>, ErrorStack> { in ec_key() functions 189 let ec_key = cvt_p(ffi::EVP_PKEY_get1_EC_KEY(self.as_ptr()))?; in ec_key() 190 Ok(EcKey::from_ptr(ec_key)) in ec_key() 444 pub fn from_ec_key(ec_key: EcKey<T>) -> Result<PKey<T>, ErrorStack> { in from_ec_key() 448 cvt(ffi::EVP_PKEY_assign_EC_KEY(pkey.0, ec_key.as_ptr()))?; in from_ec_key() 449 mem::forget(ec_key); in from_ec_key() 806 fn try_from(ec_key: EcKey<T>) -> Result<PKey<T>, ErrorStack> { in try_from() 807 PKey::from_ec_key(ec_key) in try_from() 815 pkey.ec_key() in try_from() 1009 let ec_key in test_ec_key_accessor() [all...] |
/third_party/mbedtls/library/ |
H A D | pk_ecc.c | 245 mbedtls_ecp_keypair *ec_key = (mbedtls_ecp_keypair *) pk->pk_ctx; in mbedtls_pk_ecc_set_pubkey() 246 ret = mbedtls_ecp_point_read_binary(&ec_key->grp, &ec_key->Q, pub, pub_len); in mbedtls_pk_ecc_set_pubkey() 250 return mbedtls_ecp_check_pubkey(&ec_key->grp, &ec_key->Q); in mbedtls_pk_ecc_set_pubkey()
|
/third_party/rust/crates/rust-openssl/openssl/src/ssl/ |
H A D | callbacks.rs | 253 Ok(ec_key) => { 254 let ptr = ec_key.as_ptr(); 255 mem::forget(ec_key); 308 Ok(ec_key) => { 309 let ptr = ec_key.as_ptr(); 310 mem::forget(ec_key);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant_lib/ |
H A D | wpa_evp_key.c | 247 EC_KEY *ec_key = (EC_KEY *)EVP_PKEY_get0_EC_KEY(pub_key);
in GET_EVP_PKEY() local 248 if (ec_key == NULL) {
in GET_EVP_PKEY() 249 wpa_printf(MSG_ERROR, "ec_key is NULL");
in GET_EVP_PKEY() 253 wrap_key = wrap_ec(key_id, ec_key);
in GET_EVP_PKEY()
|
/third_party/node/src/crypto/ |
H A D | crypto_ec.cc | 635 const EC_KEY* ec_key = EVP_PKEY_get0_EC_KEY(m_pkey.get()); in EC_Raw_Export() local 639 if (ec_key == nullptr) { in EC_Raw_Export() 663 const EC_GROUP* group = EC_KEY_get0_group(ec_key); in EC_Raw_Export() 664 const EC_POINT* point = EC_KEY_get0_public_key(ec_key); in EC_Raw_Export() 720 const EC_KEY* ec_key = EVP_PKEY_get0_EC_KEY(m_pkey.get()); in DoExport() local 721 const EC_GROUP* group = EC_KEY_get0_group(ec_key); in DoExport() 722 const EC_POINT* point = EC_KEY_get0_public_key(ec_key); in DoExport()
|
H A D | crypto_sig.cc | 125 const EC_KEY* ec_key = EVP_PKEY_get0_EC_KEY(pkey.get()); in ValidateDSAParameters() local 126 const EC_GROUP* ec_group = EC_KEY_get0_group(ec_key); in ValidateDSAParameters()
|
H A D | crypto_keys.cc | 370 ECKeyPointer ec_key(EVP_PKEY_get1_EC_KEY(pkey)); in WritePrivateKey() 374 bio.get(), ec_key.get(), in WritePrivateKey() 383 err = i2d_ECPrivateKey_bio(bio.get(), ec_key.get()) != 1; in WritePrivateKey()
|
/third_party/rust/crates/rust-openssl/openssl-sys/src/ |
H A D | evp.rs | 320 pub unsafe fn EVP_PKEY_assign_EC_KEY(pkey: *mut EVP_PKEY, ec_key: *mut EC_KEY) -> c_int { in EVP_PKEY_assign_EC_KEY() 321 EVP_PKEY_assign(pkey, EVP_PKEY_EC, ec_key as *mut c_void) in EVP_PKEY_assign_EC_KEY()
|
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/ |
H A D | x509.rs | 169 pub fn i2d_ECPrivateKey(ec_key: #[const_ptr_if(ossl300)] EC_KEY, pp: *mut *mut c_uchar) -> c_int; in i2d_ECPrivateKey()
|