hmac.py 423 B

12345678910111213
  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. from cryptography.hazmat.primitives import hashes
  7. __all__ = ["HMAC"]
  8. HMAC = rust_openssl.hmac.HMAC
  9. hashes.HashContext.register(HMAC)