main_mce.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include "sizes.h"
#include "mceliece.h"
#include "params.h"
#include "precomp.h"

Include dependency graph for main_mce.c:

Go to the source code of this file.

Functions

__inline unsigned long long rdtsc ()
int check (unsigned char *cleartext, unsigned char *plaintext, int r)
int main (int argc, char **argv)


Function Documentation

int check ( unsigned char *  cleartext,
unsigned char *  plaintext,
int  r 
)

Definition at line 35 of file main_mce.c.

References CLEARTEXT_BYTES, and CLEARTEXT_LENGTH.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 63 of file main_mce.c.

References check(), CIPHERTEXT_BYTES, CLEARTEXT_BYTES, CLEARTEXT_LENGTH, decrypt_block(), encrypt_block(), ERROR_WEIGHT, keypair(), LOG_LENGTH, PUBLICKEY_BYTES, rdtsc(), and SECRETKEY_BYTES.

Here is the call graph for this function:

__inline unsigned long long rdtsc (  ) 

Definition at line 28 of file main_mce.c.


This work was partially suported by Europian Network of Excellence, ECRYPT; ECRYPT