DescriptionWebCrypto: Check for HmacKeyParams when seeing if a Key can be used for an Algorithm.
The testing of HMAC equivalance was broken by r156343, since keys made by generateKey() would have a different parameter type.
This change:
(1) Fixes the above bug
(2) Refactors the code to live in Key.cpp rather than SubtleCrypto.cpp (since the latter is already large).
(3) Adds a more descriptive message to the exception thrown when keys don't match.
BUG=245025
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156498
Patch Set 1 #Patch Set 2 : Rebase onto master #
Messages
Total messages: 4 (0 generated)
|