(algorithm, extractable, usages)
| 46 | } |
| 47 | |
| 48 | function c20pGenerateKey(algorithm, extractable, usages) { |
| 49 | const { name } = algorithm; |
| 50 | |
| 51 | const usagesSet = validateUsagesNotEmpty( |
| 52 | validateKeyUsages(usages, kUsages, name)); |
| 53 | |
| 54 | return jobPromise(() => new SecretKeyGenJob( |
| 55 | kCryptoJobWebCrypto, |
| 56 | 256, |
| 57 | { name }, |
| 58 | getUsagesMask(usagesSet), |
| 59 | extractable)); |
| 60 | } |
| 61 | |
| 62 | function c20pImportKey( |
| 63 | algorithm, |
nothing calls this directly
no test coverage detected