ReactOS 0.4.15-dev-5666-gc548b97
md4.h
Go to the documentation of this file.
1
10/*
11 * Copyright The Mbed TLS Contributors
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 */
54#ifndef MBEDTLS_MD4_H
55#define MBEDTLS_MD4_H
56
57#if !defined(MBEDTLS_CONFIG_FILE)
58#include "config.h"
59#else
60#include MBEDTLS_CONFIG_FILE
61#endif
62
63#include <stddef.h>
64#include <stdint.h>
65
66/* MBEDTLS_ERR_MD4_HW_ACCEL_FAILED is deprecated and should not be used. */
67#define MBEDTLS_ERR_MD4_HW_ACCEL_FAILED -0x002D
69#ifdef __cplusplus
70extern "C" {
71#endif
72
73#if !defined(MBEDTLS_MD4_ALT)
74// Regular implementation
75//
76
85typedef struct mbedtls_md4_context
86{
89 unsigned char buffer[64];
90}
92
93#else /* MBEDTLS_MD4_ALT */
94#include "md4_alt.h"
95#endif /* MBEDTLS_MD4_ALT */
96
108
120
133 const mbedtls_md4_context *src );
134
147
163 const unsigned char *input,
164 size_t ilen );
165
180 unsigned char output[16] );
181
196 const unsigned char data[64] );
197
198#if !defined(MBEDTLS_DEPRECATED_REMOVED)
199#if defined(MBEDTLS_DEPRECATED_WARNING)
200#define MBEDTLS_DEPRECATED __attribute__((deprecated))
201#else
202#define MBEDTLS_DEPRECATED
203#endif
217
233 const unsigned char *input,
234 size_t ilen );
235
250 unsigned char output[16] );
251
266 const unsigned char data[64] );
267
268#undef MBEDTLS_DEPRECATED
269#endif /* !MBEDTLS_DEPRECATED_REMOVED */
270
285int mbedtls_md4_ret( const unsigned char *input,
286 size_t ilen,
287 unsigned char output[16] );
288
289#if !defined(MBEDTLS_DEPRECATED_REMOVED)
290#if defined(MBEDTLS_DEPRECATED_WARNING)
291#define MBEDTLS_DEPRECATED __attribute__((deprecated))
292#else
293#define MBEDTLS_DEPRECATED
294#endif
309MBEDTLS_DEPRECATED void mbedtls_md4( const unsigned char *input,
310 size_t ilen,
311 unsigned char output[16] );
312
313#undef MBEDTLS_DEPRECATED
314#endif /* !MBEDTLS_DEPRECATED_REMOVED */
315
316#if defined(MBEDTLS_SELF_TEST)
317
328int mbedtls_md4_self_test( int verbose );
329
330#endif /* MBEDTLS_SELF_TEST */
331
332#ifdef __cplusplus
333}
334#endif
335
336#endif /* mbedtls_md4.h */
UINT32 uint32_t
Definition: types.h:75
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLenum src
Definition: glext.h:6340
GLuint buffer
Definition: glext.h:5915
GLenum GLenum dst
Definition: glext.h:6340
GLenum GLenum GLenum input
Definition: glext.h:9031
int mbedtls_md4_ret(const unsigned char *input, size_t ilen, unsigned char output[16])
Output = MD4( input buffer )
MBEDTLS_DEPRECATED void mbedtls_md4_process(mbedtls_md4_context *ctx, const unsigned char data[64])
MD4 process data block (internal use only)
int mbedtls_md4_starts_ret(mbedtls_md4_context *ctx)
MD4 context setup.
void mbedtls_md4_free(mbedtls_md4_context *ctx)
Clear MD4 context.
int mbedtls_md4_update_ret(mbedtls_md4_context *ctx, const unsigned char *input, size_t ilen)
MD4 process buffer.
#define MBEDTLS_DEPRECATED
Definition: md4.h:293
int mbedtls_md4_finish_ret(mbedtls_md4_context *ctx, unsigned char output[16])
MD4 final digest.
MBEDTLS_DEPRECATED void mbedtls_md4_finish(mbedtls_md4_context *ctx, unsigned char output[16])
MD4 final digest.
void mbedtls_md4_init(mbedtls_md4_context *ctx)
Initialize MD4 context.
void mbedtls_md4_clone(mbedtls_md4_context *dst, const mbedtls_md4_context *src)
Clone (the state of) an MD4 context.
MBEDTLS_DEPRECATED void mbedtls_md4_update(mbedtls_md4_context *ctx, const unsigned char *input, size_t ilen)
MD4 process buffer.
int mbedtls_internal_md4_process(mbedtls_md4_context *ctx, const unsigned char data[64])
MD4 process data block (internal use only)
MBEDTLS_DEPRECATED void mbedtls_md4(const unsigned char *input, size_t ilen, unsigned char output[16])
Output = MD4( input buffer )
MBEDTLS_DEPRECATED void mbedtls_md4_starts(mbedtls_md4_context *ctx)
MD4 context setup.
#define verbose
Definition: rosglue.h:36
MD4 context structure.
Definition: md4.h:86
uint32_t total[2]
Definition: md4.h:87
uint32_t state[4]
Definition: md4.h:88