chrome.platformKeys.getKeyPair: Check requested algorithm against certificate.
commit80709e2614a1530449e0aacb67d85f5b6d8a5db5
authorpneubeck <pneubeck@chromium.org>
Wed, 25 Mar 2015 12:02:21 +0000 (25 05:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 25 Mar 2015 12:03:13 +0000 (25 12:03 +0000)
tree54ff6ef41432a744cd6e7302b121d39b38e68ffd
parent3ca6f10de871334d2fe328a174cf296d1cf24ed2
chrome.platformKeys.getKeyPair: Check requested algorithm against certificate.

This adds a check that the requested algorithm is actually permitted by the certificate as defined in the algorithm field of the Subject Public Key Info.

BUG=466584

Review URL: https://codereview.chromium.org/998293002

Cr-Commit-Position: refs/heads/master@{#322142}
chrome/browser/extensions/api/platform_keys/platform_keys_api.cc
chrome/common/extensions/api/platform_keys_internal.idl
chrome/renderer/resources/extensions/platform_keys/get_public_key.js
chrome/renderer/resources/extensions/platform_keys_custom_bindings.js
chrome/test/data/extensions/api_test/platform_keys/basic.js