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

Subversion Repositories csa

[/] [csa/] [trunk/] [sw_sim/] [key_schedule.c] - Rev 48

Compare with Previous | Blame | View Log

/* this file simulates the key_schedule funtion */
 
#include <stdio.h>
#include <string.h>
#include "misc.h"
 
extern void key_schedule(unsigned char *CK, int *kk) ;
 
int main()
{
        unsigned char CK[8];
        int           kk[57];
 
        READ_DATA(CK,8);
 
        key_schedule(CK,kk);
 
        /*WRITE_DATA(&(kk[1]),56);*/ /* note: can not write this array once in here*/
        {
                int i ;
                for(i=0;i<56;i++)
                        WRITE_DATA(&kk[1+i],1);
        }
        return 0;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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