Home
last modified time | relevance | path

Searched refs:publicKey (Results 1 – 11 of 11) sorted by relevance

/system/security/ondevice-signing/
DKeystoreKey.cpp130 auto publicKey = extractPublicKeyFromX509(cert.value()); in createKey() local
131 if (!publicKey.ok()) { in createKey()
132 return publicKey.error(); in createKey()
134 std::string publicKeyString = {publicKey->begin(), publicKey->end()}; in createKey()
144 return *publicKey; in createKey()
226 auto publicKey = extractPublicKeyFromX509(cert.value()); in verifyExistingKey() local
227 if (!publicKey.ok()) { in verifyExistingKey()
228 return publicKey.error(); in verifyExistingKey()
230 std::string publicKeyString = {publicKey->begin(), publicKey->end()}; in verifyExistingKey()
243 return *publicKey; in verifyExistingKey()
DCertUtils.cpp58 Result<bssl::UniquePtr<RSA>> getRsa(const std::vector<uint8_t>& publicKey) { in getRsa() argument
63 BN_bin2bn(publicKey.data(), publicKey.size(), rsaPubkey->n); in getRsa()
70 const std::vector<uint8_t>& publicKey) { in verifySignature() argument
71 auto rsaKey = getRsa(publicKey); in verifySignature()
86 const std::vector<uint8_t>& publicKey, in createSelfSignedCertificate() argument
101 auto rsaPubkey = getRsa(publicKey); in createSelfSignedCertificate()
DCertUtils.h22 const std::vector<uint8_t>& publicKey,
35 const std::vector<uint8_t>& publicKey);
Dodsign_main.cpp92 auto publicKey = key.getPublicKey(); in createX509Cert() local
94 if (!publicKey.ok()) { in createX509Cert()
95 return publicKey.error(); in createX509Cert()
99 createSelfSignedCertificate(*publicKey, keySignFunction, outPath); in createX509Cert()
199 auto publicKey = key.getPublicKey(); in getOdsignInfo() local
200 auto signResult = verifySignature(odsign_info_str, persistedSignature, *publicKey); in getOdsignInfo()
/system/extras/verity/
DVeritySigner.java46 PublicKey publicKey = cert.getPublicKey(); in main() local
51 if (Utils.verify(publicKey, content, signature, in main()
52 Utils.getSignatureAlgorithmIdentifier(publicKey))) { in main()
DBootSignature.java72 private PublicKey publicKey; field in BootSignature
118 publicKey = c.getPublicKey(); in BootSignature()
147 return publicKey; in getPublicKey()
163 publicKey = cert.getPublicKey(); in setCertificate()
186 return Utils.verify(publicKey, signable, signature.getOctets(), in verify()
/system/security/keystore2/aidl/android/security/remoteprovisioning/
DIRemoteProvisioning.aidl115 void provisionCertChain(in byte[] publicKey, in byte[] batchCert, in byte[] certs, in provisionCertChain() argument
/system/security/identity/binder/android/security/identity/
DICredential.aidl42 void setReaderEphemeralPublicKey(in byte[] publicKey); in setReaderEphemeralPublicKey() argument
/system/hardware/interfaces/wifi/keystore/1.0/
DIKeystore.hal56 * @return publicKey the public key associated with the credential.
59 generates (KeystoreStatusCode status, vec<uint8_t> publicKey);
/system/security/identity/
DCredential.h58 Status setReaderEphemeralPublicKey(const vector<uint8_t>& publicKey) override;
DCredential.cpp604 Status Credential::setReaderEphemeralPublicKey(const vector<uint8_t>& publicKey) { in setReaderEphemeralPublicKey() argument
605 Status status = halBinder_->setReaderEphemeralPublicKey(publicKey); in setReaderEphemeralPublicKey()