This is a symmetric-key block-cypher. It utilizes a 2048-byte internal state which is initialized using the passphrase. It uses repeated applications of sha-512 to advance the internal state, and to generate an 1024-byte pad that it xor's with your data to encrypt or decrypt it. Warning: You use this algorithm at your own risk. Many encryption algorithms eventually turn out to be insecure, and to my knowledge, this algorithm has not yet been extensively scrutinized.
More...
#include <GCrypto.h>
|
| GCrypto (const char *pPassphrase, size_t nPassphraseSize) |
|
| ~GCrypto () |
|
void | doChunk (char *pData, size_t nDataSize) |
|
This is a symmetric-key block-cypher. It utilizes a 2048-byte internal state which is initialized using the passphrase. It uses repeated applications of sha-512 to advance the internal state, and to generate an 1024-byte pad that it xor's with your data to encrypt or decrypt it. Warning: You use this algorithm at your own risk. Many encryption algorithms eventually turn out to be insecure, and to my knowledge, this algorithm has not yet been extensively scrutinized.
GClasses::GCrypto::GCrypto |
( |
const char * |
pPassphrase, |
|
|
size_t |
nPassphraseSize |
|
) |
| |
GClasses::GCrypto::~GCrypto |
( |
| ) |
|
void GClasses::GCrypto::doChunk |
( |
char * |
pData, |
|
|
size_t |
nDataSize |
|
) |
| |
static void GClasses::GCrypto::test |
( |
| ) |
|
|
static |