SHA512.hpp 634 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c)2019 ZeroTier, Inc.
  3. *
  4. * Use of this software is governed by the Business Source License included
  5. * in the LICENSE.TXT file in the project's root directory.
  6. *
  7. * Change Date: 2023-01-01
  8. *
  9. * On the date above, in accordance with the Business Source License, use
  10. * of this software will be governed by version 2.0 of the Apache License.
  11. */
  12. /****/
  13. #ifndef ZT_SHA512_HPP
  14. #define ZT_SHA512_HPP
  15. #define ZT_SHA512_DIGEST_LEN 64
  16. namespace ZeroTier {
  17. /**
  18. * SHA-512 digest algorithm
  19. */
  20. class SHA512
  21. {
  22. public:
  23. static void hash(void *digest,const void *data,unsigned int len);
  24. };
  25. } // namespace ZeroTier
  26. #endif