aead.py 634 B

1234567891011121314151617181920212223
  1. # This file is dual licensed under the terms of the Apache License, Version
  2. # 2.0, and the BSD License. See the LICENSE file in the root of this repository
  3. # for complete details.
  4. from __future__ import annotations
  5. from cryptography.hazmat.bindings._rust import openssl as rust_openssl
  6. __all__ = [
  7. "AESCCM",
  8. "AESGCM",
  9. "AESGCMSIV",
  10. "AESOCB3",
  11. "AESSIV",
  12. "ChaCha20Poly1305",
  13. ]
  14. AESGCM = rust_openssl.aead.AESGCM
  15. ChaCha20Poly1305 = rust_openssl.aead.ChaCha20Poly1305
  16. AESCCM = rust_openssl.aead.AESCCM
  17. AESSIV = rust_openssl.aead.AESSIV
  18. AESOCB3 = rust_openssl.aead.AESOCB3
  19. AESGCMSIV = rust_openssl.aead.AESGCMSIV