(algorithm, extractable, usages)
| 82 | } |
| 83 | |
| 84 | function kmacGenerateKey(algorithm, extractable, usages) { |
| 85 | const { |
| 86 | name, |
| 87 | length = { |
| 88 | __proto__: null, |
| 89 | KMAC128: 128, |
| 90 | KMAC256: 256, |
| 91 | }[name], |
| 92 | } = algorithm; |
| 93 | |
| 94 | const usageSet = validateUsagesNotEmpty( |
| 95 | validateKeyUsages(usages, kUsages, name)); |
| 96 | |
| 97 | return jobPromise(() => new SecretKeyGenJob( |
| 98 | kCryptoJobWebCrypto, |
| 99 | length, |
| 100 | { name, length }, |
| 101 | getUsagesMask(usageSet), |
| 102 | extractable)); |
| 103 | } |
| 104 | |
| 105 | function macImportKey( |
| 106 | format, |
nothing calls this directly
no test coverage detected
searching dependent graphs…