mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Extend local and shared credential protos to included duplicated metadata_encryption_key and metadata_encryption_key_tag for all protocol version
PiperOrigin-RevId: 538612138
This commit is contained in:
committed by
Copybara-Service
parent
e101795cac
commit
72b249474d
@@ -213,7 +213,8 @@ absl::StatusOr<std::string> AdvertisementDecoder::DecryptLdt(
|
||||
}
|
||||
for (const auto& credential : credentials) {
|
||||
absl::StatusOr<LdtEncryptor> encryptor = LdtEncryptor::Create(
|
||||
credential.key_seed(), credential.metadata_encryption_key_tag());
|
||||
credential.key_seed(),
|
||||
credential.metadata_encryption_key_unsigned_adv_tag());
|
||||
if (encryptor.ok()) {
|
||||
absl::StatusOr<std::string> result =
|
||||
encryptor->DecryptAndVerify(data_elements, salt);
|
||||
|
||||
Reference in New Issue
Block a user