8000 wrong adding size of encrypted data · Issue #299 · gost-engine/engine · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wrong adding size of encrypted data #299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
igrkir opened this issue Nov 27, 2020 · 0 comments
Open

wrong adding size of encrypted data #299

igrkir opened this issue Nov 27, 2020 · 0 comments

Comments

@igrkir
Copy link
igrkir commented Nov 27, 2020

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0