OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright (c) 2007 NVIDIA Corporation. All rights reserved. | |
3 * | |
4 * NVIDIA Corporation and its licensors retain all intellectual property | |
5 * and proprietary rights in and to this software, related documentation | |
6 * and any modifications thereto. Any use, reproduction, disclosure or | |
7 * distribution of this software and related documentation without an express | |
8 * license agreement from NVIDIA Corporation is strictly prohibited. | |
9 */ | |
robotboy
2010/11/19 22:48:55
This also needs to have a GPL v2 header.
| |
10 | |
11 #ifndef INCLUDED_NVAES_REF_H | |
12 #define INCLUDED_NVAES_REF_H | |
13 | |
14 #include "asm/arch/nvcommon.h" | |
15 | |
16 #if defined(__cplusplus) | |
17 extern "C" | |
18 { | |
19 #endif | |
20 | |
21 #define NVAES_STATECOLS 4 // number of columns in the state & expanded key | |
22 #define NVAES_KEYCOLS 4 // number of columns in a key | |
23 #define NVAES_ROUNDS 10 // number of rounds in encryption | |
24 | |
25 void nv_aes_expand_key(NvU8 *key, NvU8 *expkey); | |
26 void nv_aes_encrypt(NvU8 *in, NvU8 *expkey, NvU8 *out); | |
27 void nv_aes_decrypt(NvU8 *in, NvU8 *expkey, NvU8 *out); | |
28 | |
29 #if defined(__cplusplus) | |
30 } | |
31 #endif | |
32 | |
33 #endif // INCLUDED_NVAES_REF_H | |
OLD | NEW |