libtom / libtomcrypt

LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines.

Home Page:https://www.libtom.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File tests using text file

aidanoconnor opened this issue · comments

The test for calculating the hash for a file should use a binary file, not the text file, test.key.
Git may do translation of line endings in text files during cloning, which causes the test to fail.
The issue can be resolved by configuring Git, but it may not be obvious why the test is failing.

Files:
tests/file_test.c
tests/test.key