(mode, key, data, algorithm)
| 36 | } |
| 37 | |
| 38 | function c20pCipher(mode, key, data, algorithm) { |
| 39 | return jobPromise(() => new ChaCha20Poly1305CipherJob( |
| 40 | kCryptoJobWebCrypto, |
| 41 | mode, |
| 42 | getCryptoKeyHandle(key), |
| 43 | data, |
| 44 | algorithm.iv, |
| 45 | algorithm.additionalData)); |
| 46 | } |
| 47 | |
| 48 | function c20pGenerateKey(algorithm, extractable, usages) { |
| 49 | const { name } = algorithm; |
nothing calls this directly
no test coverage detected