libidav/crypto.c

changeset 818
bc782cca0759
parent 816
839fefbdedc7
--- a/libidav/crypto.c	Thu May 23 23:19:06 2024 +0200
+++ b/libidav/crypto.c	Thu May 23 23:23:36 2024 +0200
@@ -103,8 +103,8 @@
 size_t aes_write(const void *buf, size_t s, size_t n, AESDecrypter *dec) {
     int len = s*n;
     if(!dec->init) {
-        size_t n = 16 - dec->ivpos;
-        size_t cp = n > len ? len : n;
+        size_t m = 16 - dec->ivpos;
+        size_t cp = m > len ? len : m;
         memcpy(dec->ivtmp + dec->ivpos, buf, cp);
         dec->ivpos += cp;
         if(dec->ivpos >= 16) {

mercurial