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

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

Issue 25906002: [webcrypto] Add JWK import for HMAC and AES-CBC key. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed a change from last upload Created 7 years 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/webcrypto_impl_openssl.cc
diff --git a/content/renderer/webcrypto/webcrypto_impl_openssl.cc b/content/renderer/webcrypto/webcrypto_impl_openssl.cc
index 3543f5a3f7952124b2291df39ef7ba03951cdf84..85e52fa0c6025369f110af90adf78674c6292ac9 100644
--- a/content/renderer/webcrypto/webcrypto_impl_openssl.cc
+++ b/content/renderer/webcrypto/webcrypto_impl_openssl.cc
@@ -13,6 +13,7 @@
#include <openssl/rand.h>
#include "base/logging.h"
+#include "content/renderer/webcrypto/webcrypto_util.h"
#include "crypto/openssl_util.h"
#include "crypto/secure_util.h"
#include "third_party/WebKit/public/platform/WebArrayBuffer.h"
@@ -151,7 +152,7 @@ bool AesCbcEncryptDecrypt(CipherOperation cipher_operation,
static_cast<unsigned>(final_output_chunk_len);
DCHECK_LE(final_output_len, output_max_len);
- WebCryptoImpl::ShrinkBuffer(buffer, final_output_len);
+ webcrypto::ShrinkBuffer(buffer, final_output_len);
return true;
}
@@ -330,7 +331,8 @@ bool WebCryptoImpl::ImportKeyInternal(
return false;
}
- // TODO(padolph): Need to split handling for symmetric
+ // TODO(padolph): Need to split handling for symmetric (raw format) and
+ // asymmetric (spki or pkcs8 format) keys.
// Currently only supporting symmetric.
// Symmetric keys are always type secret
« no previous file with comments | « content/renderer/webcrypto/webcrypto_impl_nss.cc ('k') | content/renderer/webcrypto/webcrypto_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698