blake2b_mac.c 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright 2018-2021 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. /* Constants */
  10. #define BLAKE2_CTX BLAKE2B_CTX
  11. #define BLAKE2_PARAM BLAKE2B_PARAM
  12. #define BLAKE2_KEYBYTES BLAKE2B_KEYBYTES
  13. #define BLAKE2_OUTBYTES BLAKE2B_OUTBYTES
  14. #define BLAKE2_PERSONALBYTES BLAKE2B_PERSONALBYTES
  15. #define BLAKE2_SALTBYTES BLAKE2B_SALTBYTES
  16. #define BLAKE2_BLOCKBYTES BLAKE2B_BLOCKBYTES
  17. /* Function names */
  18. #define BLAKE2_PARAM_INIT ossl_blake2b_param_init
  19. #define BLAKE2_INIT_KEY ossl_blake2b_init_key
  20. #define BLAKE2_UPDATE ossl_blake2b_update
  21. #define BLAKE2_FINAL ossl_blake2b_final
  22. #define BLAKE2_PARAM_SET_DIGEST_LENGTH ossl_blake2b_param_set_digest_length
  23. #define BLAKE2_PARAM_SET_KEY_LENGTH ossl_blake2b_param_set_key_length
  24. #define BLAKE2_PARAM_SET_PERSONAL ossl_blake2b_param_set_personal
  25. #define BLAKE2_PARAM_SET_SALT ossl_blake2b_param_set_salt
  26. /* OSSL_DISPATCH symbol */
  27. #define BLAKE2_FUNCTIONS ossl_blake2bmac_functions
  28. #include "blake2_mac_impl.c"