mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
support of GOST 34.10-2012 512 bits
This commit is contained in:
parent
5bcc5ff873
commit
e877247032
4 changed files with 57 additions and 16 deletions
1
Gost.cpp
1
Gost.cpp
|
@ -12,6 +12,7 @@ namespace crypto
|
|||
|
||||
GOSTR3410Curve::GOSTR3410Curve (BIGNUM * a, BIGNUM * b, BIGNUM * p, BIGNUM * q, BIGNUM * x, BIGNUM * y)
|
||||
{
|
||||
m_KeyLen = BN_num_bytes (p);
|
||||
BN_CTX * ctx = BN_CTX_new ();
|
||||
m_Group = EC_GROUP_new_curve_GFp (p, a, b, ctx);
|
||||
EC_POINT * P = EC_POINT_new (m_Group);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue