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

Unified Diff: content/renderer/webcrypto/shared_crypto.cc

Issue 171503006: [style] Run webcrypto files through clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 months 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: content/renderer/webcrypto/shared_crypto.cc
diff --git a/content/renderer/webcrypto/shared_crypto.cc b/content/renderer/webcrypto/shared_crypto.cc
index 33a79109ee95dd3470741c8a9ed23aae82642cb5..fec723909d992b40f842b49004e875c20c77bb38 100644
--- a/content/renderer/webcrypto/shared_crypto.cc
+++ b/content/renderer/webcrypto/shared_crypto.cc
@@ -50,7 +50,7 @@ Status ToPlatformPublicKey(const blink::WebCryptoKey& key,
}
Status ToPlatformPrivateKey(const blink::WebCryptoKey& key,
- platform::PrivateKey** out) {
+ platform::PrivateKey** out) {
*out = static_cast<platform::Key*>(key.handle())->AsPrivateKey();
if (!*out)
return Status::ErrorUnexpectedKeyType();
@@ -103,9 +103,14 @@ Status EncryptDecryptAesGcm(EncryptOrDecrypt mode,
if (tag_length_bits > 128)
return Status::ErrorInvalidAesGcmTagLength();
- return platform::EncryptDecryptAesGcm(mode, sym_key, data,
- CryptoData(params->iv()), CryptoData(params->optionalAdditionalData()),
- tag_length_bits, buffer);
+ return platform::EncryptDecryptAesGcm(
+ mode,
+ sym_key,
+ data,
+ CryptoData(params->iv()),
+ CryptoData(params->optionalAdditionalData()),
+ tag_length_bits,
+ buffer);
}
Status EncryptRsaEsPkcs1v1_5(const blink::WebCryptoAlgorithm& algorithm,
@@ -252,9 +257,7 @@ Status ImportKeyRaw(const CryptoData& key_data,
} // namespace
-void Init() {
- platform::Init();
-}
+void Init() { platform::Init(); }
Status Encrypt(const blink::WebCryptoAlgorithm& algorithm,
const blink::WebCryptoKey& key,
« no previous file with comments | « content/renderer/webcrypto/platform_crypto_openssl.cc ('k') | content/renderer/webcrypto/shared_crypto_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698