My Project
Loading...
Searching...
No Matches
ti-hash.h
1/* port/ti/ti-hash.h
2 *
3 * Copyright (C) 2006-2020 wolfSSL Inc.
4 *
5 * This file is part of wolfSSL.
6 *
7 * wolfSSL is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * wolfSSL is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20 */
21
22
23#ifndef WOLF_CRYPT_TI_HASH_H
24#define WOLF_CRYPT_TI_HASH_H
25
27
28#ifndef WOLFSSL_TI_INITBUFF
29 #define WOLFSSL_TI_INITBUFF 64
30#endif
31
32#ifndef WOLFSSL_MAX_HASH_SIZE
33 #define WOLFSSL_MAX_HASH_SIZE 64
34#endif
35
36#define WOLFSSL_NO_HASH_RAW
37
38typedef struct {
39 byte *msg;
40 word32 used;
41 word32 len;
42 byte hash[WOLFSSL_MAX_HASH_SIZE];
44
45
46#ifndef TI_HASH_TEST
47
48#if !defined(NO_MD5)
49 typedef wolfssl_TI_Hash wc_Md5;
50#endif
51#if !defined(NO_SHA)
52 typedef wolfssl_TI_Hash wc_Sha;
53#endif
54#if !defined(NO_SHA256)
56#endif
57#if defined(WOLFSSL_SHA224)
59#endif
60
61#endif /* !TI_HASH_TEST */
62
63#endif /* WOLF_CRYPT_TI_HASH_H */
Definition md5.h:79
Definition sha256.h:132
Definition wolfcaam_sha.h:68
Definition ti-hash.h:38