-
Notifications
You must be signed in to change notification settings - Fork 71
Description
Lines 1258 to 1260 in 004f26a
| Promise<ArrayBuffer> deriveBits(AlgorithmIdentifier algorithm, | |
| CryptoKey baseKey, | |
| unsigned long length); |
The SubtleCrypto.deriveBits function length argument's IDL does not allow null to be passed despite there being a special handling for its possible null value in all deriveBits operations, for most it throws but for ECDH, X25519, and X448 it is defined as returning all generated bits.
I believe the length argument of deriveBits should be made nullable like so?
Promise<ArrayBuffer> deriveBits(AlgorithmIdentifier algorithm,
CryptoKey baseKey,
unsigned long? length);
^ nullable?
In WPT there are even tests for this behaviour.
Metadata
Metadata
Assignees
Labels
No labels