added raw library encryption test with static keys, cipher and message

This commit is contained in:
TLINDEN
2013-11-24 19:59:55 +01:00
parent e2713d40ec
commit ff78754ddd
20 changed files with 297 additions and 242 deletions

View File

@@ -85,10 +85,7 @@ unsigned char *pcp_box_encrypt(pcp_key_t *secret, pcp_pubkey_t *public,
unsigned char *message, size_t messagesize,
size_t *csize) {
//unsigned char *nonce = pcp_gennonce();
unsigned char *nonce = ucmalloc(crypto_secretbox_NONCEBYTES);
memset(nonce, 1, crypto_secretbox_NONCEBYTES);
unsigned char *nonce = pcp_gennonce();
unsigned char *cipher;