URL
https://opencores.org/ocsvn/csa/csa/trunk
[/] [csa/] [trunk/] [sw_sim/] [decrypt.c] - Diff between revs 18 and 22
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 18 |
Rev 22 |
Line 10... |
Line 10... |
{
|
{
|
struct key key;
|
struct key key;
|
unsigned char cws[16];
|
unsigned char cws[16];
|
unsigned char encrypted[188];
|
unsigned char encrypted[188];
|
unsigned char decrypted[188];
|
unsigned char decrypted[188];
|
READ_DATA(encrypted,188*8);
|
|
READ_DATA(cws,8*16);
|
READ_DATA(cws,8*16);
|
|
READ_DATA(encrypted,188*8);
|
set_cws(cws,&key);
|
set_cws(cws,&key);
|
decrypt(&key,encrypted,decrypted);
|
decrypt(&key,encrypted,decrypted);
|
|
DEBUG_OUTPUT_ARR(decrypted,64);
|
WRITE_DATA(decrypted,188*8);
|
WRITE_DATA(decrypted,188*8);
|
return 0;
|
return 0;
|
}
|
}
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.