mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
implemented Legendre
This commit is contained in:
parent
8d74905257
commit
7417867d0f
2 changed files with 75 additions and 44 deletions
|
@ -17,12 +17,13 @@ namespace crypto
|
|||
Elligator2 ();
|
||||
~Elligator2 ();
|
||||
|
||||
void Encode (const uint8_t * key, uint8_t * encoded) const;
|
||||
void Decode (const uint8_t * encoded, uint8_t * key) const;
|
||||
bool Encode (const uint8_t * key, uint8_t * encoded) const;
|
||||
bool Decode (const uint8_t * encoded, uint8_t * key) const;
|
||||
|
||||
private:
|
||||
|
||||
void SquareRoot (const BIGNUM * x, BIGNUM * r, BN_CTX * ctx) const;
|
||||
int Legendre (const BIGNUM * a, BN_CTX * ctx) const; // a/p
|
||||
|
||||
private:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue