Home
last modified time | relevance | path

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

/hardware/interfaces/identity/aidl/default/common/
DPresentationSession.cpp95 const vector<uint8_t>& publicKey) { in setReaderEphemeralPublicKey() argument
100 if (publicKey.size() != 65 || publicKey[0] != 0x04) { in setReaderEphemeralPublicKey()
105 readerPublicKey_ = publicKey; in setReaderEphemeralPublicKey()
106 vector<uint8_t> pubKeyP256(publicKey.begin() + 1, publicKey.end()); in setReaderEphemeralPublicKey()
DPresentationSession.h61 ndk::ScopedAStatus setReaderEphemeralPublicKey(const vector<uint8_t>& publicKey) override;
DIdentityCredential.cpp222 optional<vector<uint8_t>> publicKey = support::ecKeyPairGetPublicKey(keyPair.value()); in createEphemeralKeyPair() local
223 if (!publicKey) { in createEphemeralKeyPair()
229 ephemeralPublicKey_ = publicKey.value(); in createEphemeralKeyPair()
236 const vector<uint8_t>& publicKey) { in setReaderEphemeralPublicKey() argument
241 readerPublicKey_ = publicKey; in setReaderEphemeralPublicKey()
DIdentityCredential.h72 ndk::ScopedAStatus setReaderEphemeralPublicKey(const vector<uint8_t>& publicKey) override;
/hardware/interfaces/identity/aidl/default/libeic/
DEicOps.h195 uint8_t publicKey[EIC_P256_PUB_KEY_SIZE]);
234 bool eicOpsSignEcKey(const uint8_t publicKey[EIC_P256_PUB_KEY_SIZE],
249 bool eicOpsEcdh(const uint8_t publicKey[EIC_P256_PUB_KEY_SIZE],
281 bool eicOpsX509GetPublicKey(const uint8_t* x509Cert, size_t x509CertSize, uint8_t* publicKey,
289 const uint8_t* publicKey, size_t publicKeySize);
305 const uint8_t* publicKey, size_t publicKeySize);
DEicPresentation.c480 uint8_t publicKey[EIC_PRESENTATION_MAX_READER_PUBLIC_KEY_SIZE]; in checkReaderAuth() local
491 if (!eicOpsX509GetPublicKey(readerCertificate, readerCertificateSize, publicKey, in checkReaderAuth()
502 (eicCryptoMemCmp(ctx->readerPublicKey, publicKey, ctx->readerPublicKeySize) != 0)) { in checkReaderAuth()
/hardware/interfaces/identity/support/include/android/hardware/identity/support/
DIdentityCredentialSupport.h144 const vector<uint8_t>& publicKey, const vector<uint8_t>& challenge,
199 const vector<uint8_t>& publicKey);
249 const vector<uint8_t>& publicKey, const vector<uint8_t>& signingKey,
257 EVP_PKEY* publicKey, EVP_PKEY* signingKey, const string& serialDecimal,
267 optional<vector<uint8_t>> ecdh(const vector<uint8_t>& publicKey, const vector<uint8_t>& privateKey);
282 tuple<bool, vector<uint8_t>, vector<uint8_t>> ecPublicKeyGetXandY(const vector<uint8_t>& publicKey);
309 const vector<uint8_t>& publicKey);
344 const vector<uint8_t>& publicKey);
398 const vector<uint8_t>& publicKey,
/hardware/interfaces/identity/aidl/default/
DEicOpsImpl.cc232 uint8_t publicKey[EIC_P256_PUB_KEY_SIZE]) { in eicOpsCreateEcKey()
264 memcpy(publicKey, pubKey.value().data() + 1, EIC_P256_PUB_KEY_SIZE); in eicOpsCreateEcKey()
333 bool eicOpsSignEcKey(const uint8_t publicKey[EIC_P256_PUB_KEY_SIZE], in eicOpsSignEcKey()
343 memcpy(pubKeyVec.data() + 1, publicKey, EIC_P256_PUB_KEY_SIZE); in eicOpsSignEcKey()
439 bool eicOpsX509GetPublicKey(const uint8_t* x509Cert, size_t x509CertSize, uint8_t* publicKey, in eicOpsX509GetPublicKey() argument
455 memcpy(publicKey, res.value().data(), *publicKeySize); in eicOpsX509GetPublicKey()
462 const uint8_t* publicKey, size_t publicKeySize) { in eicOpsX509CertSignedByPublicKey() argument
464 vector<uint8_t> publicKeyVec(publicKey, publicKey + publicKeySize); in eicOpsX509CertSignedByPublicKey()
471 const uint8_t* publicKey, size_t publicKeySize) { in eicOpsEcDsaVerifyWithPublicKey() argument
474 vector<uint8_t> publicKeyVec(publicKey, publicKey + publicKeySize); in eicOpsEcDsaVerifyWithPublicKey()
[all …]
/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp645 const vector<uint8_t>& publicKey) { in certificateSignedByPublicKey() argument
655 if (EC_POINT_oct2point(group.get(), point.get(), publicKey.data(), publicKey.size(), nullptr) != in certificateSignedByPublicKey()
719 const vector<uint8_t>& publicKey) { in checkEcDsaSignature() argument
729 if (EC_POINT_oct2point(group.get(), point.get(), publicKey.data(), publicKey.size(), nullptr) != in checkEcDsaSignature()
902 const vector<uint8_t>& publicKey, const vector<uint8_t>& challenge, in createAttestationForEcPublicKey() argument
906 if (EC_POINT_oct2point(group.get(), point.get(), publicKey.data(), publicKey.size(), nullptr) != in createAttestationForEcPublicKey()
1000 vector<uint8_t> publicKey; in ecKeyPairGetPublicKey() local
1001 publicKey.resize(size); in ecKeyPairGetPublicKey()
1002 EC_POINT_point2oct(ecGroup, ecPoint, POINT_CONVERSION_UNCOMPRESSED, publicKey.data(), in ecKeyPairGetPublicKey()
1003 publicKey.size(), nullptr); in ecKeyPairGetPublicKey()
[all …]
/hardware/interfaces/identity/aidl/aidl_api/android.hardware.identity/5/android/hardware/identity/
DIPresentationSession.aidl39 void setReaderEphemeralPublicKey(in byte[] publicKey); in setReaderEphemeralPublicKey() argument
DIIdentityCredential.aidl42 void setReaderEphemeralPublicKey(in byte[] publicKey); in setReaderEphemeralPublicKey() argument
/hardware/interfaces/identity/aidl/aidl_api/android.hardware.identity/current/android/hardware/identity/
DIPresentationSession.aidl39 void setReaderEphemeralPublicKey(in byte[] publicKey); in setReaderEphemeralPublicKey() argument
DIIdentityCredential.aidl42 void setReaderEphemeralPublicKey(in byte[] publicKey); in setReaderEphemeralPublicKey() argument
/hardware/interfaces/identity/aidl/aidl_api/android.hardware.identity/4/android/hardware/identity/
DIPresentationSession.aidl39 void setReaderEphemeralPublicKey(in byte[] publicKey); in setReaderEphemeralPublicKey() argument
DIIdentityCredential.aidl42 void setReaderEphemeralPublicKey(in byte[] publicKey); in setReaderEphemeralPublicKey() argument
/hardware/interfaces/identity/aidl/android/hardware/identity/
DIPresentationSession.aidl66 void setReaderEphemeralPublicKey(in byte[] publicKey); in setReaderEphemeralPublicKey() argument
DIIdentityCredential.aidl85 void setReaderEphemeralPublicKey(in byte[] publicKey); in setReaderEphemeralPublicKey() argument
/hardware/interfaces/identity/aidl/aidl_api/android.hardware.identity/1/android/hardware/identity/
DIIdentityCredential.aidl23 void setReaderEphemeralPublicKey(in byte[] publicKey); in setReaderEphemeralPublicKey() argument
/hardware/interfaces/identity/aidl/aidl_api/android.hardware.identity/2/android/hardware/identity/
DIIdentityCredential.aidl23 void setReaderEphemeralPublicKey(in byte[] publicKey); in setReaderEphemeralPublicKey() argument
/hardware/interfaces/identity/aidl/aidl_api/android.hardware.identity/3/android/hardware/identity/
DIIdentityCredential.aidl42 void setReaderEphemeralPublicKey(in byte[] publicKey); in setReaderEphemeralPublicKey() argument
/hardware/interfaces/identity/aidl/vts/
DReaderAuthTests.cpp117 optional<vector<uint8_t>> publicKey = support::ecKeyPairGetPublicKey(keyPKCS8.value()); in generateReaderKey() local
119 return make_pair(publicKey.value(), privateKey.value()); in generateReaderKey()
122 vector<uint8_t> generateReaderCert(const vector<uint8_t>& publicKey, in generateReaderCert() argument
127 publicKey, signingKey, "24601", "Issuer", "Subject", validityNotBefore, in generateReaderCert()
DUtil.cpp78 ::aidl::android::hardware::security::keymint::EVP_PKEY_Ptr publicKey; in createFakeRemotelyProvisionedCertificateChain()
79 p256_pub_key(publicKeyBits, &publicKey); in createFakeRemotelyProvisionedCertificateChain()
125 publicKey.get(), rootKey.get(), in createFakeRemotelyProvisionedCertificateChain()
DUserAuthTests.cpp150 vector<uint8_t> generateReaderCert(const vector<uint8_t>& publicKey,
/hardware/interfaces/security/keymint/support/
Dremote_prov_utils.cpp83 bytevec publicKey; in ecKeyGetPublicKey() local
84 publicKey.resize(size); in ecKeyGetPublicKey()
85 EC_POINT_point2oct(group.get(), point, POINT_CONVERSION_UNCOMPRESSED, publicKey.data(), in ecKeyGetPublicKey()
86 publicKey.size(), nullptr); in ecKeyGetPublicKey()
87 return publicKey; in ecKeyGetPublicKey()