| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Review requested:
|
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
| const type = mode === kSignJobModeSign ? 'private' : 'public'; | ||
|
|
||
| if (key.type !== type) | ||
| throw lazyDOMException(`Key must be a ${type} key`, 'InvalidAccessError'); |
There was a problem hiding this comment.
The error is not sync anymore. Does this make this semver-major change?
Sorry, something went wrong.
There was a problem hiding this comment.
It does not. The entire API surface of webcrypto is async functions.
Sorry, something went wrong.
| case 'SHA-1': return 20; | ||
| case 'SHA-256': return 32; | ||
| case 'SHA-384': return 48; | ||
| case 'SHA-512': return 64; |
There was a problem hiding this comment.
Can you add a default with unreachable (like throw error)
Sorry, something went wrong.
There was a problem hiding this comment.
It's done the same way as the method above. I don't feel it's necessary. Used hashes are verified far before this is ever invoked.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Resolves a TODO from @jasnell to validate RSA-PSS saltLength in SubtleCrypto.sign and SubtleCrypto.verify
fixes: #52188