Home
last modified time | relevance | path

Searched refs:pubKey (Results 1 – 4 of 4) sorted by relevance

/system/keymaster/contexts/
Dpure_soft_remote_provisioning_context.cpp90 std::vector<uint8_t> pubKey(ED25519_PUBLIC_KEY_LEN); in GenerateBcc() local
99 ED25519_keypair_from_seed(pubKey.data(), privKey.data(), seed); in GenerateBcc()
106 .add(CoseKey::PUBKEY_X, pubKey) in GenerateBcc()
/system/keymaster/android_keymaster/
Dremote_provisioning_utils.cpp160 auto pubKey = CoseKey::parse(payload->value(), EC2, ES256, P256); in validateAndExtractPubkeys() local
161 if (!pubKey) { in validateAndExtractPubkeys()
162 LOG_E("%s", pubKey.moveMessage().c_str()); in validateAndExtractPubkeys()
166 bool testKey = static_cast<bool>(pubKey->getMap().get(CoseKey::TEST_KEY)); in validateAndExtractPubkeys()
186 pubKeysToMac.add(pubKey->moveMap()); in validateAndExtractPubkeys()
/system/keymaster/km_openssl/
Dopenssl_utils.cpp134 EVP_PKEY_Ptr pubKey(X509_get_pubkey(cert.get())); in GetEcdsa256KeyFromCert() local
135 if (!pubKey.get()) return TranslateLastOpenSslError(); in GetEcdsa256KeyFromCert()
136 EC_KEY* ecKey = EVP_PKEY_get0_EC_KEY(pubKey.get()); in GetEcdsa256KeyFromCert()
/system/security/ondevice-signing/
DCertUtils.cpp172 std::vector<uint8_t> pubKey(num_bytes); in extractPublicKey() local
173 int res = BN_bn2bin(rsa->n, pubKey.data()); in extractPublicKey()
180 return pubKey; in extractPublicKey()