Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(632)

Unified Diff: components/gcm_driver/crypto/gcm_message_cryptographer_openssl.cc

Issue 1453503002: [NOT FOR REVIEW] Ensure contributory behaviour for Web Push encryption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@push-renames
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/gcm_driver/crypto/gcm_message_cryptographer_openssl.cc
diff --git a/components/gcm_driver/crypto/gcm_message_cryptographer_openssl.cc b/components/gcm_driver/crypto/gcm_message_cryptographer_openssl.cc
index 46c13f7ee90e40efabd0f696fb128bee4c69cd78..69d68880f54e3c236759dda1b0b0499a83a49167 100644
--- a/components/gcm_driver/crypto/gcm_message_cryptographer_openssl.cc
+++ b/components/gcm_driver/crypto/gcm_message_cryptographer_openssl.cc
@@ -37,6 +37,7 @@ bool GCMMessageCryptographer::EncryptDecryptRecordInternal(
if (!EVP_AEAD_CTX_init(&context, aead,
reinterpret_cast<const uint8_t*>(key.data()),
key.size(), EVP_AEAD_DEFAULT_TAG_LENGTH, nullptr)) {
+ LOG(INFO) << "--b1";
return false;
}
@@ -59,6 +60,7 @@ bool GCMMessageCryptographer::EncryptDecryptRecordInternal(
reinterpret_cast<const uint8_t*>(nonce.data()), nonce.size(),
reinterpret_cast<const uint8_t*>(input.data()), input.size(),
nullptr, 0)) {
+ LOG(INFO) << "--b2";
EVP_AEAD_CTX_cleanup(&context);
return false;
}

Powered by Google App Engine
This is Rietveld 408576698