OpenCores
URL https://opencores.org/ocsvn/csa/csa/trunk

Subversion Repositories csa

[/] [csa/] [trunk/] [sw_sim/] [key_schedule.c] - Blame information for rev 48

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 13 simon111
/* this file simulates the key_schedule funtion */
2
 
3
#include <stdio.h>
4
#include <string.h>
5 48 simon111
#include "misc.h"
6 13 simon111
 
7
extern void key_schedule(unsigned char *CK, int *kk) ;
8
 
9
int main()
10
{
11
        unsigned char CK[8];
12
        int           kk[57];
13
 
14 48 simon111
        READ_DATA(CK,8);
15
 
16 13 simon111
        key_schedule(CK,kk);
17 48 simon111
 
18
        /*WRITE_DATA(&(kk[1]),56);*/ /* note: can not write this array once in here*/
19 13 simon111
        {
20 48 simon111
                int i ;
21
                for(i=0;i<56;i++)
22
                        WRITE_DATA(&kk[1+i],1);
23 13 simon111
        }
24
        return 0;
25
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.