mirror of https://github.com/PurpleI2P/i2pd.git
I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
784 B
39 lines
784 B
11 years ago
|
#ifndef CRYPTO_CONST_H__
|
||
|
#define CRYPTO_CONST_H__
|
||
|
|
||
|
#include <cryptopp/integer.h>
|
||
|
|
||
|
namespace i2p
|
||
|
{
|
||
|
namespace crypto
|
||
|
{
|
||
10 years ago
|
struct CryptoConstants
|
||
|
{
|
||
|
// DH/ElGamal
|
||
|
const CryptoPP::Integer elgp;
|
||
|
const CryptoPP::Integer elgg;
|
||
11 years ago
|
|
||
10 years ago
|
// DSA
|
||
|
const CryptoPP::Integer dsap;
|
||
|
const CryptoPP::Integer dsaq;
|
||
|
const CryptoPP::Integer dsag;
|
||
|
};
|
||
|
|
||
|
const CryptoConstants& GetCryptoConstants ();
|
||
|
|
||
|
// DH/ElGamal
|
||
|
#define elgp GetCryptoConstants ().elgp
|
||
|
#define elgg GetCryptoConstants ().elgg
|
||
11 years ago
|
|
||
10 years ago
|
// DSA
|
||
|
#define dsap GetCryptoConstants ().dsap
|
||
|
#define dsaq GetCryptoConstants ().dsaq
|
||
|
#define dsag GetCryptoConstants ().dsag
|
||
10 years ago
|
|
||
10 years ago
|
// RSA
|
||
|
const int rsae = 65537;
|
||
|
}
|
||
|
}
|
||
11 years ago
|
|
||
|
#endif
|