hmac_lcl.h 677 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the OpenSSL license (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 HEADER_HMAC_LCL_H
  10. # define HEADER_HMAC_LCL_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. unsigned int key_length;
  19. unsigned char key[HMAC_MAX_MD_CBLOCK_SIZE];
  20. };
  21. #endif