mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
24 lines
369 B
C++
24 lines
369 B
C++
#ifndef LLARP_CRYPTO_HPP
|
|
#define LLARP_CRYPTO_HPP
|
|
|
|
#include <llarp/crypto.h>
|
|
#include <llarp/aligned.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
typedef AlignedBuffer< PUBKEYSIZE > pubkey;
|
|
|
|
struct pubkeyhash
|
|
{
|
|
std::size_t
|
|
operator()(pubkey const& a) const noexcept
|
|
{
|
|
size_t sz = 0;
|
|
memcpy(&sz, a.data(), sizeof(size_t));
|
|
return sz;
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif
|