File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ util::StatusOr<std::string> AwsKmsAead::Encrypt(
72
72
req.SetPlaintext (plaintext_buffer);
73
73
if (!associated_data.empty ()) {
74
74
req.AddEncryptionContext (" associatedData" ,
75
- absl::HexStringToBytes (associated_data).c_str ());
75
+ absl::BytesToHexString (associated_data).c_str ());
76
76
}
77
77
auto outcome = aws_client_->Encrypt (req);
78
78
if (!outcome.IsSuccess ()) {
@@ -98,7 +98,7 @@ util::StatusOr<std::string> AwsKmsAead::Decrypt(
98
98
req.SetCiphertextBlob (ciphertext_buffer);
99
99
if (!associated_data.empty ()) {
100
100
req.AddEncryptionContext (" associatedData" ,
101
- absl::HexStringToBytes (associated_data).c_str ());
101
+ absl::BytesToHexString (associated_data).c_str ());
102
102
}
103
103
auto outcome = aws_client_->Decrypt (req);
104
104
if (!outcome.IsSuccess ()) {
You can’t perform that action at this time.
0 commit comments