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

Function load_vectors_from_file

tests/utils.py:43–47  ·  tests/utils.py::load_vectors_from_file
(
    filename: str, loader: typing.Callable[..., T], mode: str = "r"
)

Source from the content-addressed store, hash-verified

41
42
43def load_vectors_from_file(
44 filename: str, loader: typing.Callable[..., T], mode: str = class="st">"r"
45) -> T:
46 with cryptography_vectors.open_vector_file(filename, mode) as vector_file:
47 return loader(vector_file)
48
49
50def load_nist_vectors(vector_data: typing.Iterable[str]) -> list[dict]:

Callers 15

test_argon2.pyFile · 0.90
test_scrypt.pyFile · 0.90
build_vectorsFunction · 0.90
certMethod · 0.85
csrMethod · 0.85
crlMethod · 0.85
test_kat_vectors_44Method · 0.85
test_kat_vectors_65Method · 0.85

Calls

no outgoing calls

Tested by 15

certMethod · 0.68
csrMethod · 0.68
crlMethod · 0.68
test_kat_vectors_44Method · 0.68
test_kat_vectors_65Method · 0.68
test_kat_vectors_87Method · 0.68
test_large_pMethod · 0.68