2013-09-01 21:38:57 +04:00
|
|
|
#ifndef CRYPTO_CONST_H__
|
|
|
|
#define CRYPTO_CONST_H__
|
|
|
|
|
|
|
|
#include <cryptopp/integer.h>
|
|
|
|
|
2015-08-27 23:16:12 +03:00
|
|
|
namespace i2p {
|
|
|
|
namespace crypto {
|
|
|
|
|
|
|
|
struct CryptoConstants {
|
|
|
|
|
|
|
|
// DH/ElGamal
|
|
|
|
const CryptoPP::Integer elgp;
|
|
|
|
const CryptoPP::Integer elgg;
|
2013-09-01 21:38:57 +04:00
|
|
|
|
2015-07-17 00:29:52 +03:00
|
|
|
// DSA
|
2015-08-27 23:16:12 +03:00
|
|
|
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
|
|
|
|
|
|
|
|
// DSA
|
|
|
|
#define dsap GetCryptoConstants ().dsap
|
|
|
|
#define dsaq GetCryptoConstants ().dsaq
|
|
|
|
#define dsag GetCryptoConstants ().dsag
|
2014-12-11 05:31:06 +03:00
|
|
|
|
2015-08-27 23:16:12 +03:00
|
|
|
// RSA
|
|
|
|
const int rsae = 65537;
|
2015-07-17 00:29:52 +03:00
|
|
|
}
|
|
|
|
}
|
2013-09-01 21:38:57 +04:00
|
|
|
|
|
|
|
#endif
|