(length)
| 142 | } |
| 143 | |
| 144 | function validateHkdfDeriveBitsLength(length) { |
| 145 | if (length === null) |
| 146 | throw lazyDOMException('length cannot be null', 'OperationError'); |
| 147 | if (length % 8) { |
| 148 | throw lazyDOMException( |
| 149 | 'length must be a multiple of 8', |
| 150 | 'OperationError'); |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | function hkdfDeriveBits(algorithm, baseKey, length) { |
| 155 | validateHkdfDeriveBitsLength(length); |
no test coverage detected