(length)
| 99 | } |
| 100 | |
| 101 | function validatePbkdf2DeriveBitsLength(length) { |
| 102 | if (length === null) |
| 103 | throw lazyDOMException('length cannot be null', 'OperationError'); |
| 104 | |
| 105 | if (length % 8) { |
| 106 | throw lazyDOMException( |
| 107 | 'length must be a multiple of 8', |
| 108 | 'OperationError'); |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | function pbkdf2DeriveBits(algorithm, baseKey, length) { |
| 113 | validatePbkdf2DeriveBitsLength(length); |
no test coverage detected