lagon icon indicating copy to clipboard operation
lagon copied to clipboard

`SubtleCrypto#generateKey` should support hash

Open QuiiBz opened this issue 1 year ago • 0 comments

The current implementation of SubtleCrypto#generateKey for RSASSA-PKCS1-v1_5, RSA-PSS & RSA-OAEP doesn't use the hash field as defined in RsaHashedKeyGenParams (W3C):

https://github.com/lagonapp/lagon/blob/22f5cc1eea6d65963060d289945dc956312a50b3/crates/runtime_crypto/src/lib.rs#L344

We currently default to sha256

QuiiBz avatar May 14 '23 15:05 QuiiBz