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

added unit-tests for the "mac"-package #164

Merged
merged 1 commit into from
Jan 12, 2015

Conversation

Boris-de
Copy link
Contributor

As wished in #156 here are some unittests, for the HMACs at least. I'll try to look into creating a test for the KeyExchanger when I've got time.

While I was at it I created tests for all classes in the "mac"-package. This way I also found a bug in BaseMac which will be fixed with another PR (this is why some of the tests are currently disabled in HMACSHA196Test and HMACMD596Test).

The tests all create a hmac of "Hello World" with a random key of the expected size. I cross-checked the results with two different online services for hmacs.

hierynomus added a commit that referenced this pull request Jan 12, 2015
added unit-tests for the "mac"-package
@hierynomus hierynomus merged commit efb2c54 into hierynomus:master Jan 12, 2015
@Boris-de Boris-de deleted the mac_unittests branch January 12, 2015 18:13
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

Successfully merging this pull request may close these issues.

2 participants