This sample demonstrates the correctness of the implementations for the two symmetric encryption algorithm (Rijndael and Twofish) as well as for the two hashing algorithm (SHA and Haval).
The sample does not work with the free trial version of the library, which does not use all the bits of the encryption key due to export control regulations.
Project path: SAMPLES\VISUAL C++ 6-7\TESTVECTOR
Project file name: TESTVECTOR.DSP
Properties: SecretKey, InitVector, HashValue, EncryptionMethod, EncryptionMode, HashingMethod and HashSize
Method: Encrypt, Decrypt, Compare, Hash
This sample is a console application that perform different encryption and hashing and verify the cipher text to the expected result. The test vectors used to validate these results are stored in these four files:
Rijndael.txt, Twofish.txt, Haval.txt andSHA.txt.