]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Source/WolfSSL/wolfssl/wolfcrypt/misc.h
Update WolfSSL library to the latest version.
[freertos] / FreeRTOS-Plus / Source / WolfSSL / wolfssl / wolfcrypt / misc.h
1 /* misc.h
2  *
3  * Copyright (C) 2006-2015 wolfSSL Inc.
4  *
5  * This file is part of wolfSSL. (formerly known as CyaSSL)
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-1301, USA
20  */
21
22
23 #ifndef WOLF_CRYPT_MISC_H
24 #define WOLF_CRYPT_MISC_H
25
26
27 #include <wolfssl/wolfcrypt/types.h>
28
29
30 #ifdef __cplusplus
31     extern "C" {
32 #endif
33
34
35 #ifdef NO_INLINE
36 WOLFSSL_LOCAL
37 word32 rotlFixed(word32, word32);
38 WOLFSSL_LOCAL
39 word32 rotrFixed(word32, word32);
40
41 WOLFSSL_LOCAL
42 word32 ByteReverseWord32(word32);
43 WOLFSSL_LOCAL
44 void   ByteReverseWords(word32*, const word32*, word32);
45
46 WOLFSSL_LOCAL
47 void XorWords(wolfssl_word*, const wolfssl_word*, word32);
48 WOLFSSL_LOCAL
49 void xorbuf(void*, const void*, word32);
50
51 WOLFSSL_LOCAL
52 void ForceZero(const void*, word32);
53
54 WOLFSSL_LOCAL
55 int ConstantCompare(const byte*, const byte*, int);
56
57 #ifdef WORD64_AVAILABLE
58 WOLFSSL_LOCAL
59 word64 rotlFixed64(word64, word64);
60 WOLFSSL_LOCAL
61 word64 rotrFixed64(word64, word64);
62
63 WOLFSSL_LOCAL
64 word64 ByteReverseWord64(word64);
65 WOLFSSL_LOCAL
66 void   ByteReverseWords64(word64*, const word64*, word32);
67 #endif /* WORD64_AVAILABLE */
68
69 #endif /* NO_INLINE */
70
71
72 #ifdef __cplusplus
73     }   /* extern "C" */
74 #endif
75
76
77 #endif /* WOLF_CRYPT_MISC_H */
78