]>
Commit | Line | Data |
---|---|---|
50cfbbb7 GBY |
1 | /* |
2 | * Copyright (C) 2012-2017 ARM Limited or its affiliates. | |
c8f17865 | 3 | * |
50cfbbb7 GBY |
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. | |
c8f17865 | 7 | * |
50cfbbb7 GBY |
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. | |
c8f17865 | 12 | * |
50cfbbb7 GBY |
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 | ||
1c0cccd9 GBY |
17 | #ifndef _HASH_DEFS_H_ |
18 | #define _HASH_DEFS_H_ | |
50cfbbb7 GBY |
19 | |
20 | #include "cc_crypto_ctx.h" | |
21 | ||
84d69a7b | 22 | enum cc_hash_conf_pad { |
50cfbbb7 GBY |
23 | HASH_PADDING_DISABLED = 0, |
24 | HASH_PADDING_ENABLED = 1, | |
25 | HASH_DIGEST_RESULT_LITTLE_ENDIAN = 2, | |
a1ab41eb | 26 | HASH_CONFIG1_PADDING_RESERVE32 = S32_MAX, |
50cfbbb7 GBY |
27 | }; |
28 | ||
84d69a7b | 29 | enum cc_hash_cipher_pad { |
50cfbbb7 GBY |
30 | DO_NOT_PAD = 0, |
31 | DO_PAD = 1, | |
a1ab41eb | 32 | HASH_CIPHER_DO_PADDING_RESERVE32 = S32_MAX, |
50cfbbb7 GBY |
33 | }; |
34 | ||
1c0cccd9 | 35 | #endif /*_HASH_DEFS_H_*/ |
50cfbbb7 | 36 |