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

Function _load_gcm_vectors

tests/hazmat/primitives/test_aead.py:535–548  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

533
534
535def _load_gcm_vectors():
536 vectors = _load_all_params(
537 os.path.join("ciphers", "AES", "GCM"),
538 [
539 "gcmDecrypt128.rsp",
540 "gcmDecrypt192.rsp",
541 "gcmDecrypt256.rsp",
542 "gcmEncryptExtIV128.rsp",
543 "gcmEncryptExtIV192.rsp",
544 "gcmEncryptExtIV256.rsp",
545 ],
546 load_nist_vectors,
547 )
548 return [x for x in vectors if len(x["tag"]) == 32 and len(x["iv"]) >= 16]
549
550
551class TestAESGCM:

Callers 1

test_vectorsMethod · 0.85

Calls 1

_load_all_paramsFunction · 0.85

Tested by

no test coverage detected