turned crypto_secretbox nonces into counters, thereby implementing counter mode (CTR mode). we use variable size counters, max counter size is 184 bit, max implemented currently are 64 bit, multiply by 32kb and you get the maximum file size supported by pcp encryption

This commit is contained in:
TLINDEN
2015-01-16 00:13:02 +01:00
parent 3c30d8871b
commit 2e7479525f
4 changed files with 163 additions and 6 deletions

8
TODO
View File

@@ -48,3 +48,11 @@ Program received signal SIGSEGV, Segmentation fault.
#2 0x00000000004084ff in ptx_clean (ptx=0x801017040) at context.c:52
#3 0x0000000000402557 in main (argc=Variable "argc" is not available.
) at pcp.c:593
_havenacl sometimes "no", even if old version is installed, followed by:
mem.c:51: warning: implicit declaration of function 'sodium_malloc'
mem.c:51: warning: initialization makes pointer from integer without a cast