()
| 164 | } |
| 165 | |
| 166 | function hmacVectors() { |
| 167 | const vectors = []; |
| 168 | for (const length of [128, 192, 256]) { |
| 169 | const key = secretKey(length); |
| 170 | for (const hash of hashes) { |
| 171 | vectors.push(vector( |
| 172 | key, |
| 173 | { name: 'HMAC', hash }, |
| 174 | ['sign', 'verify'], |
| 175 | { length })); |
| 176 | } |
| 177 | } |
| 178 | return vectors; |
| 179 | } |
| 180 | |
| 181 | function kmacVectors(name) { |
| 182 | return [ |
no test coverage detected