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

Subversion Repositories test_project

[/] [test_project/] [trunk/] [linux_sd_driver/] [drivers/] [crypto/] [geode-aes.h] - Blame information for rev 62

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 62 marcus.erl
/* Copyright (C) 2003-2006, Advanced Micro Devices, Inc.
2
 *
3
 * This program is free software; you can redistribute it and/or modify
4
 * it under the terms of the GNU General Public License as published by
5
 * the Free Software Foundation; either version 2 of the License, or
6
 * (at your option) any later version.
7
 */
8
 
9
#ifndef _GEODE_AES_H_
10
#define _GEODE_AES_H_
11
 
12
#define AES_KEY_LENGTH 16
13
#define AES_IV_LENGTH  16
14
 
15
#define AES_MIN_BLOCK_SIZE 16
16
 
17
#define AES_MODE_ECB 0
18
#define AES_MODE_CBC 1
19
 
20
#define AES_DIR_DECRYPT 0
21
#define AES_DIR_ENCRYPT 1
22
 
23
#define AES_FLAGS_HIDDENKEY (1 << 0)
24
 
25
struct geode_aes_op {
26
 
27
        void *src;
28
        void *dst;
29
 
30
        u32 mode;
31
        u32 dir;
32
        u32 flags;
33
        int len;
34
 
35
        u8 key[AES_KEY_LENGTH];
36
        u8 iv[AES_IV_LENGTH];
37
};
38
 
39
#endif

powered by: WebSVN 2.1.0

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