]> git.codecow.com Git - Monocypher.git/commitdiff
Fixed Clang warning
authorLoup Vaillant <loup@loup-vaillant.fr>
Sun, 1 Dec 2019 09:33:01 +0000 (10:33 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sun, 1 Dec 2019 09:33:01 +0000 (10:33 +0100)
src/monocypher.c

index 2e70c61848a9f3783e8105f4d5abc160abe4440b..06491e0412f39731e5ae95f24c3c00a6e91e3e9b 100644 (file)
@@ -226,7 +226,7 @@ u32 crypto_ietf_chacha20_ctr(u8 *cipher_text, const u8 *plain_text,
     input[13] = load32_le(nonce);
     input[14] = load32_le(nonce + 4);
     input[15] = load32_le(nonce + 8);
-    ctr = chacha20_core(input, cipher_text, plain_text, text_size);
+    ctr = (u32)chacha20_core(input, cipher_text, plain_text, text_size);
     WIPE_BUFFER(input);
     return ctr;
 }