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

Subversion Repositories avs_aes

[/] [avs_aes/] [trunk/] [sw/] [avs_aes.h] - Blame information for rev 5

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 ruschi
#ifndef AVS_AES_H_
2
#define AVS_AES_H_
3
 
4
 
5
#define KEYWORDS        8
6
#define AES_BASEADDR    0x40000 
7
#define KEY_ADDR        AES_BASEADDR+0x00
8
#define DATA_ADDR       AES_BASEADDR+0x08
9
#define RESULT_ADDR     AES_BASEADDR+0x10
10
#define AESCTRLWD       AES_BASEADDR+0x18 
11
 
12
typedef struct{
13
        volatile unsigned int* key;
14
        volatile unsigned int* payload;
15
        volatile unsigned int* result;
16
        volatile unsigned int* control;
17
} avs_aes_handle;
18
 
19
 
20
void avs_aes_init(avs_aes_handle* context);
21
void avs_aes_setKey(avs_aes_handle* context, unsigned int* key);
22
void avs_aes_setPayload(avs_aes_handle* context, unsigned int* payload);
23
void avs_aes_setKeyvalid(avs_aes_handle* context);
24
 
25
void avs_aes_encrypt(avs_aes_handle* context);
26
void avs_aes_decrypt( avs_aes_handle* context);
27
int avs_aes_isBusy(avs_aes_handle* context);
28
 
29
 
30
#endif /*AVS_AES_H_*/

powered by: WebSVN 2.1.0

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