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

Unified Diff: components/webcrypto/algorithms/ec.h

Issue 2162303002: [webcrypto] Add support for import/export of "raw" formatted EC keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usage_order
Patch Set: address feedback Created 4 years, 4 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
« no previous file with comments | « components/webcrypto/BUILD.gn ('k') | components/webcrypto/algorithms/ec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webcrypto/algorithms/ec.h
diff --git a/components/webcrypto/algorithms/ec.h b/components/webcrypto/algorithms/ec.h
index 1484ad8114dbe1d212c607f171064ec1390b8c4a..048bc50e5a5526b30e949f12ca8fdf6161404c0d 100644
--- a/components/webcrypto/algorithms/ec.h
+++ b/components/webcrypto/algorithms/ec.h
@@ -51,6 +51,12 @@ class EcAlgorithm : public AlgorithmImplementation {
blink::WebCryptoKey* key) const override;
private:
+ Status ImportKeyRaw(const CryptoData& key_data,
+ const blink::WebCryptoAlgorithm& algorithm,
+ bool extractable,
+ blink::WebCryptoKeyUsageMask usages,
+ blink::WebCryptoKey* key) const;
+
Status ImportKeyPkcs8(const CryptoData& key_data,
const blink::WebCryptoAlgorithm& algorithm,
bool extractable,
@@ -69,6 +75,9 @@ class EcAlgorithm : public AlgorithmImplementation {
blink::WebCryptoKeyUsageMask usages,
blink::WebCryptoKey* key) const;
+ Status ExportKeyRaw(const blink::WebCryptoKey& key,
+ std::vector<uint8_t>* buffer) const;
+
Status ExportKeyPkcs8(const blink::WebCryptoKey& key,
std::vector<uint8_t>* buffer) const;
« no previous file with comments | « components/webcrypto/BUILD.gn ('k') | components/webcrypto/algorithms/ec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698