From 6ff8bb11774c51fd341b7699a3938fd894995fbf Mon Sep 17 00:00:00 2001 From: vnugent Date: Thu, 25 Apr 2024 17:45:42 -0400 Subject: refactor: Finish support and testing for mbedtls --- src/crypto/impl/monocypher.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/crypto/impl/monocypher.c') diff --git a/src/crypto/impl/monocypher.c b/src/crypto/impl/monocypher.c index 790f5e9..b695d08 100644 --- a/src/crypto/impl/monocypher.c +++ b/src/crypto/impl/monocypher.c @@ -53,10 +53,7 @@ uint32_t dataLen ) { - if(dataLen > SIZE_MAX) - { - return CSTATUS_FAIL; - } + _sizet_check(dataLen) /* * Function returns the next counter value which is not -- cgit