Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: board/tegra2/common/crypto/nvaes_ref.h

Issue 4841001: Tegra2: implement Warmboot code and lp0_vec (Closed) Base URL: http://git.chromium.org/git/u-boot-next.git@chromeos-v2010.09
Patch Set: More changes based on Tom's comments Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698