[svn] / ecrypt / trunk / submissions / mir-1 / vc / unused / mir1_api.cpp  

svn: ecrypt/trunk/submissions/mir-1/vc/unused/mir1_api.cpp

File: [svn] / ecrypt / trunk / submissions / mir-1 / vc / unused / mir1_api.cpp (download) (as text)
Revision: 1, Sun Jun 26 18:46:26 2005 UTC (7 years, 11 months ago) by cdecanni
File size: 414 byte(s)
* imported original ECRYPT submissions after first automatic cleanup.
// mir1_api.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "mir1.h"


int _tmain(int argc, _TCHAR* argv[])
{
	uc key[16]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
	uc iv[8]={0,1,2,3,4,5,6,7};
	uc keystream[1024];
	ECRYPT_ctx state;

	ECRYPT_keysetup(&state, key, 128, 64);
	ECRYPT_ivsetup(&state, iv);
    ECRYPT_keystream_bytes(&state, keystream, 1024);

	return 0;
}


eSTREAM Project

Powered by ViewCVS 1.0-dev
(Powered by Apache)

ViewCVS and CVS Help