* 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 |
ViewCVS and CVS Help |