ssh

Dependents:   OS

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers misc.h Source File

misc.h

00001 /* misc.h
00002  *
00003  * Copyright (C) 2014-2016 wolfSSL Inc.
00004  *
00005  * This file is part of wolfSSH.
00006  *
00007  * wolfSSH is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 3 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * wolfSSH is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with wolfSSH.  If not, see <http://www.gnu.org/licenses/>.
00019  */
00020 
00021 #pragma once
00022 
00023 #ifndef WOLFSSH_MISC_H
00024 #define WOLFSSH_MISC_H
00025 
00026 
00027 #ifdef __cplusplus
00028     extern "C" {
00029 #endif
00030 
00031 
00032 #include <wolfssh/port.h>
00033 
00034 
00035 #ifdef NO_INLINE
00036 
00037 
00038 #ifndef min
00039 WOLFSSH_LOCAL word32 min(word32, word32);
00040 #endif /* min */
00041 
00042 WOLFSSH_LOCAL void ato32(const byte*, word32*);
00043 WOLFSSH_LOCAL void c32toa(word32, byte*);
00044 WOLFSSH_LOCAL void ForceZero(const void*, word32);
00045 WOLFSSH_LOCAL int ConstantCompare(const byte*, const byte*, word32);
00046 
00047 
00048 #endif /* NO_INLINE */
00049 
00050 
00051 #ifdef __cplusplus
00052     }   /* extern "C" */
00053 #endif
00054 
00055 
00056 #endif /* WOLFSSH_MISC_H */
00057