def decrypt(algorithm: KeyAlgorithmIdentifier, ...)
bblfish opened this issue · 2 comments
bblfish commented
@povder started a discussion on an already committed PR about the method SubtleCrypto.decrypt(algorithm: KeyAlgorithmIdentifier, key: CryptoKey, ...)
.
In summary either:
algorithm
should be extended to typeAlgorithmIdentifier
AesGcmParams
should extendKeyAlgorithmIdentifier
bblfish commented
- may be closer to the official spec, but for a newbie like me it's a bit odd that one could decrypt something with a hash algorithm.
- would require a cryptographer to verify the logic of what we are doing