break out cipher primitives, add unit tests

git-svn-id: http://encfs.googlecode.com/svn/trunk@94 db9cf616-1c43-0410-9cb8-a902689de0d6
This commit is contained in:
Valient Gough
2013-03-05 06:32:27 +00:00
parent 7799c88df6
commit f00ef5c6d3
29 changed files with 1235 additions and 130 deletions

View File

@ -29,7 +29,8 @@ namespace encfs {
Memory Pool for fixed sized objects.
Usage:
MemBlock mb( size );
MemBlock mb;
mb.allocate( size );
// do things with storage in mb.data
byte *buffer = mb.data;
@ -59,7 +60,7 @@ namespace MemoryPool
struct SecureMem
{
int size;
char *data;
byte *data;
SecureMem(int len);
~SecureMem();