DescriptionReuse WebCrypto's normalizeCryptoAlgorithm in enterprise.platformKeys.
The enterprise.platformKeys extension API implements a WebCrypto.SubtleCrypto and thus has to apply the normalization of algorithm parameters as required by the SubtleCrypto definition.
To minimize redundancy in the extension API, this commit is a first step to reuse code of the WebCrypto implementation which lives partially in blink. A new ObjectBackedNativeHandler is added which allows to call the normalizeCryptoAlgorithm function exposed by blink from the API's custom binding in Javascript.
Depends on these blink changes:
https://codereview.chromium.org/295423004/
https://codereview.chromium.org/312393004/
BUG=364435
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277542
Patch Set 1 #
Total comments: 14
Patch Set 2 : WebKit part updated. Use normalization for Sign... #Patch Set 3 : Rebased #
Total comments: 16
Patch Set 4 : Reuse WebCrypto's algorithmIdToName #
Total comments: 2
Patch Set 5 : Addressed comment. #Patch Set 6 : Rebased. #
Messages
Total messages: 21 (0 generated)
|