wolfSSL SSL/TLS library, support up to TLS1.3
Embed:
(wiki syntax)
Show/hide line numbers
md4.h
00001 /* md4.h 00002 * 00003 * Copyright (C) 2006-2016 wolfSSL Inc. 00004 * 00005 * This file is part of wolfSSL. 00006 * 00007 * wolfSSL 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 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * wolfSSL 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 this program; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 00020 */ 00021 00022 00023 #ifndef WOLFSSL_MD4_H_ 00024 #define WOLFSSL_MD4_H_ 00025 00026 #include <wolfssl/wolfcrypt/settings.h> 00027 00028 #ifndef NO_MD4 00029 00030 #ifdef WOLFSSL_PREFIX 00031 #include "prefix_md4.h" 00032 #endif 00033 00034 #ifdef __cplusplus 00035 extern "C" { 00036 #endif 00037 00038 00039 typedef struct WOLFSSL_MD4_CTX { 00040 int buffer[32]; /* big enough to hold, check size in Init */ 00041 } WOLFSSL_MD4_CTX; 00042 00043 00044 WOLFSSL_API void wolfSSL_MD4_Init(WOLFSSL_MD4_CTX*); 00045 WOLFSSL_API void wolfSSL_MD4_Update(WOLFSSL_MD4_CTX*, const void*, unsigned long); 00046 WOLFSSL_API void wolfSSL_MD4_Final(unsigned char*, WOLFSSL_MD4_CTX*); 00047 00048 00049 typedef WOLFSSL_MD4_CTX MD4_CTX; 00050 00051 #define MD4_Init wolfSSL_MD4_Init 00052 #define MD4_Update wolfSSL_MD4_Update 00053 #define MD4_Final wolfSSL_MD4_Final 00054 00055 #ifdef __cplusplus 00056 } /* extern "C" */ 00057 #endif 00058 00059 #endif /* NO_MD4 */ 00060 00061 #endif /* WOLFSSL_MD4_H_ */ 00062 00063
Generated on Wed Jul 13 2022 01:38:42 by 1.7.2