Searched refs:m_PrivateKey (Results 1 – 7 of 7) sorted by relevance
/dports/security/i2pd/i2pd-2.40.0/libi2pd/ |
H A D | CryptoKey.cpp | 30 memcpy (m_PrivateKey, priv, 256); in ElGamalDecryptor() 35 return ElGamalDecrypt (m_PrivateKey, encrypted, data); in Decrypt() 64 m_PrivateKey = BN_bin2bn (priv, 32, nullptr); in ECIESP256Decryptor() 70 if (m_PrivateKey) BN_free (m_PrivateKey); in ~ECIESP256Decryptor() 75 if (m_Curve && m_PrivateKey) in Decrypt() 76 return ECIESDecrypt (m_Curve, m_PrivateKey, encrypted, data); in Decrypt() 123 m_PrivateKey = BN_bin2bn (priv, 32, nullptr); in ECIESGOSTR3410Decryptor() 128 if (m_PrivateKey) BN_free (m_PrivateKey); in ~ECIESGOSTR3410Decryptor() 133 if (m_PrivateKey) in Decrypt() 134 …return ECIESDecrypt (GetGOSTR3410Curve (eGOSTR3410CryptoProA)->GetGroup (), m_PrivateKey, encrypte… in Decrypt()
|
H A D | Signature.h | 97 m_PrivateKey = CreateDSA (); in DSASigner() 103 DSA_free (m_PrivateKey); in ~DSASigner() 110 DSA_SIG * sig = DSA_do_sign (digest, 20, m_PrivateKey); in Sign() 120 DSA * m_PrivateKey; 218 m_PrivateKey = EC_KEY_new_by_curve_name (curve); in ECDSASigner() 224 EC_KEY_free (m_PrivateKey); in ~ECDSASigner() 242 EC_KEY * m_PrivateKey; 456 ~GOSTR3410Signer () { BN_free (m_PrivateKey); } in ~GOSTR3410Signer() 464 GetGOSTR3410Curve (m_ParamSet)->Sign (m_PrivateKey, d, r, s); in Sign() 473 BIGNUM * m_PrivateKey; variable [all …]
|
H A D | CryptoKey.h | 59 uint8_t m_PrivateKey[256]; 91 BIGNUM * m_PrivateKey; variable 123 BIGNUM * m_PrivateKey;
|
H A D | Identity.cpp | 446 memcpy (m_PrivateKey, keys.privateKey, 256); // 256 in operator =() 459 memcpy (m_PrivateKey, other.m_PrivateKey, 256); // 256 in operator =() 483 memcpy (m_PrivateKey, buf + ret, cryptoKeyLen); in FromBuffer() 537 memcpy (buf + ret, m_PrivateKey, cryptoKeyLen); in ToBuffer() 670 if (!key) key = m_PrivateKey; // use privateKey in CreateDecryptor() 708 GenerateCryptoKeyPair (cryptoType, keys.m_PrivateKey, publicKey); in CreateRandomKeys()
|
H A D | Crypto.cpp | 316 memcpy (m_PrivateKey, priv, 32); in X25519Keys() 320 GetEd25519 ()->ScalarMulB (m_PrivateKey, m_PublicKey, m_Ctx); in X25519Keys() 349 RAND_bytes (m_PrivateKey, 32); in GenerateKeys() 350 GetEd25519 ()->ScalarMulB (m_PrivateKey, m_PublicKey, m_Ctx); in GenerateKeys() 366 GetEd25519 ()->ScalarMul (pub, m_PrivateKey, shared, m_Ctx); in Agree() 377 memcpy (priv, m_PrivateKey, 32); in GetPrivateKey() 394 memcpy (m_PrivateKey, priv, 32); in SetPrivateKey() 396 GetEd25519 ()->ScalarMulB (m_PrivateKey, m_PublicKey, m_Ctx); in SetPrivateKey()
|
H A D | Identity.h | 156 const uint8_t * GetPrivateKey () const { return m_PrivateKey; }; in GetPrivateKey() 192 uint8_t m_PrivateKey[256]; variable
|
H A D | Crypto.h | 107 uint8_t m_PrivateKey[32]; variable
|