aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/noscryptutil.c3
1 files changed, 1 insertions, 2 deletions
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)