Skip to content
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

CTR example does not Encrypt/Decrypt #153

Closed
fweinrebe opened this issue Jan 20, 2020 · 1 comment
Closed

CTR example does not Encrypt/Decrypt #153

fweinrebe opened this issue Jan 20, 2020 · 1 comment

Comments

@fweinrebe
Copy link

The example in Test.c for CTR mode is not complete. It merely calls the same method but the parameter is only displayed and never used to decide if it is encrypted or decrypted.

@kokke
Copy link
Owner

kokke commented Jan 20, 2020

Hi @fweinrebe, and thanks for your interest in the project :)

test.c is not meant to be a comprehensive test-suite; it is meant to quickly demonstrate usage.

Quoting from "#142"

I have done a lot more testing than what is in test.c and indeed encryption and decryption works as advertised even though the test-file doesn't test very thoroughly.

The test-code is meant to be a quick way for users to verify against the NIST vectors described in SP 800-38. It is not meant to convince you of correctness or robustness.

@kokke kokke closed this as completed Jan 20, 2020
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

2 participants