hmac_local.h 617 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #ifndef OSSL_CRYPTO_HMAC_LOCAL_H
  10. # define OSSL_CRYPTO_HMAC_LOCAL_H
  11. /* The current largest case is for SHA3-224 */
  12. #define HMAC_MAX_MD_CBLOCK_SIZE 144
  13. struct hmac_ctx_st {
  14. const EVP_MD *md;
  15. EVP_MD_CTX *md_ctx;
  16. EVP_MD_CTX *i_ctx;
  17. EVP_MD_CTX *o_ctx;
  18. };
  19. #endif