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:
Anthony Rueda
2023-06-07 15:43:30 -07:00
committed by Copybara-Service
parent e101795cac
commit 72b249474d
9 changed files with 42 additions and 29 deletions
@@ -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);