#include #include #include #include int main() { /* create a file with "encrypted" data */ FILE *out, *in; unsigned char clear[8] = "ABCDEFGH"; unsigned char key[8] = "IxD8Lq1K"; unsigned char crypt[11] = {0}; int blocks = 24; int i = 0; if((out = fopen("teststream.out", "wb+")) == NULL) { fprintf(stderr, "oops, could not open file!\n"); return 1; } Pcpstream *pout = ps_new_file(out); ps_armor(pout); /* "encrypt" a couple of times into the file */ for(i=0; i