This repository has been archived on 2023-08-12. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2016-10-15 12:37:59 -04: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;
|
|
|
|
|
|
|
|
|
|
void SHA512(const uint8_t * d, std::size_t l, SHA512Digest & h);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|