Xceed Encryption Library Documentation
Test Vector Sample Application for Visual C++
Samples > Test Vector Sample Application for Visual C++

Description

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

Project path: SAMPLES\VISUAL C++ 6-7\TESTVECTOR

Project file name: TESTVECTOR.DSP

Demonstrates

Properties: SecretKey, InitVector, HashValue, EncryptionMethod, EncryptionMode, HashingMethod and HashSize

Method: Encrypt, Decrypt, Compare, Hash

How to use

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.