/third_party/rust/crates/rust-openssl/openssl/src/ |
D | dh.rs | 232 pub fn public_key(&self) -> &BigNumRef { in public_key() function 247 pub fn compute_key(&self, public_key: &BigNumRef) -> Result<Vec<u8>, ErrorStack> { in compute_key() 253 public_key.as_ptr(), in compute_key() 396 assert_eq!(key1.public_key(), key2.public_key()); in test_dh_stored_restored() 408 .set_public_key(key1.public_key().to_owned().unwrap()) in test_set_keys() 411 assert_eq!(key1.public_key(), key2.public_key()); in test_set_keys() 416 key1.public_key().to_owned().unwrap(), in test_set_keys() 420 assert_eq!(key1.public_key(), key3.public_key()); in test_set_keys() 446 let shared_a = dh1.compute_key(dh2.public_key()).unwrap(); in test_dh_generate_key_compute_key() 447 let shared_b = dh2.compute_key(dh1.public_key()).unwrap(); in test_dh_generate_key_compute_key() [all …]
|
D | ecdsa.rs | 157 EcKey::from_public_key(group, x.public_key()) in get_public_key() 165 let public_key = get_public_key(&group, &private_key).unwrap(); in sign_and_verify() localVariable 174 let verification = res.verify(data.as_bytes(), &public_key).unwrap(); in sign_and_verify() 179 .verify(String::from("hello2").as_bytes(), &public_key) in sign_and_verify() 193 let public_key = get_public_key(&group, &private_key).unwrap(); in check_private_components() localVariable 197 let verification = res.verify(data.as_bytes(), &public_key).unwrap(); in check_private_components() 204 let verification2 = res2.verify(data.as_bytes(), &public_key).unwrap(); in check_private_components() 213 let public_key = get_public_key(&group, &private_key).unwrap(); in serialize_deserialize() localVariable 221 let verification = sig.verify(data.as_bytes(), &public_key).unwrap(); in serialize_deserialize()
|
D | ec.rs | 736 pub fn public_key(&self) -> &EcPointRef { in public_key() function 849 public_key: &EcPointRef, in from_public_key() 860 public_key.as_ptr(), in from_public_key() 956 public_key: &EcPointRef, in from_private_components() 974 public_key.as_ptr(), in from_private_components() 1164 let point = key.public_key(); in point_bytes() 1178 let point = key.public_key(); in point_hex_str() 1191 let point = key.public_key(); in point_owned() 1202 let mut public_key = EcPoint::new(&group).unwrap(); in mul_generator() localVariable 1203 public_key in mul_generator() [all …]
|
D | envelope.rs | 163 let public_key = PKey::public_key_from_pem(public_pem).unwrap(); in public_encrypt_private_decrypt() localVariable 167 let mut seal = Seal::new(cipher, &[public_key]).unwrap(); in public_encrypt_private_decrypt()
|
/third_party/openssl/crypto/ct/ |
D | ct_log.c | 29 EVP_PKEY *public_key; member 267 CTLOG *CTLOG_new_ex(EVP_PKEY *public_key, const char *name, OSSL_LIB_CTX *libctx, in CTLOG_new_ex() argument 292 if (ct_v1_log_id_from_pkey(ret, public_key) != 1) in CTLOG_new_ex() 295 ret->public_key = public_key; in CTLOG_new_ex() 302 CTLOG *CTLOG_new(EVP_PKEY *public_key, const char *name) in CTLOG_new() argument 304 return CTLOG_new_ex(public_key, name, NULL, NULL); in CTLOG_new() 312 EVP_PKEY_free(log->public_key); in CTLOG_free() 332 return log->public_key; in CTLOG_get0_public_key()
|
/third_party/node/deps/openssl/openssl/crypto/ct/ |
D | ct_log.c | 29 EVP_PKEY *public_key; member 267 CTLOG *CTLOG_new_ex(EVP_PKEY *public_key, const char *name, OSSL_LIB_CTX *libctx, in CTLOG_new_ex() argument 292 if (ct_v1_log_id_from_pkey(ret, public_key) != 1) in CTLOG_new_ex() 295 ret->public_key = public_key; in CTLOG_new_ex() 302 CTLOG *CTLOG_new(EVP_PKEY *public_key, const char *name) in CTLOG_new() argument 304 return CTLOG_new_ex(public_key, name, NULL, NULL); in CTLOG_new() 312 EVP_PKEY_free(log->public_key); in CTLOG_free() 332 return log->public_key; in CTLOG_get0_public_key()
|
/third_party/openssl/crypto/x509/ |
D | x_pubkey.c | 33 ASN1_BIT_STRING *public_key; member 65 ASN1_SIMPLE(X509_PUBKEY, public_key, ASN1_BIT_STRING) 91 ASN1_BIT_STRING_free(pubkey->public_key); in x509_pubkey_ex_free() 105 && (pubkey->public_key != NULL in x509_pubkey_ex_populate() 106 || (pubkey->public_key = ASN1_BIT_STRING_new()) != NULL); in x509_pubkey_ex_populate() 290 || (pubkey->public_key = ASN1_BIT_STRING_new()) == NULL in X509_PUBKEY_dup() 291 || !ASN1_BIT_STRING_set(pubkey->public_key, in X509_PUBKEY_dup() 292 a->public_key->data, in X509_PUBKEY_dup() 293 a->public_key->length)) { in X509_PUBKEY_dup() 1011 OPENSSL_free(pub->public_key->data); in X509_PUBKEY_set0_param() [all …]
|
/third_party/node/deps/openssl/openssl/crypto/x509/ |
D | x_pubkey.c | 33 ASN1_BIT_STRING *public_key; member 65 ASN1_SIMPLE(X509_PUBKEY, public_key, ASN1_BIT_STRING) 91 ASN1_BIT_STRING_free(pubkey->public_key); in x509_pubkey_ex_free() 105 && (pubkey->public_key != NULL in x509_pubkey_ex_populate() 106 || (pubkey->public_key = ASN1_BIT_STRING_new()) != NULL); in x509_pubkey_ex_populate() 290 || (pubkey->public_key = ASN1_BIT_STRING_new()) == NULL in X509_PUBKEY_dup() 291 || !ASN1_BIT_STRING_set(pubkey->public_key, in X509_PUBKEY_dup() 292 a->public_key->data, in X509_PUBKEY_dup() 293 a->public_key->length)) { in X509_PUBKEY_dup() 1011 OPENSSL_free(pub->public_key->data); in X509_PUBKEY_set0_param() [all …]
|
/third_party/openssl/crypto/ec/curve448/ |
D | eddsa.c | 377 size_t message_len, const uint8_t public_key[57], in ossl_ed448_sign() 381 return ossl_c448_ed448_sign(ctx, out_sig, private_key, public_key, message, in ossl_ed448_sign() 388 const uint8_t signature[114], const uint8_t public_key[57], in ossl_ed448_verify() 391 return ossl_c448_ed448_verify(ctx, signature, public_key, message, in ossl_ed448_verify() 398 const uint8_t public_key[57], const uint8_t private_key[57], in ossl_ed448ph_sign() 401 return ossl_c448_ed448_sign_prehash(ctx, out_sig, private_key, public_key, in ossl_ed448ph_sign() 408 const uint8_t signature[114], const uint8_t public_key[57], in ossl_ed448ph_verify() 412 return ossl_c448_ed448_verify_prehash(ctx, signature, public_key, hash, in ossl_ed448ph_verify()
|
D | curve448_local.h | 15 const uint8_t public_key[57], const uint8_t private_key[57], 20 const uint8_t signature[114], const uint8_t public_key[57],
|
/third_party/node/deps/openssl/openssl/crypto/ec/curve448/ |
D | eddsa.c | 377 size_t message_len, const uint8_t public_key[57], in ossl_ed448_sign() 381 return ossl_c448_ed448_sign(ctx, out_sig, private_key, public_key, message, in ossl_ed448_sign() 388 const uint8_t signature[114], const uint8_t public_key[57], in ossl_ed448_verify() 391 return ossl_c448_ed448_verify(ctx, signature, public_key, message, in ossl_ed448_verify() 398 const uint8_t public_key[57], const uint8_t private_key[57], in ossl_ed448ph_sign() 401 return ossl_c448_ed448_sign_prehash(ctx, out_sig, private_key, public_key, in ossl_ed448ph_sign() 408 const uint8_t signature[114], const uint8_t public_key[57], in ossl_ed448ph_verify() 412 return ossl_c448_ed448_verify_prehash(ctx, signature, public_key, hash, in ossl_ed448ph_verify()
|
D | curve448_local.h | 15 const uint8_t public_key[57], const uint8_t private_key[57], 20 const uint8_t signature[114], const uint8_t public_key[57],
|
/third_party/node/deps/openssl/openssl/include/crypto/ |
D | ecx.h | 98 const uint8_t public_key[32], const uint8_t private_key[32], 102 const uint8_t signature[64], const uint8_t public_key[32], 110 size_t message_len, const uint8_t public_key[57], 116 const uint8_t signature[114], const uint8_t public_key[57],
|
/third_party/openssl/include/crypto/ |
D | ecx.h | 98 const uint8_t public_key[32], const uint8_t private_key[32], 102 const uint8_t signature[64], const uint8_t public_key[32], 110 size_t message_len, const uint8_t public_key[57], 116 const uint8_t signature[114], const uint8_t public_key[57],
|
/third_party/mbedtls/tests/src/ |
D | psa_exercise_key.c | 495 uint8_t *public_key = NULL; in mbedtls_test_psa_key_agreement_with_self() local 508 ASSERT_ALLOC(public_key, public_key_length); in mbedtls_test_psa_key_agreement_with_self() 509 PSA_ASSERT(psa_export_public_key(key, public_key, public_key_length, in mbedtls_test_psa_key_agreement_with_self() 514 public_key, public_key_length); in mbedtls_test_psa_key_agreement_with_self() 522 mbedtls_free(public_key); in mbedtls_test_psa_key_agreement_with_self() 535 uint8_t *public_key = NULL; in mbedtls_test_psa_raw_key_agreement_with_self() local 550 ASSERT_ALLOC(public_key, public_key_length); in mbedtls_test_psa_raw_key_agreement_with_self() 552 public_key, public_key_length, in mbedtls_test_psa_raw_key_agreement_with_self() 556 public_key, public_key_length, in mbedtls_test_psa_raw_key_agreement_with_self() 573 mbedtls_free(public_key); in mbedtls_test_psa_raw_key_agreement_with_self()
|
/third_party/openssl/crypto/cms/ |
D | cms_dh.c | 25 ASN1_INTEGER *public_key = NULL; in dh_cms_set_peerkey() local 50 if ((public_key = d2i_ASN1_INTEGER(NULL, &p, plen)) == NULL) in dh_cms_set_peerkey() 57 if ((bnpub = ASN1_INTEGER_to_BN(public_key, NULL)) == NULL) in dh_cms_set_peerkey() 73 ASN1_INTEGER_free(public_key); in dh_cms_set_peerkey()
|
/third_party/node/deps/openssl/openssl/crypto/cms/ |
D | cms_dh.c | 25 ASN1_INTEGER *public_key = NULL; in dh_cms_set_peerkey() local 50 if ((public_key = d2i_ASN1_INTEGER(NULL, &p, plen)) == NULL) in dh_cms_set_peerkey() 57 if ((bnpub = ASN1_INTEGER_to_BN(public_key, NULL)) == NULL) in dh_cms_set_peerkey() 73 ASN1_INTEGER_free(public_key); in dh_cms_set_peerkey()
|
/third_party/node/test/fixtures/0-dns/ |
D | create-cert.js | 17 const public_key = fs.readFileSync('./0-dns-rsapub.der'); constant 46 subjectPublicKey: { unused: 0, data: public_key} },
|
/third_party/ffmpeg/libavformat/tests/ |
D | rtmpdh.c | 68 static const char *public_key = variable 126 bn_hex2bn(dh->pub_key, public_key, ret); in test_ref_data()
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_psa_crypto_op_fail.function | 361 uint8_t public_key[PSA_EXPORT_PUBLIC_KEY_MAX_SIZE] = { 0 }; 379 public_key, sizeof(public_key), 385 public_key, public_key_length, 396 public_key, public_key_length));
|
/third_party/openssl/crypto/dsa/ |
D | dsa_ameth.c | 37 ASN1_INTEGER *public_key = NULL; in dsa_pub_decode() local 65 if ((public_key = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) { in dsa_pub_decode() 70 if ((dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL)) == NULL) { in dsa_pub_decode() 76 ASN1_INTEGER_free(public_key); in dsa_pub_decode() 81 ASN1_INTEGER_free(public_key); in dsa_pub_decode()
|
/third_party/node/deps/openssl/openssl/crypto/dsa/ |
D | dsa_ameth.c | 37 ASN1_INTEGER *public_key = NULL; in dsa_pub_decode() local 65 if ((public_key = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) { in dsa_pub_decode() 70 if ((dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL)) == NULL) { in dsa_pub_decode() 76 ASN1_INTEGER_free(public_key); in dsa_pub_decode() 81 ASN1_INTEGER_free(public_key); in dsa_pub_decode()
|
/third_party/openssl/crypto/dh/ |
D | dh_ameth.c | 68 ASN1_INTEGER *public_key = NULL; in dh_pub_decode() local 90 if ((public_key = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) { in dh_pub_decode() 96 if ((dh->pub_key = ASN1_INTEGER_to_BN(public_key, NULL)) == NULL) { in dh_pub_decode() 101 ASN1_INTEGER_free(public_key); in dh_pub_decode() 106 ASN1_INTEGER_free(public_key); in dh_pub_decode()
|
/third_party/mbedtls/library/ |
D | lmots.c | 450 memcpy(ctx->public_key, in mbedtls_lmots_import_public_key() 483 memcpy(key + PUBLIC_KEY_KEY_HASH_OFFSET, ctx->public_key, in mbedtls_lmots_export_public_key() 581 if (memcmp(&Kc_public_key_candidate, ctx->public_key, in mbedtls_lmots_verify() 582 sizeof(ctx->public_key))) { in mbedtls_lmots_verify() 715 ctx->public_key); in mbedtls_lmots_calculate_public_key()
|
/third_party/node/deps/openssl/openssl/crypto/dh/ |
D | dh_ameth.c | 68 ASN1_INTEGER *public_key = NULL; in dh_pub_decode() local 90 if ((public_key = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) { in dh_pub_decode() 96 if ((dh->pub_key = ASN1_INTEGER_to_BN(public_key, NULL)) == NULL) { in dh_pub_decode() 101 ASN1_INTEGER_free(public_key); in dh_pub_decode() 106 ASN1_INTEGER_free(public_key); in dh_pub_decode()
|