()
| 327 | |
| 328 | |
| 329 | def test_load_hmac_vectors(): |
| 330 | vector_data = textwrap.dedent( |
| 331 | """ |
| 332 | Len = 224 |
| 333 | # "Jefe" |
| 334 | Key = 4a656665 |
| 335 | # "what do ya want for nothing?" |
| 336 | Msg = 7768617420646f2079612077616e7420666f72206e6f7468696e673f |
| 337 | MD = 750c783e6ab0b503eaa86e310a5db738 |
| 338 | """ |
| 339 | ).splitlines() |
| 340 | assert load_hash_vectors(vector_data) == [ |
| 341 | ( |
| 342 | b"7768617420646f2079612077616e7420666f72206e6f7468696e673f", |
| 343 | "750c783e6ab0b503eaa86e310a5db738", |
| 344 | b"4a656665", |
| 345 | ), |
| 346 | ] |
| 347 | |
| 348 | |
| 349 | def test_load_hash_vectors_bad_data(): |
nothing calls this directly
no test coverage detected