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

Unified Diff: chrome/common/extensions/api/platform_keys_internal.idl

Issue 998293002: chrome.platformKeys.getKeyPair: Check requested algorithm against certificate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@require_alg_name
Patch Set: Fix string in test. Created 5 years, 9 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: chrome/common/extensions/api/platform_keys_internal.idl
diff --git a/chrome/common/extensions/api/platform_keys_internal.idl b/chrome/common/extensions/api/platform_keys_internal.idl
index d3338b4fcabbd652ed07554e817398b031fee03d..48719e2c91b6b831f7d00ac69d93e51307ced9e8 100644
--- a/chrome/common/extensions/api/platform_keys_internal.idl
+++ b/chrome/common/extensions/api/platform_keys_internal.idl
@@ -4,7 +4,7 @@
// Internal API for to implement the platformKeys and enterprise.platformKeys
// APIs.
-[ implemented_in = "chrome/browser/extensions/api/platform_keys/platform_keys_api.h" ]
+[implemented_in = "chrome/browser/extensions/api/platform_keys/platform_keys_api.h"]
namespace platformKeysInternal {
callback SelectCallback = void (platformKeys.Match[] certs);
@@ -48,9 +48,14 @@ namespace platformKeysInternal {
ArrayBuffer data,
SignCallback callback);
- // Calls back <code>callback</code> with details about the key certified by
- // <code>certificate</code>.
+ // Checks whether <code>certificate</code> certifies a key that allows usage
+ // of the WebCrypto algorithm <code>algorithmName</code>. If so, calls back
+ // <code>callback</code> with the key info and a WebCrypto
+ // <code>KeyAlgorithm</code> dictionary describing the key's algorithm. The
+ // <code>name</code> property will equal <code>algorithmName</code>.
+ // Otherwise, calls back with an error.
static void getPublicKey(ArrayBuffer certificate,
+ DOMString algorithmName,
GetPublicKeyCallback callback);
};
};

Powered by Google App Engine
This is Rietveld 408576698