summaryrefslogtreecommitdiffstats
path: root/scripts/tegra/nvaes_ref.h
blob: 7a7e5ec3bf6577b7aba8a9e7f800b3976adfe022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0-only */
/* SPDX-FileCopyrightText: 2012 NVIDIA CORPORATION */

#include "cbootimage.h"
#include "string.h"

#ifndef INCLUDED_NVAES_REF_H
#define INCLUDED_NVAES_REF_H

#define NVAES_STATECOLS	4
#define NVAES_KEYCOLS	4
#define NVAES_ROUNDS	10

void nv_aes_expand_key(u_int8_t *key, u_int8_t *expkey);
void nv_aes_encrypt(u_int8_t *in,
		u_int8_t *expkey,
		u_int8_t *out);

#endif // INCLUDED_NVAES_REF_H