Elligator's encode
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
#ifndef ELLIGATOR_H__
|
||||
#define ELLIGATOR_H__
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <memory>
|
||||
#include <openssl/bn.h>
|
||||
|
||||
namespace i2p
|
||||
{
|
||||
@@ -14,6 +16,12 @@ namespace crypto
|
||||
|
||||
Elligator2 ();
|
||||
~Elligator2 ();
|
||||
|
||||
void Encode (const uint8_t * key, uint8_t * encoded) const;
|
||||
|
||||
private:
|
||||
|
||||
BIGNUM * p, * n1, * n2, * A, * u, * iu;
|
||||
};
|
||||
|
||||
std::unique_ptr<Elligator2>& GetElligator ();
|
||||
|
Reference in New Issue
Block a user