engine icon indicating copy to clipboard operation
engine copied to clipboard

wrong adding size of encrypted data

Open igrkir opened this issue 4 years ago • 0 comments

in file gost_crypt.c line 700: instead of "c->count += 8;" must be "c->count += j;"

Expected: when encrypting last block, which length doesn't match "% 8 == 0", then only first j bytes are using for encrypting, so c->count must be increased by j. Actual: c->count increases by 8;

igrkir avatar Nov 27 '20 08:11 igrkir