()
| 44 | }); |
| 45 | |
| 46 | function setUpBaseKeys() { |
| 47 | var promises = []; |
| 48 | var baseKeys = {}; |
| 49 | |
| 50 | testVectors.forEach(function (vector) { |
| 51 | var algorithmName = vector.algorithm; |
| 52 | var password = vector.password; |
| 53 | |
| 54 | promises.push( |
| 55 | subtle |
| 56 | .importKey('raw-secret', password, algorithmName, false, [ |
| 57 | 'deriveBits', |
| 58 | ]) |
| 59 | .then(function (key) { |
| 60 | baseKeys[algorithmName] = key; |
| 61 | }) |
| 62 | ); |
| 63 | }); |
| 64 | |
| 65 | return Promise.all(promises).then(function () { |
| 66 | return { |
| 67 | baseKeys: baseKeys, |
| 68 | }; |
| 69 | }); |
| 70 | } |
| 71 | } |
no test coverage detected