ReactOS  0.4.15-dev-1201-gb2cf5a4
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: Apache-2.0 OR GPL-2.0-or-later
13  *
14  * This file is provided under the Apache License 2.0, or the
15  * GNU General Public License v2.0 or later.
16  *
17  * **********
18  * Apache License 2.0:
19  *
20  * Licensed under the Apache License, Version 2.0 (the "License"); you may
21  * not use this file except in compliance with the License.
22  * You may obtain a copy of the License at
23  *
24  * http://www.apache.org/licenses/LICENSE-2.0
25  *
26  * Unless required by applicable law or agreed to in writing, software
27  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
28  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29  * See the License for the specific language governing permissions and
30  * limitations under the License.
31  *
32  * **********
33  *
34  * **********
35  * GNU General Public License v2.0 or later:
36  *
37  * This program is free software; you can redistribute it and/or modify
38  * it under the terms of the GNU General Public License as published by
39  * the Free Software Foundation; either version 2 of the License, or
40  * (at your option) any later version.
41  *
42  * This program is distributed in the hope that it will be useful,
43  * but WITHOUT ANY WARRANTY; without even the implied warranty of
44  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45  * GNU General Public License for more details.
46  *
47  * You should have received a copy of the GNU General Public License along
48  * with this program; if not, write to the Free Software Foundation, Inc.,
49  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
50  *
51  * **********
52  *
53  * This file is part of mbed TLS (https://tls.mbed.org)
54  */
55 #ifndef MBEDTLS_MD_WRAP_H
56 #define MBEDTLS_MD_WRAP_H
57 
58 #if !defined(MBEDTLS_CONFIG_FILE)
59 #include "config.h"
60 #else
61 #include MBEDTLS_CONFIG_FILE
62 #endif
63 
64 #include "md.h"
65 
66 #ifdef __cplusplus
67 extern "C" {
68 #endif
69 
75 {
78 
80  const char * name;
81 
83  int size;
84 
87 
89  int (*starts_func)( void *ctx );
90 
92  int (*update_func)( void *ctx, const unsigned char *input, size_t ilen );
93 
95  int (*finish_func)( void *ctx, unsigned char *output );
96 
98  int (*digest_func)( const unsigned char *input, size_t ilen,
99  unsigned char *output );
100 
102  void * (*ctx_alloc_func)( void );
103 
105  void (*ctx_free_func)( void *ctx );
106 
108  void (*clone_func)( void *dst, const void *src );
109 
111  int (*process_func)( void *ctx, const unsigned char *input );
112 };
113 
114 #if defined(MBEDTLS_MD2_C)
115 extern const mbedtls_md_info_t mbedtls_md2_info;
116 #endif
117 #if defined(MBEDTLS_MD4_C)
118 extern const mbedtls_md_info_t mbedtls_md4_info;
119 #endif
120 #if defined(MBEDTLS_MD5_C)
122 #endif
123 #if defined(MBEDTLS_RIPEMD160_C)
125 #endif
126 #if defined(MBEDTLS_SHA1_C)
128 #endif
129 #if defined(MBEDTLS_SHA256_C)
132 #endif
133 #if defined(MBEDTLS_SHA512_C)
136 #endif
137 
138 #ifdef __cplusplus
139 }
140 #endif
141 
142 #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:108
const mbedtls_md_info_t mbedtls_sha1_info
int(* finish_func)(void *ctx, unsigned char *output)
Definition: md_internal.h:95
const char * name
Definition: md_internal.h:80
const mbedtls_md_info_t mbedtls_sha224_info
void(* ctx_free_func)(void *ctx)
Definition: md_internal.h:105
const mbedtls_md_info_t mbedtls_sha384_info
int(* process_func)(void *ctx, const unsigned char *input)
Definition: md_internal.h:111
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:98
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:92
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:83
int(* starts_func)(void *ctx)
Definition: md_internal.h:89
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
mbedtls_md_type_t type
Definition: md_internal.h:77