(length)
| 31 | const kUsages = ['encrypt', 'decrypt', 'wrapKey', 'unwrapKey']; |
| 32 | |
| 33 | function validateKeyLength(length) { |
| 34 | if (length !== 256) |
| 35 | throw lazyDOMException('Invalid key length', 'DataError'); |
| 36 | } |
| 37 | |
| 38 | function c20pCipher(mode, key, data, algorithm) { |
| 39 | return jobPromise(() => new ChaCha20Poly1305CipherJob( |
no test coverage detected