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

Unified 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: Add CONFIG_TEGRA2_LP0 to support LP0 conditionally 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 side-by-side diff with in-line comments
Download patch
Index: board/tegra2/common/crypto/nvaes_ref.h
diff --git a/board/tegra2/common/crypto/nvaes_ref.h b/board/tegra2/common/crypto/nvaes_ref.h
new file mode 100755
index 0000000000000000000000000000000000000000..9899b43e197e64a749b847c89504010506f3fa77
--- /dev/null
+++ b/board/tegra2/common/crypto/nvaes_ref.h
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2007 NVIDIA Corporation. All rights reserved.
+ *
+ * NVIDIA Corporation and its licensors retain all intellectual property
+ * and proprietary rights in and to this software, related documentation
+ * and any modifications thereto. Any use, reproduction, disclosure or
+ * distribution of this software and related documentation without an express
+ * license agreement from NVIDIA Corporation is strictly prohibited.
+ */
+
+#ifndef INCLUDED_NVAES_REF_H
+#define INCLUDED_NVAES_REF_H
+
+#include "asm/arch/nvcommon.h"
+
+#if defined(__cplusplus)
+extern "C"
+{
+#endif
+
+#define NVAES_STATECOLS 4 // number of columns in the state & expanded key
+#define NVAES_KEYCOLS 4 // number of columns in a key
+#define NVAES_ROUNDS 10 // number of rounds in encryption
+
+void nv_aes_expand_key(NvU8 *key, NvU8 *expkey);
+void nv_aes_encrypt(NvU8 *in, NvU8 *expkey, NvU8 *out);
+void nv_aes_decrypt(NvU8 *in, NvU8 *expkey, NvU8 *out);
+
+#if defined(__cplusplus)
+}
+#endif
+
+#endif // INCLUDED_NVAES_REF_H

Powered by Google App Engine
This is Rietveld 408576698