mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-18 15:26:38 +01:00
GetGroup () for GOST curve
This commit is contained in:
parent
249bc42667
commit
d9b79f47c8
1 changed files with 2 additions and 1 deletions
3
Gost.h
3
Gost.h
|
@ -29,6 +29,7 @@ namespace crypto
|
||||||
~GOSTR3410Curve ();
|
~GOSTR3410Curve ();
|
||||||
|
|
||||||
size_t GetKeyLen () const { return m_KeyLen; };
|
size_t GetKeyLen () const { return m_KeyLen; };
|
||||||
|
const EC_GROUP * GetGroup () const { return m_Group; };
|
||||||
EC_POINT * MulP (const BIGNUM * n) const;
|
EC_POINT * MulP (const BIGNUM * n) const;
|
||||||
bool GetXY (const EC_POINT * p, BIGNUM * x, BIGNUM * y) const;
|
bool GetXY (const EC_POINT * p, BIGNUM * x, BIGNUM * y) const;
|
||||||
EC_POINT * CreatePoint (const BIGNUM * x, const BIGNUM * y) const;
|
EC_POINT * CreatePoint (const BIGNUM * x, const BIGNUM * y) const;
|
||||||
|
@ -44,7 +45,7 @@ namespace crypto
|
||||||
std::unique_ptr<GOSTR3410Curve>& GetGOSTR3410Curve (GOSTR3410ParamSet paramSet);
|
std::unique_ptr<GOSTR3410Curve>& GetGOSTR3410Curve (GOSTR3410ParamSet paramSet);
|
||||||
|
|
||||||
void GOSTR3411_2012_256 (const uint8_t * buf, size_t len, uint8_t * digest);
|
void GOSTR3411_2012_256 (const uint8_t * buf, size_t len, uint8_t * digest);
|
||||||
void GOSTR3411_2012_512 (const uint8_t * buf, size_t len, uint8_t * digest);
|
void GOSTR3411_2012_512 (const uint8_t * buf, size_t len, uint8_t * digest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue