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

Function test_load_vectors_from_file

tests/test_utils.py:370–386  ·  view source on GitHub ↗
()

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("ciphers", "Blowfish", "bf-cfb.txt"),
373 load_nist_vectors,
374 )
375 assert vectors == [
376 {
377 "key": b"0123456789ABCDEFF0E1D2C3B4A59687",
378 "iv": b"FEDCBA9876543210",
379 "plaintext": (
380 b"37363534333231204E6F77206973207468652074696D6520666F722000"
381 ),
382 "ciphertext": (
383 b"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

Used in the wild real call sites across dependent graphs

searching dependent graphs…