hpke.py 865 B

123456789101112131415161718192021222324252627
  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. AEAD = rust_openssl.hpke.AEAD
  7. KDF = rust_openssl.hpke.KDF
  8. KEM = rust_openssl.hpke.KEM
  9. MLKEM768X25519PrivateKey = rust_openssl.hpke.MLKEM768X25519PrivateKey
  10. MLKEM768X25519PublicKey = rust_openssl.hpke.MLKEM768X25519PublicKey
  11. MLKEM1024P384PrivateKey = rust_openssl.hpke.MLKEM1024P384PrivateKey
  12. MLKEM1024P384PublicKey = rust_openssl.hpke.MLKEM1024P384PublicKey
  13. Suite = rust_openssl.hpke.Suite
  14. __all__ = [
  15. "AEAD",
  16. "KDF",
  17. "KEM",
  18. "MLKEM768X25519PrivateKey",
  19. "MLKEM768X25519PublicKey",
  20. "MLKEM1024P384PrivateKey",
  21. "MLKEM1024P384PublicKey",
  22. "Suite",
  23. ]