Index: components/gcm_driver/crypto/gcm_encryption_provider.cc |
diff --git a/components/gcm_driver/crypto/gcm_encryption_provider.cc b/components/gcm_driver/crypto/gcm_encryption_provider.cc |
index fa46cbae72e2111b6302e66f7a7a544efd7e2b1d..c9c7183ebe6757f330e4a032ef45508eb76b0323 100644 |
--- a/components/gcm_driver/crypto/gcm_encryption_provider.cc |
+++ b/components/gcm_driver/crypto/gcm_encryption_provider.cc |
@@ -247,9 +247,11 @@ void GCMEncryptionProvider::DecryptMessageWithKey( |
std::string plaintext; |
- GCMMessageCryptographer cryptographer(pair.public_key(), dh, auth_secret); |
- if (!cryptographer.Decrypt(message.raw_data, shared_secret, salt, rs, |
- &plaintext)) { |
+ GCMMessageCryptographer cryptographer( |
+ GCMMessageCryptographer::Version::DRAFT_03); |
+ |
+ if (!cryptographer.Decrypt(pair.public_key(), dh, shared_secret, auth_secret, |
+ salt, message.raw_data, rs, &plaintext)) { |
DLOG(ERROR) << "Unable to decrypt the incoming data."; |
callback.Run(DECRYPTION_RESULT_INVALID_PAYLOAD, IncomingMessage()); |
return; |