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

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 GPL headers & fix some 80-column issues 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
« no previous file with comments | « board/tegra2/common/crypto/crypto.c ('k') | board/tegra2/harmony/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8aac170a517b3c35662df9c46d935c388fd2bd92
--- /dev/null
+++ b/board/tegra2/common/crypto/nvaes_ref.h
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) 2007 NVIDIA Corporation. All rights reserved.
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#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
« no previous file with comments | « board/tegra2/common/crypto/crypto.c ('k') | board/tegra2/harmony/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698