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

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: 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..463fded1447510fd4e19496324e5c209af3f9107 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,13 @@ 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
Andrew T Wilson (Slow) 2015/03/19 07:38:12 Maybe document what happens if there is no allowab
pneubeck (no reviews) 2015/03/23 13:43:12 Error handling for extension APIs is very standard
+ // <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>.
static void getPublicKey(ArrayBuffer certificate,
+ DOMString algorithmName,
GetPublicKeyCallback callback);
};
};

Powered by Google App Engine
This is Rietveld 408576698