From 2dd950ecaed5e21d547182f661cfa5a386d17e2e Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Thu, 11 Aug 2016 13:48:47 -0500 Subject: [PATCH 1/2] Clarify comment about nonce space for Note Encryption --- src/zcash/NoteEncryption.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zcash/NoteEncryption.hpp b/src/zcash/NoteEncryption.hpp index ac8fb321..b46c42ef 100644 --- a/src/zcash/NoteEncryption.hpp +++ b/src/zcash/NoteEncryption.hpp @@ -37,8 +37,8 @@ public: } // Encrypts `message` with `pk_enc` and returns the ciphertext. - // This can only be called twice for a given instantiation before - // the nonce-space runs out. + // This is currently only called twice for a given instantiation; + // but can be called 255 times before the nonce-space runs out. Ciphertext encrypt(const uint256 &pk_enc, const Plaintext &message ); From 36d5f429486035f3988d42a9f59b786df8ee4580 Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Thu, 18 Aug 2016 16:51:15 -0500 Subject: [PATCH 2/2] Update NoteEncryption.hpp --- src/zcash/NoteEncryption.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zcash/NoteEncryption.hpp b/src/zcash/NoteEncryption.hpp index b46c42ef..2a78e9b0 100644 --- a/src/zcash/NoteEncryption.hpp +++ b/src/zcash/NoteEncryption.hpp @@ -37,7 +37,7 @@ public: } // Encrypts `message` with `pk_enc` and returns the ciphertext. - // This is currently only called twice for a given instantiation; + // This is only called ZC_NUM_JS_OUTPUTS times for a given instantiation; // but can be called 255 times before the nonce-space runs out. Ciphertext encrypt(const uint256 &pk_enc, const Plaintext &message