(algorithm, extractable, usages)
| 182 | } |
| 183 | |
| 184 | function aesGenerateKey(algorithm, extractable, usages) { |
| 185 | const { name, length } = algorithm; |
| 186 | |
| 187 | const usagesSet = validateUsagesNotEmpty( |
| 188 | validateKeyUsages(usages, kUsages[name], name)); |
| 189 | |
| 190 | return jobPromise(() => new SecretKeyGenJob( |
| 191 | kCryptoJobWebCrypto, |
| 192 | length, |
| 193 | { name, length }, |
| 194 | getUsagesMask(usagesSet), |
| 195 | extractable)); |
| 196 | } |
| 197 | |
| 198 | function aesImportKey( |
| 199 | algorithm, |
nothing calls this directly
no test coverage detected
searching dependent graphs…