henrinormak / Heimdall

Heimdall is a wrapper around the Security framework for simple encryption/decryption operations.
MIT License
402 stars 68 forks source link

Add unit tests #9

Closed henrinormak closed 9 years ago

henrinormak commented 9 years ago

Adding unit tests for core functionality will help increase the stability of the codebase. Currently, there are no tests, however, ideally tests would cover the following use cases:

All tests should work for a variety of Heimdall instances (key sizes), as well as for a variety of inputs (short, long, longer).

henrinormak commented 9 years ago

Some basic tests were added in e7e2b16891f2368b9b64af9f30e35c4643a4c746 These do not cover validating the results, for example by using an alternative crypto implementation to decrypt/verify signatures and data. However, even this coverage is better than nothing.