]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Source/CyaSSL/cyassl/ctaocrypt/misc.h
Add FreeRTOS-Plus directory with new directory structure so it matches the FreeRTOS...
[freertos] / FreeRTOS-Plus / Source / CyaSSL / cyassl / ctaocrypt / misc.h
1 /* misc.h
2  *
3  * Copyright (C) 2006-2012 Sawtooth Consulting Ltd.
4  *
5  * This file is part of CyaSSL.
6  *
7  * CyaSSL 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  * CyaSSL 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20  */
21
22
23 #ifndef CTAO_CRYPT_MISC_H
24 #define CTAO_CRYPT_MISC_H
25
26
27 #include <cyassl/ctaocrypt/types.h>
28
29
30 #ifdef __cplusplus
31     extern "C" {
32 #endif
33
34
35 #ifdef NO_INLINE
36 CYASSL_LOCAL
37 word32 rotlFixed(word32, word32);
38 CYASSL_LOCAL
39 word32 rotrFixed(word32, word32);
40
41 CYASSL_LOCAL
42 word32 ByteReverseWord32(word32);
43 CYASSL_LOCAL
44 void   ByteReverseWords(word32*, const word32*, word32);
45 CYASSL_LOCAL
46 void   ByteReverseBytes(byte*, const byte*, word32);
47
48 CYASSL_LOCAL
49 void XorWords(word*, const word*, word32);
50 CYASSL_LOCAL
51 void xorbuf(byte*, const byte*, word32);
52
53 #ifdef WORD64_AVAILABLE
54 CYASSL_LOCAL
55 word64 rotlFixed64(word64, word64);
56 CYASSL_LOCAL
57 word64 rotrFixed64(word64, word64);
58
59 CYASSL_LOCAL
60 word64 ByteReverseWord64(word64);
61 CYASSL_LOCAL
62 void   ByteReverseWords64(word64*, const word64*, word32);
63 #endif /* WORD64_AVAILABLE */
64
65 #endif /* NO_INLINE */
66
67
68 #ifdef __cplusplus
69     }   /* extern "C" */
70 #endif
71
72
73 #endif /* CTAO_CRYPT_MISC_H */
74