smsvn -> ssc-hg glue: rearrange directory structure
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#ifndef CRYPT_HELPERS_H
|
||||
#define CRYPT_HELPERS_H
|
||||
|
||||
#if !defined(DISABLE_CRYPTO)
|
||||
|
||||
#include "libtomcrypt/src/headers/tomcrypt.h"
|
||||
|
||||
class PRNGWrapper
|
||||
{
|
||||
public:
|
||||
PRNGWrapper( const struct ltc_prng_descriptor *pPRNGDescriptor );
|
||||
~PRNGWrapper();
|
||||
void AddEntropy( const void *pData, int iSize );
|
||||
void AddRandomEntropy();
|
||||
|
||||
int m_iPRNG;
|
||||
prng_state m_PRNG;
|
||||
};
|
||||
|
||||
class RSAKeyWrapper
|
||||
{
|
||||
public:
|
||||
RSAKeyWrapper();
|
||||
~RSAKeyWrapper();
|
||||
void Unload();
|
||||
void Generate( PRNGWrapper &prng, int iKeyLenBits );
|
||||
bool Load( const RString &sKey, RString &sError );
|
||||
|
||||
rsa_key m_Key;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user