Open Ohiekkar opened 4 years ago
I agree. This would also allow us to leverage continuous integration e.g. Travis CI. Would be happy if someone would add this.
Have never written test code for crypto implementations, but maybe these provide some inspiration.
https://github.com/google/wycheproof https://www.schneier.com/blog/archives/2016/12/google_releases.html
There was rot13 mentioned in sources. Maybe it is tested somewhat like encoding is? https://github.com/openssl/openssl/blob/master/test/asn1_encode_test.c
We should definitely add some unit tests. How else can we be sure that the different encrypting methods produce correct results?