• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * \file md5.h
3  *
4  * \brief MD5 message digest algorithm (hash function)
5  *
6  * \warning   MD5 is considered a weak message digest and its use constitutes a
7  *            security risk. We recommend considering stronger message
8  *            digests instead.
9  */
10 /*
11  *  Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
12  *  SPDX-License-Identifier: Apache-2.0
13  *
14  *  Licensed under the Apache License, Version 2.0 (the "License"); you may
15  *  not use this file except in compliance with the License.
16  *  You may obtain a copy of the License at
17  *
18  *  http://www.apache.org/licenses/LICENSE-2.0
19  *
20  *  Unless required by applicable law or agreed to in writing, software
21  *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
22  *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23  *  See the License for the specific language governing permissions and
24  *  limitations under the License.
25  *
26  *  This file is part of mbed TLS (https://tls.mbed.org)
27  */
28 #ifndef MBEDTLS_MD5_ALT_H
29 #define MBEDTLS_MD5_ALT_H
30 
31 #if defined(MBEDTLS_MD5_ALT)
32 
33 /**
34  * \brief          MD5 context structure
35  *
36  * \warning        MD5 is considered a weak message digest and its use
37  *                 constitutes a security risk. We recommend considering
38  *                 stronger message digests instead.
39  *
40  */
41 typedef struct mbedtls_md5_context
42 {
43     uint32_t total[2];          /*!< number of bytes processed  */
44     uint32_t state[4];          /*!< intermediate digest state  */
45     unsigned char buffer[64];   /*!< data block being processed */
46 }
47 mbedtls_md5_context;
48 
49 #endif /* MBEDTLS_MD5_ALT */
50 
51 #endif /* mbedtls_md5_alt.h */
52