From a60a3e1ca1d99d655c0cfc96e3952c371e8a8677 Mon Sep 17 00:00:00 2001 From: vnugent Date: Sun, 4 Aug 2024 15:27:06 -0400 Subject: cleanup comments + return codes --- src/noscryptutil.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/noscryptutil.c') diff --git a/src/noscryptutil.c b/src/noscryptutil.c index 6b4a157..4cee2c3 100644 --- a/src/noscryptutil.c +++ b/src/noscryptutil.c @@ -469,7 +469,6 @@ static NCResult _nip44EncryptCompleteCore( /* zero hmac key before returning */ ZERO_FILL(hmacKeyOut, sizeof(hmacKeyOut)); - /* Notify the caller how many bytes were written */ return NC_SUCCESS; } @@ -598,7 +597,7 @@ static NCResult _nip44DecryptCompleteCore( DEBUG_ASSERT(ncSpanGetSizeC(state->buffer.actualOutput) < cipherText.size); - return result; + return NC_SUCCESS; } NC_EXPORT NCResult NC_CC NCUtilGetEncryptionPaddedSize(uint32_t encVersion, uint32_t plaintextSize) -- cgit