Home
last modified time | relevance | path

Searched refs:sharedSecret (Results 1 – 6 of 6) sorted by relevance

/hardware/interfaces/security/sharedsecret/aidl/vts/functional/
DSharedSecretAidlTest.cpp47 GetParamsResult getSharedSecretParameters(shared_ptr<ISharedSecret>& sharedSecret) { in getSharedSecretParameters() argument
49 auto error = GetReturnErrorCode(sharedSecret->getSharedSecretParameters(&params)); in getSharedSecretParameters()
61 for (auto& sharedSecret : allSharedSecrets_) { in getAllSharedSecretParameters() local
62 auto result = getSharedSecretParameters(sharedSecret); in getAllSharedSecretParameters()
69 ComputeResult computeSharedSecret(shared_ptr<ISharedSecret>& sharedSecret, in computeSharedSecret() argument
72 auto error = GetReturnErrorCode(sharedSecret->computeSharedSecret(params, &sharingCheck)); in computeSharedSecret()
80 for (auto& sharedSecret : allSharedSecrets_) { in computeAllSharedSecrets() local
81 result.push_back(computeSharedSecret(sharedSecret, params)); in computeAllSharedSecrets()
143 for (auto sharedSecret : sharedSecrets) { in TEST_F() local
144 auto result1 = getSharedSecretParameters(sharedSecret); in TEST_F()
[all …]
/hardware/interfaces/identity/aidl/default/libeic/
DEicOps.h251 uint8_t sharedSecret[EIC_P256_COORDINATE_SIZE]);
255 bool eicOpsHkdf(const uint8_t* sharedSecret, size_t sharedSecretSize, const uint8_t* salt,
DEicPresentation.c669 uint8_t sharedSecret[EIC_P256_COORDINATE_SIZE]; in eicPresentationPrepareDeviceAuthentication() local
670 if (!eicOpsEcdh(readerEphemeralPublicKey, ctx->deviceKeyPriv, sharedSecret)) { in eicPresentationPrepareDeviceAuthentication()
684 if (!eicOpsHkdf(sharedSecret, EIC_P256_COORDINATE_SIZE, salt, sizeof(salt), info, in eicPresentationPrepareDeviceAuthentication()
/hardware/interfaces/identity/aidl/default/
DEicOpsImpl.cc493 uint8_t sharedSecret[EIC_P256_COORDINATE_SIZE]) { in eicOpsEcdh()
512 memcpy(sharedSecret, shared.value().data(), EIC_P256_COORDINATE_SIZE); in eicOpsEcdh()
516 bool eicOpsHkdf(const uint8_t* sharedSecret, size_t sharedSecretSize, const uint8_t* salt, in eicOpsHkdf() argument
520 memcpy(sharedSecretVec.data(), sharedSecret, sharedSecretSize); in eicOpsHkdf()
/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp1419 vector<uint8_t> sharedSecret; in ecdh() local
1420 sharedSecret.resize(secretLen); in ecdh()
1422 if (EVP_PKEY_derive(ctx.get(), sharedSecret.data(), &secretLen) != 1) { in ecdh()
1426 return sharedSecret; in ecdh()
1429 optional<vector<uint8_t>> hkdf(const vector<uint8_t>& sharedSecret, const vector<uint8_t>& salt, in hkdf() argument
1433 if (HKDF(derivedKey.data(), derivedKey.size(), EVP_sha256(), sharedSecret.data(), in hkdf()
1434 sharedSecret.size(), salt.data(), salt.size(), info.data(), info.size()) != 1) { in hkdf()
2224 optional<vector<uint8_t>> sharedSecret = support::ecdh(publicKey, privateKey); in calcEMacKey() local
2225 if (!sharedSecret) { in calcEMacKey()
2231 optional<vector<uint8_t>> derivedKey = support::hkdf(sharedSecret.value(), salt, info, 32); in calcEMacKey()
/hardware/interfaces/identity/support/include/android/hardware/identity/support/
DIdentityCredentialSupport.h273 optional<vector<uint8_t>> hkdf(const vector<uint8_t>& sharedSecret, const vector<uint8_t>& salt,