From 7c274c8c19068a79f7eda9b6da8fe00a5e265c91 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 24 Jan 2018 22:30:25 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_privkey.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iguana/exchanges/LP_privkey.c b/iguana/exchanges/LP_privkey.c index fe0d11826..6e9e3fe53 100644 --- a/iguana/exchanges/LP_privkey.c +++ b/iguana/exchanges/LP_privkey.c @@ -432,6 +432,7 @@ int32_t JPG_encrypt(uint16_t ind,uint8_t encoded[JPG_ENCRYPTED_MAXSIZE],uint8_t encoded[len++] = (msglen >> 8) & 0xff; encoded[len++] = ind & 0xff; encoded[len++] = (ind >> 8) & 0xff; + printf("msglen.%d ind.%d -> %d %d %d %d\n",msglen,ind,encoded[0],encoded[1],encoded[2],encoded[3]); nonce = &encoded[len]; OS_randombytes(nonce,crypto_box_NONCEBYTES); cipher = &encoded[len + crypto_box_NONCEBYTES]; @@ -439,6 +440,9 @@ int32_t JPG_encrypt(uint16_t ind,uint8_t encoded[JPG_ENCRYPTED_MAXSIZE],uint8_t msglen += crypto_box_NONCEBYTES; msg = encoded; msglen += len; + int32_t i; for (i=0; i