(mode, key, data, algorithm)
| 142 | } |
| 143 | |
| 144 | function asyncAesGcmCipher(mode, key, data, algorithm) { |
| 145 | const { tagLength = 128 } = algorithm; |
| 146 | const tagByteLength = tagLength / 8; |
| 147 | |
| 148 | return jobPromise(() => new AESCipherJob( |
| 149 | kCryptoJobWebCrypto, |
| 150 | mode, |
| 151 | getCryptoKeyHandle(key), |
| 152 | data, |
| 153 | getVariant('AES-GCM', getCryptoKeyAlgorithm(key).length), |
| 154 | algorithm.iv, |
| 155 | tagByteLength, |
| 156 | algorithm.additionalData)); |
| 157 | } |
| 158 | |
| 159 | function asyncAesOcbCipher(mode, key, data, algorithm) { |
| 160 | const { tagLength = 128 } = algorithm; |
no test coverage detected
searching dependent graphs…