MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / CryptoConstants

Method CryptoConstants

libi2pd/Crypto.cpp:102–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 BIGNUM * rsae;
101
102 CryptoConstants (const uint8_t * elgp_, int elgg_, const uint8_t * dsap_,
103 const uint8_t * dsaq_, const uint8_t * dsag_, int rsae_)
104 {
105 elgp = BN_new ();
106 BN_bin2bn (elgp_, 256, elgp);
107 elgg = BN_new ();
108 BN_set_word (elgg, elgg_);
109 dsap = BN_new ();
110 BN_bin2bn (dsap_, 128, dsap);
111 dsaq = BN_new ();
112 BN_bin2bn (dsaq_, 20, dsaq);
113 dsag = BN_new ();
114 BN_bin2bn (dsag_, 128, dsag);
115 rsae = BN_new ();
116 BN_set_word (rsae, rsae_);
117 }
118
119 ~CryptoConstants ()
120 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected