engine
engine copied to clipboard
wrong adding size of encrypted data
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;