Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/contrib/backends/nntpchan-daemon/libnntpchan/crypto.hpp

23 lines
360 B
C++
Raw Normal View History

2016-10-15 21:37:59 +05:00
#ifndef NNTPCHAN_CRYPTO_HPP
#define NNTPCHAN_CRYPTO_HPP
#include <sodium/crypto_hash.h>
#include <array>
namespace nntpchan
{
typedef std::array<uint8_t, crypto_hash_BYTES> SHA512Digest;
2017-05-03 20:37:09 +05:00
2016-10-15 21:37:59 +05:00
void SHA512(const uint8_t * d, std::size_t l, SHA512Digest & h);
2017-05-03 20:37:09 +05:00
/** global crypto initializer */
struct Crypto
{
Crypto();
~Crypto();
};
2016-10-15 21:37:59 +05:00
}
#endif