svn: ecrypt/trunk/benchmarks/copy/copy.c
File:
[svn] /
ecrypt /
trunk /
benchmarks /
copy / copy.c
(
download)
(
as text)
Revision:
42,
Mon Aug 1 17:15:29 2005 UTC (7 years, 9 months ago) by
cdecanni
File size: 1006 byte(s)
* added RC4 implementation as benchmark.
* added dummy COPY cipher as benchmark.
/* copy.c */
/*
* COPY stream cipher (does nothing, but in an API compliant way)
*
* Author: Christophe De Canni\`ere, K.U.Leuven.
*/
/* ------------------------------------------------------------------------- */
#include "ecrypt-sync.h"
#include <string.h>
/* ------------------------------------------------------------------------- */
void ECRYPT_init(void)
{ }
/* ------------------------------------------------------------------------- */
void ECRYPT_keysetup(
ECRYPT_ctx* ctx,
const u8* key,
u32 keysize,
u32 ivsize)
{ }
/* ------------------------------------------------------------------------- */
void ECRYPT_ivsetup(
ECRYPT_ctx* ctx,
const u8* iv)
{ }
/* ------------------------------------------------------------------------- */
void ECRYPT_process_bytes(
int action,
ECRYPT_ctx* ctx,
const u8* input,
u8* output,
u32 msglen)
{
memmove(output, input, msglen);
}
/* ------------------------------------------------------------------------- */