#include #include #include #include #include "mceliece.h" /* -lmceliece */ #include "limits.inc" static unsigned char pk[mceliece6960119pc_PUBLICKEYBYTES]; static unsigned char c[mceliece6960119pc_CIPHERTEXTBYTES]; static unsigned char k[mceliece6960119pc_BYTES]; static void die_temp(const char *why,const char *why2) { if (why2) fprintf(stderr,"mceliece6960119pc-enc: fatal: %s: %s\n",why,why2); else fprintf(stderr,"mceliece6960119pc-enc: fatal: %s\n",why); exit(111); } int main() { FILE *pkfile; FILE *kfile; limits(); pkfile = fdopen(4,"r"); if (!pkfile) { fprintf(stderr,"mceliece6960119pc-enc: usage: mceliece6960119pc-enc >ciphertext 7>sessionkey 4ciphertext 7>sessionkey 4