HomeSort by relevance Sort by last modified time
    Searched defs:public_key (Results 1 - 24 of 24) sorted by null

  /external/boringssl/src/crypto/curve25519/
ed25519_test.cc 24 std::vector<uint8_t> private_key, public_key, message, expected_signature; local
27 !t->GetBytes(&public_key, "PUB") ||
28 public_key.size() != 32 ||
48 public_key.data())) {
  /external/boringssl/src/tool/
generate_ed25519.cc 61 uint8_t public_key[32], private_key[64]; local
62 ED25519_keypair(public_key, private_key);
64 return WriteToFile(args_map["-out-public"], public_key, sizeof(public_key)) &&
speed.cc 408 uint8_t public_key[32], private_key[64]; local
410 if (!TimeFunction(&results, [&public_key, &private_key]() -> bool {
411 ED25519_keypair(public_key, private_key);
431 if (!TimeFunction(&results, [&public_key, &signature]() -> bool {
433 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()));
52 ScopedSECKEYPublicKey public_key; local
55 false /* not permanent */, &public_key,
58 ScopedSECItem item(SECKEY_EncodeDERSubjectPublicKeyInfo(public_key.get()));
70 ScopedSECKEYPublicKey public_key; local
73 false /* not permanent */, &public_key,
76 ScopedSECItem item(SECKEY_EncodeDERSubjectPublicKeyInfo(public_key.get()));
82 PK11_DestroyTokenObject(public_key->pkcs11Slot, public_key->pkcs11ID)
    [all...]
ec_private_key.h 34 // (The difference in types of key() and public_key() make this a little
55 // Imports the key pair into |slot| and returns in |public_key| and |key|.
68 SECKEYPublicKey** public_key);
78 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 33 SECStatus VerifyRSAPSS_End(SECKEYPublicKey* public_key,
43 unsigned int modulus_len = SECKEY_PublicKeyStrength(public_key);
49 SECStatus rv = PK11_PubEncryptRaw(public_key, &enc[0],
88 SECKEYPublicKey* public_key = DecodePublicKeyInfo(public_key_info, local
90 if (!public_key)
95 SECKEY_DestroyPublicKey(public_key);
109 SECKEY_DestroyPublicKey(public_key);
119 vfy_context_ = VFY_CreateContextWithAlgorithmID(public_key, &sig,
122 SECKEY_DestroyPublicKey(public_key); // Done with public_key
151 SECKEYPublicKey* public_key = DecodePublicKeyInfo(public_key_info, local
    [all...]
rsa_private_key.h 197 SECKEYPublicKey* public_key() { return public_key_; } function in class:crypto::RSAPrivateKey
  /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 157 std::string public_key = HexDecode(kValidPublicKeyHex); local
159 EXPECT_TRUE(crypto_utility_->GetRSASubjectPublicKeyInfo(public_key, &output));
163 std::string public_key = "bad_public_key"; local
165 EXPECT_FALSE(crypto_utility_->GetRSASubjectPublicKeyInfo(public_key,
170 std::string public_key = HexDecode(kValidPublicKeyHex); local
172 EXPECT_TRUE(crypto_utility_->GetRSASubjectPublicKeyInfo(public_key, &output));
175 EXPECT_EQ(public_key, public_key2);
179 std::string public_key = HexDecode(kValidPublicKeyHex); local
181 EXPECT_TRUE(crypto_utility_->GetRSASubjectPublicKeyInfo(public_key,
201 std::string public_key = HexDecode(kValidPublicKeyHex) local
217 std::string public_key = HexDecode(kValidPublicKeyHex); local
228 std::string public_key = HexDecode(kValidPublicKeyHex); local
    [all...]
  /external/boringssl/src/ssl/
ssl_ecdh.c 54 EC_POINT *public_key = NULL; local
69 public_key = EC_POINT_new(group);
70 if (public_key == NULL ||
71 !EC_POINT_mul(group, public_key, private_key, NULL, NULL, bn_ctx)) {
77 group, public_key, POINT_CONVERSION_UNCOMPRESSED, NULL, 0, bn_ctx);
81 EC_POINT_point2oct(group, public_key, POINT_CONVERSION_UNCOMPRESSED, ptr,
90 EC_POINT_free(public_key);
178 uint8_t public_key[32]; local
179 X25519_keypair(public_key, (uint8_t *)ctx->data);
180 return CBB_add_bytes(out, public_key, sizeof(public_key))
    [all...]
  /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/evp/
p_dsa_asn1.c 78 ASN1_INTEGER *public_key = NULL; local
108 public_key = d2i_ASN1_INTEGER(NULL, &p, pklen);
109 if (public_key == NULL) {
114 dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL);
120 ASN1_INTEGER_free(public_key);
125 ASN1_INTEGER_free(public_key);
p_ec_asn1.c 381 const EC_POINT *public_key; local
398 public_key = EC_KEY_get0_public_key(x);
399 if (public_key != NULL) {
401 group, public_key, EC_KEY_get_conv_form(x), NULL, 0, ctx);
412 EC_POINT_point2oct(group, public_key, EC_KEY_get_conv_form(x),
  /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());
417 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 200 if (!GetSubjectPublicKeyInfo(key.key_type(), key.public_key(),
246 std::string public_key; local
247 if (!tpm_utility_->GetEndorsementPublicKey(&public_key)) {
251 database_pb.mutable_credentials()->set_endorsement_public_key(public_key);
401 if (!GetSubjectPublicKeyInfo(key.key_type(), key.public_key(),
502 key.public_key(), key.certified_key_credential())) {
740 std::string public_key; local
751 &public_key,
758 key->set_public_key(public_key);
923 const std::string& public_key,
    [all...]
  /system/tpm/trunks/
trunks_client_test.cc 894 std::string public_key; local
907 const std::string& public_key = public_key_map[key_handle.get()]; local
915 const std::string& public_key = public_key_map[key_handle.get()]; local
939 std::string public_key; local
    [all...]
  /external/tlsdate/src/
tlsdate-helper-plan9.c 260 get_certificate_keybits (EVP_PKEY *public_key)
266 switch (public_key->type)
270 key_bits = BN_num_bits(public_key->pkey.rsa->n);
274 key_bits = BN_num_bits(public_key->pkey.rsa->n);
278 key_bits = BN_num_bits(public_key->pkey.dsa->p);
282 key_bits = BN_num_bits(public_key->pkey.dsa->p);
286 key_bits = BN_num_bits(public_key->pkey.dsa->p);
290 key_bits = BN_num_bits(public_key->pkey.dsa->p);
294 key_bits = BN_num_bits(public_key->pkey.dsa->p);
298 key_bits = BN_num_bits(public_key->pkey.dh->pub_key)
693 const rsa_context *public_key; local
726 EVP_PKEY *public_key; local
    [all...]
tlsdate-helper.c 430 get_certificate_keybits (EVP_PKEY *public_key)
438 key_type_str = key_type_to_str(public_key->type);
442 verb("V: key type: %d", public_key->type);
444 key_bits = EVP_PKEY_bits(public_key);
830 const rsa_context *public_key; local
842 public_key = &certificate->rsa;
843 if (NULL == public_key)
849 key_bits = mpi_msb (&public_key->N);
863 EVP_PKEY *public_key; local
869 public_key = X509_get_pubkey (certificate)
    [all...]
  /external/wpa_supplicant_8/src/tls/
x509v3.h 63 u8 *public_key; member in struct:x509_certificate
  /system/bt/stack/smp/
smp_keys.c 1072 Point public_key; local
    [all...]
  /external/boringssl/src/include/openssl/
x509.h 124 ASN1_BIT_STRING *public_key; member in struct:X509_pubkey_st
    [all...]

Completed in 5994 milliseconds