ReactOS  0.4.14-dev-52-g6116262
md_internal.h
Go to the documentation of this file.
1 
10 /*
11  * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
12  * SPDX-License-Identifier: GPL-2.0
13  *
14  * This program is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation; either version 2 of the License, or
17  * (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License along
25  * with this program; if not, write to the Free Software Foundation, Inc.,
26  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27  *
28  * This file is part of mbed TLS (https://tls.mbed.org)
29  */
30 #ifndef MBEDTLS_MD_WRAP_H
31 #define MBEDTLS_MD_WRAP_H
32 
33 #if !defined(MBEDTLS_CONFIG_FILE)
34 #include "config.h"
35 #else
36 #include MBEDTLS_CONFIG_FILE
37 #endif
38 
39 #include "md.h"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
50 {
53 
55  const char * name;
56 
58  int size;
59 
62 
64  int (*starts_func)( void *ctx );
65 
67  int (*update_func)( void *ctx, const unsigned char *input, size_t ilen );
68 
70  int (*finish_func)( void *ctx, unsigned char *output );
71 
73  int (*digest_func)( const unsigned char *input, size_t ilen,
74  unsigned char *output );
75 
77  void * (*ctx_alloc_func)( void );
78 
80  void (*ctx_free_func)( void *ctx );
81 
83  void (*clone_func)( void *dst, const void *src );
84 
86  int (*process_func)( void *ctx, const unsigned char *input );
87 };
88 
89 #if defined(MBEDTLS_MD2_C)
90 extern const mbedtls_md_info_t mbedtls_md2_info;
91 #endif
92 #if defined(MBEDTLS_MD4_C)
93 extern const mbedtls_md_info_t mbedtls_md4_info;
94 #endif
95 #if defined(MBEDTLS_MD5_C)
97 #endif
98 #if defined(MBEDTLS_RIPEMD160_C)
100 #endif
101 #if defined(MBEDTLS_SHA1_C)
103 #endif
104 #if defined(MBEDTLS_SHA256_C)
107 #endif
108 #if defined(MBEDTLS_SHA512_C)
111 #endif
112 
113 #ifdef __cplusplus
114 }
115 #endif
116 
117 #endif /* MBEDTLS_MD_WRAP_H */
const mbedtls_md_info_t mbedtls_sha512_info
const mbedtls_md_info_t mbedtls_sha256_info
static UCHAR ULONG UCHAR ULONG UCHAR * output
Definition: bcrypt.c:29
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
void(* clone_func)(void *dst, const void *src)
Definition: md_internal.h:83
const mbedtls_md_info_t mbedtls_sha1_info
int(* finish_func)(void *ctx, unsigned char *output)
Definition: md_internal.h:70
const char * name
Definition: md_internal.h:55
const mbedtls_md_info_t mbedtls_sha224_info
void(* ctx_free_func)(void *ctx)
Definition: md_internal.h:80
const mbedtls_md_info_t mbedtls_sha384_info
int(* process_func)(void *ctx, const unsigned char *input)
Definition: md_internal.h:86
const mbedtls_md_info_t mbedtls_md5_info
int(* digest_func)(const unsigned char *input, size_t ilen, unsigned char *output)
Definition: md_internal.h:73
const mbedtls_md_info_t mbedtls_ripemd160_info
GLenum src
Definition: glext.h:6340
int(* update_func)(void *ctx, const unsigned char *input, size_t ilen)
Definition: md_internal.h:67
The generic message-digest wrapper.
GLenum GLenum GLenum input
Definition: glext.h:9031
GLenum GLenum dst
Definition: glext.h:6340
mbedtls_md_type_t
Enumeration of supported message digests.
Definition: md.h:58
int(* starts_func)(void *ctx)
Definition: md_internal.h:64
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
mbedtls_md_type_t type
Definition: md_internal.h:52