Created
January 6, 2019 03:46
-
-
Save neheb/d8005ea2fe94fcb6699014467a5bfccc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libi2pd/Gost.cpp: In constructor 'i2p::crypto::GOSTR3410Curve::GOSTR3410Curve(BIGNUM*, BIGNUM*, BIGNUM*, BIGNUM*, BIGNUM*, BIGNUM*)': | |
libi2pd/Gost.cpp:17:14: error: 'BN_num_bytes' was not declared in this scope | |
m_KeyLen = BN_num_bytes (p); | |
^~~~~~~~~~~~ | |
libi2pd/Gost.cpp:18:18: error: 'BN_CTX_new' was not declared in this scope | |
BN_CTX * ctx = BN_CTX_new (); | |
^~~~~~~~~~ | |
libi2pd/Gost.cpp:18:18: note: suggested alternative: 'ASN1_SCTX_new' | |
BN_CTX * ctx = BN_CTX_new (); | |
^~~~~~~~~~ | |
ASN1_SCTX_new | |
libi2pd/Gost.cpp:25:3: error: 'BN_CTX_free' was not declared in this scope | |
BN_CTX_free (ctx); | |
^~~~~~~~~~~ | |
libi2pd/Gost.cpp:25:3: note: suggested alternative: 'ASN1_SCTX_free' | |
BN_CTX_free (ctx); | |
^~~~~~~~~~~ | |
ASN1_SCTX_free | |
libi2pd/Gost.cpp: In member function 'EC_POINT* i2p::crypto::GOSTR3410Curve::MulP(const BIGNUM*) const': | |
libi2pd/Gost.cpp:35:18: error: 'BN_CTX_new' was not declared in this scope | |
BN_CTX * ctx = BN_CTX_new (); | |
^~~~~~~~~~ | |
libi2pd/Gost.cpp:35:18: note: suggested alternative: 'ASN1_SCTX_new' | |
BN_CTX * ctx = BN_CTX_new (); | |
^~~~~~~~~~ | |
ASN1_SCTX_new | |
libi2pd/Gost.cpp:38:3: error: 'BN_CTX_free' was not declared in this scope | |
BN_CTX_free (ctx); | |
^~~~~~~~~~~ | |
libi2pd/Gost.cpp:38:3: note: suggested alternative: 'ASN1_SCTX_free' | |
BN_CTX_free (ctx); | |
^~~~~~~~~~~ | |
ASN1_SCTX_free | |
libi2pd/Gost.cpp: In member function 'void i2p::crypto::GOSTR3410Curve::Sign(const BIGNUM*, const BIGNUM*, BIGNUM*, BIGNUM*)': | |
libi2pd/Gost.cpp:56:18: error: 'BN_CTX_new' was not declared in this scope | |
BN_CTX * ctx = BN_CTX_new (); | |
^~~~~~~~~~ | |
libi2pd/Gost.cpp:56:18: note: suggested alternative: 'ASN1_SCTX_new' | |
BN_CTX * ctx = BN_CTX_new (); | |
^~~~~~~~~~ | |
ASN1_SCTX_new | |
libi2pd/Gost.cpp:57:3: error: 'BN_CTX_start' was not declared in this scope | |
BN_CTX_start (ctx); | |
^~~~~~~~~~~~ | |
libi2pd/Gost.cpp:57:3: note: suggested alternative: 'BN_CTX' | |
BN_CTX_start (ctx); | |
^~~~~~~~~~~~ | |
BN_CTX | |
libi2pd/Gost.cpp:58:16: error: 'BN_CTX_get' was not declared in this scope | |
BIGNUM * q = BN_CTX_get (ctx); | |
^~~~~~~~~~ | |
libi2pd/Gost.cpp:58:16: note: suggested alternative: 'BN_CTX' | |
BIGNUM * q = BN_CTX_get (ctx); | |
^~~~~~~~~~ | |
BN_CTX | |
libi2pd/Gost.cpp:61:3: error: 'BN_rand_range' was not declared in this scope | |
BN_rand_range (k, q); // 0 < k < q | |
^~~~~~~~~~~~~ | |
libi2pd/Gost.cpp:65:3: error: 'BN_mod_mul' was not declared in this scope | |
BN_mod_mul (s, r, priv, q, ctx); // (r*priv)%q | |
^~~~~~~~~~ | |
libi2pd/Gost.cpp:65:3: note: suggested alternative: 'SN_id_ppl' | |
BN_mod_mul (s, r, priv, q, ctx); // (r*priv)%q | |
^~~~~~~~~~ | |
SN_id_ppl | |
libi2pd/Gost.cpp:68:3: error: 'BN_mod_add' was not declared in this scope | |
BN_mod_add (s, s, tmp, q, ctx); // (r*priv+k*digest)%q | |
^~~~~~~~~~ | |
libi2pd/Gost.cpp:68:3: note: suggested alternative: 'SN_id_ad' | |
BN_mod_add (s, s, tmp, q, ctx); // (r*priv+k*digest)%q | |
^~~~~~~~~~ | |
SN_id_ad | |
libi2pd/Gost.cpp:69:3: error: 'BN_CTX_end' was not declared in this scope | |
BN_CTX_end (ctx); | |
^~~~~~~~~~ | |
libi2pd/Gost.cpp:69:3: note: suggested alternative: 'BN_CTX' | |
BN_CTX_end (ctx); | |
^~~~~~~~~~ | |
BN_CTX | |
libi2pd/Gost.cpp:70:3: error: 'BN_CTX_free' was not declared in this scope | |
BN_CTX_free (ctx); | |
^~~~~~~~~~~ | |
libi2pd/Gost.cpp:70:3: note: suggested alternative: 'ASN1_SCTX_free' | |
BN_CTX_free (ctx); | |
^~~~~~~~~~~ | |
ASN1_SCTX_free | |
libi2pd/Gost.cpp: In member function 'bool i2p::crypto::GOSTR3410Curve::Verify(const EC_POINT*, const BIGNUM*, const BIGNUM*, const BIGNUM*)': | |
libi2pd/Gost.cpp:75:18: error: 'BN_CTX_new' was not declared in this scope | |
BN_CTX * ctx = BN_CTX_new (); | |
^~~~~~~~~~ | |
libi2pd/Gost.cpp:75:18: note: suggested alternative: 'ASN1_SCTX_new' | |
BN_CTX * ctx = BN_CTX_new (); | |
^~~~~~~~~~ | |
ASN1_SCTX_new | |
libi2pd/Gost.cpp:76:3: error: 'BN_CTX_start' was not declared in this scope | |
BN_CTX_start (ctx); | |
^~~~~~~~~~~~ | |
libi2pd/Gost.cpp:76:3: note: suggested alternative: 'BN_CTX' | |
BN_CTX_start (ctx); | |
^~~~~~~~~~~~ | |
BN_CTX | |
libi2pd/Gost.cpp:77:16: error: 'BN_CTX_get' was not declared in this scope | |
BIGNUM * q = BN_CTX_get (ctx); | |
^~~~~~~~~~ | |
libi2pd/Gost.cpp:77:16: note: suggested alternative: 'BN_CTX' | |
BIGNUM * q = BN_CTX_get (ctx); | |
^~~~~~~~~~ | |
BN_CTX | |
libi2pd/Gost.cpp:80:3: error: 'BN_mod' was not declared in this scope | |
BN_mod (h, digest, q, ctx); // h = digest % q | |
^~~~~~ | |
libi2pd/Gost.cpp:80:3: note: suggested alternative: 'SN_dod' | |
BN_mod (h, digest, q, ctx); // h = digest % q | |
^~~~~~ | |
SN_dod | |
libi2pd/Gost.cpp:81:3: error: 'BN_mod_inverse' was not declared in this scope | |
BN_mod_inverse (h, h, q, ctx); // 1/h mod q | |
^~~~~~~~~~~~~~ | |
libi2pd/Gost.cpp:81:3: note: suggested alternative: 'sk_void_insert' | |
BN_mod_inverse (h, h, q, ctx); // 1/h mod q | |
^~~~~~~~~~~~~~ | |
sk_void_insert | |
libi2pd/Gost.cpp:83:3: error: 'BN_mod_mul' was not declared in this scope | |
BN_mod_mul (z1, s, h, q, ctx); // z1 = s/h | |
^~~~~~~~~~ | |
libi2pd/Gost.cpp:83:3: note: suggested alternative: 'SN_id_ppl' | |
BN_mod_mul (z1, s, h, q, ctx); // z1 = s/h | |
^~~~~~~~~~ | |
SN_id_ppl | |
libi2pd/Gost.cpp:85:3: error: 'BN_sub' was not declared in this scope | |
BN_sub (z2, q, r); // z2 = -r | |
^~~~~~ | |
libi2pd/Gost.cpp:85:3: note: suggested alternative: 'BN_CTX' | |
BN_sub (z2, q, r); // z2 = -r | |
^~~~~~ | |
BN_CTX | |
libi2pd/Gost.cpp:92:15: error: 'BN_cmp' was not declared in this scope | |
bool ret = !BN_cmp (x, r); // Cx = r ? | |
^~~~~~ | |
libi2pd/Gost.cpp:92:15: note: suggested alternative: 'OBJ_cmp' | |
bool ret = !BN_cmp (x, r); // Cx = r ? | |
^~~~~~ | |
OBJ_cmp | |
libi2pd/Gost.cpp:94:3: error: 'BN_CTX_end' was not declared in this scope | |
BN_CTX_end (ctx); | |
^~~~~~~~~~ | |
libi2pd/Gost.cpp:94:3: note: suggested alternative: 'BN_CTX' | |
BN_CTX_end (ctx); | |
^~~~~~~~~~ | |
BN_CTX | |
libi2pd/Gost.cpp:95:3: error: 'BN_CTX_free' was not declared in this scope | |
BN_CTX_free (ctx); | |
^~~~~~~~~~~ | |
libi2pd/Gost.cpp:95:3: note: suggested alternative: 'ASN1_SCTX_free' | |
BN_CTX_free (ctx); | |
^~~~~~~~~~~ | |
ASN1_SCTX_free | |
libi2pd/Gost.cpp: In member function 'EC_POINT* i2p::crypto::GOSTR3410Curve::RecoverPublicKey(const BIGNUM*, const BIGNUM*, const BIGNUM*, bool) const': | |
libi2pd/Gost.cpp:102:18: error: 'BN_CTX_new' was not declared in this scope | |
BN_CTX * ctx = BN_CTX_new (); | |
^~~~~~~~~~ | |
libi2pd/Gost.cpp:102:18: note: suggested alternative: 'ASN1_SCTX_new' | |
BN_CTX * ctx = BN_CTX_new (); | |
^~~~~~~~~~ | |
ASN1_SCTX_new | |
libi2pd/Gost.cpp:103:3: error: 'BN_CTX_start' was not declared in this scope | |
BN_CTX_start (ctx); | |
^~~~~~~~~~~~ | |
libi2pd/Gost.cpp:103:3: note: suggested alternative: 'BN_CTX' | |
BN_CTX_start (ctx); | |
^~~~~~~~~~~~ | |
BN_CTX | |
libi2pd/Gost.cpp:110:17: error: 'BN_CTX_get' was not declared in this scope | |
BIGNUM * q = BN_CTX_get (ctx); | |
^~~~~~~~~~ | |
libi2pd/Gost.cpp:110:17: note: suggested alternative: 'BN_CTX' | |
BIGNUM * q = BN_CTX_get (ctx); | |
^~~~~~~~~~ | |
BN_CTX | |
libi2pd/Gost.cpp:113:4: error: 'BN_mod' was not declared in this scope | |
BN_mod (h, digest, q, ctx); // h = digest % q | |
^~~~~~ | |
libi2pd/Gost.cpp:113:4: note: suggested alternative: 'SN_dod' | |
BN_mod (h, digest, q, ctx); // h = digest % q | |
^~~~~~ | |
SN_dod | |
libi2pd/Gost.cpp:114:4: error: 'BN_sub' was not declared in this scope | |
BN_sub (h, q, h); // h = -h | |
^~~~~~ | |
libi2pd/Gost.cpp:114:4: note: suggested alternative: 'BN_CTX' | |
BN_sub (h, q, h); // h = -h | |
^~~~~~ | |
BN_CTX | |
libi2pd/Gost.cpp:121:4: error: 'BN_mod_inverse' was not declared in this scope | |
BN_mod_inverse (r1, r, q, ctx); | |
^~~~~~~~~~~~~~ | |
libi2pd/Gost.cpp:121:4: note: suggested alternative: 'sk_void_insert' | |
BN_mod_inverse (r1, r, q, ctx); | |
^~~~~~~~~~~~~~ | |
sk_void_insert | |
libi2pd/Gost.cpp:126:3: error: 'BN_CTX_end' was not declared in this scope | |
BN_CTX_end (ctx); | |
^~~~~~~~~~ | |
libi2pd/Gost.cpp:126:3: note: suggested alternative: 'BN_CTX' | |
BN_CTX_end (ctx); | |
^~~~~~~~~~ | |
BN_CTX | |
libi2pd/Gost.cpp:127:3: error: 'BN_CTX_free' was not declared in this scope | |
BN_CTX_free (ctx); | |
^~~~~~~~~~~ | |
libi2pd/Gost.cpp:127:3: note: suggested alternative: 'ASN1_SCTX_free' | |
BN_CTX_free (ctx); | |
^~~~~~~~~~~ | |
ASN1_SCTX_free | |
libi2pd/Gost.cpp: In function 'i2p::crypto::GOSTR3410Curve* i2p::crypto::CreateGOSTR3410Curve(i2p::crypto::GOSTR3410ParamSet)': | |
libi2pd/Gost.cpp:155:3: error: 'BN_hex2bn' was not declared in this scope | |
BN_hex2bn(&a, params[paramSet][0]); | |
^~~~~~~~~ | |
libi2pd/Gost.cpp:162:3: error: 'BN_free' was not declared in this scope | |
BN_free (a); BN_free (b); BN_free (p); BN_free (q); BN_free (x); BN_free (y); | |
^~~~~~~ | |
libi2pd/Gost.cpp:162:3: note: suggested alternative: 'BIO_free' | |
BN_free (a); BN_free (b); BN_free (p); BN_free (q); BN_free (x); BN_free (y); | |
^~~~~~~ | |
BIO_free |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment