({ name, privateUsages }, extractable)
| 183 | } |
| 184 | |
| 185 | async function testImportPkcs8PrivOnly({ name, privateUsages }, extractable) { |
| 186 | await assert.rejects( |
| 187 | subtle.importKey( |
| 188 | 'pkcs8', |
| 189 | keyData[name].pkcs8_priv_only, |
| 190 | { name }, |
| 191 | extractable, |
| 192 | privateUsages), |
| 193 | { |
| 194 | name: 'NotSupportedError', |
| 195 | message: 'Importing an ML-DSA PKCS#8 key without a seed is not supported', |
| 196 | }); |
| 197 | } |
| 198 | |
| 199 | async function testImportPkcs8MismatchedSeed({ name, privateUsages }, extractable) { |
| 200 | const modified = Buffer.from(keyData[name].pkcs8); |
no outgoing calls
no test coverage detected