(algorithm, extractable, usages)
| 64 | } |
| 65 | |
| 66 | function hmacGenerateKey(algorithm, extractable, usages) { |
| 67 | const { |
| 68 | hash, |
| 69 | name, |
| 70 | length = getBlockSize(hash.name), |
| 71 | } = algorithm; |
| 72 | |
| 73 | const usageSet = validateUsagesNotEmpty( |
| 74 | validateKeyUsages(usages, kUsages, name)); |
| 75 | |
| 76 | return jobPromise(() => new SecretKeyGenJob( |
| 77 | kCryptoJobWebCrypto, |
| 78 | length, |
| 79 | { name, length, hash }, |
| 80 | getUsagesMask(usageSet), |
| 81 | extractable)); |
| 82 | } |
| 83 | |
| 84 | function kmacGenerateKey(algorithm, extractable, usages) { |
| 85 | const { |
nothing calls this directly
no test coverage detected
searching dependent graphs…