mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 12:17:49 +02:00
use ElGamalEcryption for garlic encryption
This commit is contained in:
parent
354015e9ca
commit
8d6c08ec78
7 changed files with 33 additions and 33 deletions
|
@ -13,11 +13,11 @@ namespace i2p
|
|||
namespace crypto
|
||||
{
|
||||
|
||||
class ElGamalEncryptor
|
||||
class ElGamalEncryption
|
||||
{
|
||||
public:
|
||||
|
||||
ElGamalEncryptor (const uint8_t * key, bool zeroPadding = false):
|
||||
ElGamalEncryption (const uint8_t * key, bool zeroPadding = false):
|
||||
y (key, 256), k (rnd, CryptoPP::Integer::One(), elgp-1),
|
||||
a (a_exp_b_mod_c (elgg, k, elgp)), b1 (a_exp_b_mod_c (y, k, elgp)),
|
||||
m_ZeroPadding (zeroPadding)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue