[WATCHDOG] iTCO_wdt.c - fix ACPI Base register
[linux-2.6/zen-sources.git] / drivers / crypto / geode-aes.h
blob8003a36f3a83de6a37e2d45d5b21dd059f992366
1 /* Copyright (C) 2003-2006, Advanced Micro Devices, Inc.
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 */
9 #ifndef _GEODE_AES_H_
10 #define _GEODE_AES_H_
12 #define AES_KEY_LENGTH 16
13 #define AES_IV_LENGTH 16
15 #define AES_MIN_BLOCK_SIZE 16
17 #define AES_MODE_ECB 0
18 #define AES_MODE_CBC 1
20 #define AES_DIR_DECRYPT 0
21 #define AES_DIR_ENCRYPT 1
23 #define AES_FLAGS_USRKEY (1 << 0)
24 #define AES_FLAGS_COHERENT (1 << 1)
26 struct geode_aes_op {
28 void *src;
29 void *dst;
31 u32 mode;
32 u32 dir;
33 u32 flags;
34 int len;
36 u8 key[AES_KEY_LENGTH];
37 u8 iv[AES_IV_LENGTH];
40 #endif