diff options
author | Test_User <hax@runxiyu.org> | 2025-03-23 17:45:12 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-23 17:45:12 +0800 |
commit | 85f1d43156f2ea68b42698ab55bbe16c09c156f2 (patch) | |
tree | 97b25b83b373aa5d592e3ac9fca86b122dc4aa54 | |
parent | Make it (hopefully) work on non-8-bit systems (diff) | |
download | powxy-85f1d43156f2ea68b42698ab55bbe16c09c156f2.tar.gz powxy-85f1d43156f2ea68b42698ab55bbe16c09c156f2.tar.zst powxy-85f1d43156f2ea68b42698ab55bbe16c09c156f2.zip |
Fix digest size
-rw-r--r-- | csolver.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -101,7 +101,7 @@ int main(int argc, char **argv) } size_t len = EVP_MD_size(EVP_sha256()); - unsigned char digest[EVP_MAX_MD_SIZE]; + unsigned char digest[len]; size_t next = 0; while (1) { |