1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-08 22:57:52 +00:00
i2pd/CryptoConst.h

36 lines
640 B
C
Raw Normal View History

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