smsvn -> ssc-hg glue: rearrange directory structure

This commit is contained in:
Devin J. Pohly
2013-06-10 15:38:43 -04:00
parent 51576d5942
commit 80057f53cd
3362 changed files with 0 additions and 0 deletions
+35
View File
@@ -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