/external/boringssl/src/tool/ |
generate_ed25519.cc | 68 uint8_t public_key[32], private_key[64]; local 69 ED25519_keypair(public_key, private_key); 71 return WriteToFile(args_map["-out-public"], public_key, sizeof(public_key)) &&
|
speed.cc | 472 uint8_t public_key[32], private_key[64]; local 474 if (!TimeFunction(&results, [&public_key, &private_key]() -> bool { 475 ED25519_keypair(public_key, private_key); 495 if (!TimeFunction(&results, [&public_key, &signature]() -> bool { 497 public_key) == 1;
|
/external/libchrome/crypto/ |
nss_key_util_unittest.cc | 37 ScopedSECKEYPublicKey public_key; local 40 false /* not permanent */, &public_key, 43 EXPECT_EQ(rsaKey, SECKEY_GetPublicKeyType(public_key.get())); 51 ScopedSECKEYPublicKey public_key; local 54 false /* not permanent */, &public_key, 57 ScopedSECItem item(SECKEY_EncodeDERSubjectPublicKeyInfo(public_key.get())); 69 ScopedSECKEYPublicKey public_key; local 72 false /* not permanent */, &public_key, 75 ScopedSECItem item(SECKEY_EncodeDERSubjectPublicKeyInfo(public_key.get())); 81 PK11_DestroyTokenObject(public_key->pkcs11Slot, public_key->pkcs11ID) [all...] |
ec_private_key.h | 35 // (The difference in types of key() and public_key() make this a little 65 // Imports the key pair into |slot| and returns in |public_key| and |key|. 78 SECKEYPublicKey** public_key); 88 SECKEYPublicKey* public_key() { return public_key_; } function in class:crypto::ECPrivateKey
|
rsa_private_key_nss.cc | 61 ScopedSECKEYPublicKey public_key; local 64 &public_key, &private_key)) { 69 rsa_key->public_key_ = public_key.release();
|
signature_verifier_nss.cc | 45 SECStatus VerifyRSAPSS_End(SECKEYPublicKey* public_key, 55 unsigned int modulus_len = SECKEY_PublicKeyStrength(public_key); 61 SECStatus rv = PK11_PubEncryptRaw(public_key, &enc[0], 99 SECKEYPublicKey* public_key = DecodePublicKeyInfo(public_key_info, local 101 if (!public_key) 109 public_key, &sig, ToNSSSignatureType(signature_algorithm), nullptr); 110 SECKEY_DestroyPublicKey(public_key); // Done with public_key. 137 SECKEYPublicKey* public_key = DecodePublicKeyInfo(public_key_info, local 139 if (!public_key) [all...] |
rsa_private_key.h | 197 SECKEYPublicKey* public_key() { return public_key_; } function in class:crypto::RSAPrivateKey
|
/external/boringssl/src/crypto/curve25519/ |
ed25519_test.cc | 25 std::vector<uint8_t> private_key, public_key, message, expected_signature; local 28 !t->GetBytes(&public_key, "PUB") || 29 public_key.size() != 32 || 49 public_key.data())) {
|
/external/avb/libavb_atx/ |
avb_atx_types.h | 55 uint8_t public_key[AVB_ATX_PUBLIC_KEY_SIZE]; member in struct:AvbAtxCertificateSignedData
|
/external/openssh/ |
kexecdhc.c | 60 const EC_POINT *public_key; local 72 public_key = EC_KEY_get0_public_key(client_key); 75 (r = sshpkt_put_ec(ssh, public_key, group)) != 0 ||
|
kexecdhs.c | 68 const EC_POINT *public_key; local 178 public_key = EC_KEY_get0_public_key(server_key); 182 (r = sshpkt_put_ec(ssh, public_key, group)) != 0 ||
|
/external/vboot_reference/tests/ |
vboot_common2_tests.c | 43 static void VerifyDataTest(const VbPublicKey *public_key, 54 rsa = PublicKeyToRSA(public_key); 79 static void VerifyDigestTest(const VbPublicKey *public_key, 88 rsa = PublicKeyToRSA(public_key); 90 (int)public_key->algorithm); 118 static void VerifyKernelPreambleTest(const VbPublicKey *public_key, 129 rsa = PublicKeyToRSA(public_key); 218 VbPublicKey *public_key = NULL; local 230 public_key = PublicKeyReadKeyb(filename, key_algorithm, 1); 231 if (!public_key) { [all...] |
/system/tpm/attestation/common/ |
crypto_utility_impl_test.cc | 156 std::string public_key = HexDecode(kValidPublicKeyHex); local 158 EXPECT_TRUE(crypto_utility_->GetRSASubjectPublicKeyInfo(public_key, &output)); 162 std::string public_key = "bad_public_key"; local 165 crypto_utility_->GetRSASubjectPublicKeyInfo(public_key, &output)); 169 std::string public_key = HexDecode(kValidPublicKeyHex); local 171 EXPECT_TRUE(crypto_utility_->GetRSASubjectPublicKeyInfo(public_key, &output)); 174 EXPECT_EQ(public_key, public_key2); 178 std::string public_key = HexDecode(kValidPublicKeyHex); local 180 EXPECT_TRUE(crypto_utility_->GetRSASubjectPublicKeyInfo(public_key, 196 std::string public_key = HexDecode(kValidPublicKeyHex) local 212 std::string public_key = HexDecode(kValidPublicKeyHex); local 223 std::string public_key = HexDecode(kValidPublicKeyHex); local [all...] |
/external/boringssl/src/crypto/evp/ |
p_ec_asn1.c | 71 const EC_POINT *public_key = EC_KEY_get0_public_key(ec_key); local 82 !EC_POINT_point2cbb(&key_bitstring, group, public_key,
|
print.c | 332 const EC_POINT *public_key; local 349 public_key = EC_KEY_get0_public_key(x); 350 if (public_key != NULL) { 352 group, public_key, EC_KEY_get_conv_form(x), NULL, 0, ctx); 363 EC_POINT_point2oct(group, public_key, EC_KEY_get_conv_form(x),
|
/system/keymaster/ |
nist_curve_key_exchange_test.cpp | 108 uint8_t* public_key = new uint8_t[public_key_len]; local 110 public_key, public_key_len, nullptr /* ctx */); 119 ASSERT_FALSE(key_exchange->CalculateSharedKey(reinterpret_cast<const uint8_t*>(public_key),
|
/external/boringssl/src/crypto/ec/ |
ec_asn1.c | 142 CBS child, public_key; local 145 !CBS_get_asn1(&child, &public_key, CBS_ASN1_BITSTRING) || 148 !CBS_get_u8(&public_key, &padding) || 150 /* Explicitly check |public_key| is non-empty to save the conversion 152 CBS_len(&public_key) == 0 || 153 !EC_POINT_oct2point(group, ret->pub_key, CBS_data(&public_key), 154 CBS_len(&public_key), NULL) || 162 ret->conv_form = (point_conversion_form_t)(CBS_data(&public_key)[0] & ~0x01); 222 CBB child, public_key; local 224 !CBB_add_asn1(&child, &public_key, CBS_ASN1_BITSTRING) | [all...] |
/external/boringssl/src/ssl/ |
ssl_ecdh.c | 55 EC_POINT *public_key = NULL; local 67 public_key = EC_POINT_new(group); 68 if (public_key == NULL || 69 !EC_POINT_mul(group, public_key, private_key, NULL, NULL, bn_ctx) || 70 !EC_POINT_point2cbb(out, group, public_key, POINT_CONVERSION_UNCOMPRESSED, 79 EC_POINT_free(public_key); 179 uint8_t public_key[32]; local 180 X25519_keypair(public_key, (uint8_t *)ctx->data); 181 return CBB_add_bytes(out, public_key, sizeof(public_key)); [all...] |
/external/libbrillo/policy/ |
device_policy_impl.cc | 26 // in |public_key|. Returns true on success. 28 std::string* public_key) { 31 public_key->clear(); 32 if (!base::ReadFileToString(key_file, public_key) || public_key->empty()) { 39 // Verifies that the |signed_data| has correct |signature| with |public_key|. 42 const std::string& public_key) { 48 char* key = const_cast<char*>(public_key.data()); 49 BIO* bio = BIO_new_mem_buf(key, public_key.length()); 450 std::string public_key; local [all...] |
/external/smali/baksmali/src/main/java/org/jf/baksmali/ |
baksmali.java | 95 Integer public_key = Integer.decode(attr.getValue("id")); local 103 options.resourceIds.put(public_key, public_val);
|
/external/wpa_supplicant_8/src/wps/ |
wps_attr_parse.h | 66 const u8 *public_key; member in struct:wps_parse_attr
|
/system/tpm/attestation/server/ |
attestation_service.cc | 180 if (!GetSubjectPublicKeyInfo(key.key_type(), key.public_key(), 221 std::string public_key; local 222 if (!tpm_utility_->GetEndorsementPublicKey(&public_key)) { 226 database_pb.mutable_credentials()->set_endorsement_public_key(public_key); 362 if (!GetSubjectPublicKeyInfo(key.key_type(), key.public_key(), 449 key.public_key(), key.certified_key_credential())) { 683 std::string public_key; local 690 nonce, &key_blob, &public_key, &public_key_tpm_format, &key_info, 695 key->set_public_key(public_key); 859 const std::string& public_key, [all...] |
/external/wpa_supplicant_8/src/tls/ |
x509v3.h | 63 u8 *public_key; member in struct:x509_certificate
|
/system/bt/stack/smp/ |
smp_keys.cc | 810 Point public_key; local 816 ECC_PointMult(&public_key, &(curve_p256.G), (uint32_t*)private_key, 818 memcpy(p_cb->loc_publ_key.x, public_key.x, BT_OCTET32_LEN); 819 memcpy(p_cb->loc_publ_key.y, public_key.y, BT_OCTET32_LEN); [all...] |
/system/tpm/trunks/ |
trunks_client_test.cc | 923 std::string public_key; local 936 const std::string& public_key = public_key_map[key_handle.get()]; local 944 const std::string& public_key = public_key_map[key_handle.get()]; local 968 std::string public_key; local [all...] |