URL
https://opencores.org/ocsvn/csa/csa/trunk
Subversion Repositories csa
[/] [csa/] [trunk/] [sw_sim/] [decrypt.c] - Rev 37
Go to most recent revision | Compare with Previous | Blame | View Log
/* this file simulates the decrypt function */ #include <stdio.h> #include <string.h> #include "misc.h" #include "csa.h" int main() { struct key key; unsigned char cws[16]; unsigned char encrypted[188]; unsigned char decrypted[188]; READ_DATA(cws,16); READ_DATA(encrypted,188); set_cws(cws,&key); decrypt(&key,encrypted,decrypted); DEBUG_OUTPUT_ARR(decrypted,64); WRITE_DATA(decrypted,188); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log