MCPcopy
hub / github.com/pyca/cryptography / test_load_vectors_from_file

Function test_load_vectors_from_file

tests/test_utils.py:370–386  ·  tests/test_utils.py::test_load_vectors_from_file
()

Source from the content-addressed store, hash-verified

368
369
370def test_load_vectors_from_file():
371 vectors = load_vectors_from_file(
372 os.path.join(class="st">"ciphers", class="st">"Blowfish", class="st">"bf-cfb.txt"),
373 load_nist_vectors,
374 )
375 assert vectors == [
376 {
377 class="st">"key": bclass="st">"0123456789ABCDEFF0E1D2C3B4A59687",
378 class="st">"iv": bclass="st">"FEDCBA9876543210",
379 class="st">"plaintext": (
380 bclass="st">"37363534333231204E6F77206973207468652074696D6520666F722000"
381 ),
382 class="st">"ciphertext": (
383 bclass="st">"E73214A2822139CAF26ECF6D2EB9E76E3DA3DE04D1517200519D57A6C3"
384 ),
385 }
386 ]
387
388
389def test_load_nist_gcm_vectors():

Callers

nothing calls this directly

Calls 1

load_vectors_from_fileFunction · 0.85

Tested by

no test coverage detected