Skip to content

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