GNU Linux-libre 4.14.265-gnu1
[releases.git] / drivers / staging / ccree / hash_defs.h
1 /*
2  * Copyright (C) 2012-2017 ARM Limited or its affiliates.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, see <http://www.gnu.org/licenses/>.
15  */
16
17 #ifndef _HASH_DEFS_H_
18 #define _HASH_DEFS_H_
19
20 #include "cc_crypto_ctx.h"
21
22 enum cc_hash_conf_pad {
23         HASH_PADDING_DISABLED = 0,
24         HASH_PADDING_ENABLED = 1,
25         HASH_DIGEST_RESULT_LITTLE_ENDIAN = 2,
26         HASH_CONFIG1_PADDING_RESERVE32 = S32_MAX,
27 };
28
29 enum cc_hash_cipher_pad {
30         DO_NOT_PAD = 0,
31         DO_PAD = 1,
32         HASH_CIPHER_DO_PADDING_RESERVE32 = S32_MAX,
33 };
34
35 #endif /*_HASH_DEFS_H_*/
36