cryptopals_c

cryptopals crypto challenges solutions in pure c
git clone git://git.superpozycja.net/cryptopals_c
Log | Files | Refs | README

commit 480b3df8ad8f77936db057fb0dd7115ef33eae0e
parent 05ff919ba4f3514b542cf5d52fd1cffb1a6eaa87
Author: anna <anna@brokenlove.online>
Date:   Sat, 31 Aug 2024 20:05:29 +0200

something changed in this file - cleanup commit

this is going to look great for headhunters

Diffstat:
Ms1/c6.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/s1/c6.c b/s1/c6.c @@ -39,7 +39,7 @@ float get_i_c_m(ba *ct, unsigned int m) chunk->len = ct->len / m; chunk->val = (uint8_t *) malloc(sizeof(uint8_t) * chunk->len); - for (j = 0, k = 0; j <chunk->len && k + i < ct->len; j++, k += m) + for (j = 0, k = 0; j < chunk->len && k + i < ct->len; j++, k += m) chunk->val[j] = ct->val[k + i]; res += i_c(chunk); }