source: UsbWattMeter/trunk/wolfssl-3.7.0/wolfssl/wolfcrypt/misc.h@ 167

Last change on this file since 167 was 167, checked in by coas-nagasima, 8 years ago

MIMEにSJISを設定

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr; charset=SHIFT_JIS
File size: 1.8 KB
Line 
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
36WOLFSSL_LOCAL
37word32 rotlFixed(word32, word32);
38WOLFSSL_LOCAL
39word32 rotrFixed(word32, word32);
40
41WOLFSSL_LOCAL
42word32 ByteReverseWord32(word32);
43WOLFSSL_LOCAL
44void ByteReverseWords(word32*, const word32*, word32);
45
46WOLFSSL_LOCAL
47void XorWords(wolfssl_word*, const wolfssl_word*, word32);
48WOLFSSL_LOCAL
49void xorbuf(void*, const void*, word32);
50
51WOLFSSL_LOCAL
52void ForceZero(const void*, word32);
53
54WOLFSSL_LOCAL
55int ConstantCompare(const byte*, const byte*, int);
56
57#ifdef WORD64_AVAILABLE
58WOLFSSL_LOCAL
59word64 rotlFixed64(word64, word64);
60WOLFSSL_LOCAL
61word64 rotrFixed64(word64, word64);
62
63WOLFSSL_LOCAL
64word64 ByteReverseWord64(word64);
65WOLFSSL_LOCAL
66void 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
Note: See TracBrowser for help on using the repository browser.