base.py 651 B

12345678910111213141516
  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. load_pem_private_key = rust_openssl.keys.load_pem_private_key
  7. load_der_private_key = rust_openssl.keys.load_der_private_key
  8. load_pem_public_key = rust_openssl.keys.load_pem_public_key
  9. load_der_public_key = rust_openssl.keys.load_der_public_key
  10. load_pem_parameters = rust_openssl.dh.from_pem_parameters
  11. load_der_parameters = rust_openssl.dh.from_der_parameters