mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
implemented Legendre
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user