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

Unified Diff: content/child/webcrypto/platform_crypto.h

Issue 272033003: [refactor] Change ordering of wrapkey parameters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/child/webcrypto/platform_crypto.h
diff --git a/content/child/webcrypto/platform_crypto.h b/content/child/webcrypto/platform_crypto.h
index accebe726ecfd8bd0645c7be437cce74f6f991b7..b9f429c1cefeeb05e53bb674d67f8bdb346a86c6 100644
--- a/content/child/webcrypto/platform_crypto.h
+++ b/content/child/webcrypto/platform_crypto.h
@@ -229,10 +229,10 @@ Status ExportKeyPkcs8(PrivateKey* key,
std::vector<uint8>* buffer);
// Preconditions:
-// * |wrapping_key| is non-null
// * |key| is non-null
-Status WrapSymKeyAesKw(SymKey* wrapping_key,
- SymKey* key,
+// * |wrapping_key| is non-null
+Status WrapSymKeyAesKw(SymKey* key,
+ SymKey* wrapping_key,
std::vector<uint8>* buffer);
// Unwraps (decrypts) |wrapped_key_data| using AES-KW and places the results in
@@ -263,10 +263,10 @@ Status DecryptAesKw(SymKey* key,
std::vector<uint8>* buffer);
// Preconditions:
-// * |wrapping_key| is non-null
// * |key| is non-null
-Status WrapSymKeyRsaEs(PublicKey* wrapping_key,
- SymKey* key,
+// * |wrapping_key| is non-null
+Status WrapSymKeyRsaEs(SymKey* key,
+ PublicKey* wrapping_key,
std::vector<uint8>* buffer);
// Preconditions:
« no previous file with comments | « no previous file | content/child/webcrypto/platform_crypto_nss.cc » ('j') | content/child/webcrypto/webcrypto_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698