blake2s_mac.c 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright 2018 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 BLAKE2S_CTX
  11. #define BLAKE2_PARAM BLAKE2S_PARAM
  12. #define BLAKE2_KEYBYTES BLAKE2S_KEYBYTES
  13. #define BLAKE2_OUTBYTES BLAKE2S_OUTBYTES
  14. #define BLAKE2_PERSONALBYTES BLAKE2S_PERSONALBYTES
  15. #define BLAKE2_SALTBYTES BLAKE2S_SALTBYTES
  16. /* Function names */
  17. #define BLAKE2_PARAM_INIT blake2s_param_init
  18. #define BLAKE2_INIT_KEY blake2s_init_key
  19. #define BLAKE2_UPDATE blake2s_update
  20. #define BLAKE2_FINAL blake2s_final
  21. #define BLAKE2_PARAM_SET_DIGEST_LENGTH blake2s_param_set_digest_length
  22. #define BLAKE2_PARAM_SET_KEY_LENGTH blake2s_param_set_key_length
  23. #define BLAKE2_PARAM_SET_PERSONAL blake2s_param_set_personal
  24. #define BLAKE2_PARAM_SET_SALT blake2s_param_set_salt
  25. /* OSSL_DISPATCH symbol */
  26. #define BLAKE2_FUNCTIONS blake2smac_functions
  27. #include "blake2_mac_impl.c"