Chromium Code Reviews| 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. |
| + */ |
|
robotboy
2010/11/19 22:48:55
This also needs to have a GPL v2 header.
|
| + |
| +#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 |