i2pd/CryptoConst.h

39 lines
674 B
C
Raw Normal View History

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