blob: 0979dc0e386604e50a6758920d7e2382a72744af [file] [log] [blame]
Paul Bakker5121ce52009-01-03 21:22:43 +00001/**
Simon Butcher5b331b92016-01-03 16:14:14 +00002 * \file sha1.h
Paul Bakkere0ccd0a2009-01-04 16:27:10 +00003 *
Rose Zadik82741422018-03-27 12:49:48 +01004 * \brief This file contains SHA-1 definitions and functions.
5 *
Darryl Green11999bb2018-03-13 15:22:58 +00006 * The Secure Hash Algorithm 1 (SHA-1) cryptographic hash function is defined in
Rose Zadik82741422018-03-27 12:49:48 +01007 * <em>FIPS 180-4: Secure Hash Standard (SHS)</em>.
Hanno Beckerbbca8c52017-09-25 14:53:51 +01008 *
9 * \warning SHA-1 is considered a weak message digest and its use constitutes
10 * a security risk. We recommend considering stronger message
11 * digests instead.
Darryl Greena40a1012018-01-05 15:33:17 +000012 */
13/*
Rose Zadik44833d92018-01-26 08:41:09 +000014 * Copyright (C) 2006-2018, Arm Limited (or its affiliates), All Rights Reserved
Manuel Pégourié-Gonnard37ff1402015-09-04 14:21:07 +020015 * SPDX-License-Identifier: Apache-2.0
16 *
17 * Licensed under the Apache License, Version 2.0 (the "License"); you may
18 * not use this file except in compliance with the License.
19 * You may obtain a copy of the License at
20 *
21 * http://www.apache.org/licenses/LICENSE-2.0
22 *
23 * Unless required by applicable law or agreed to in writing, software
24 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
25 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26 * See the License for the specific language governing permissions and
27 * limitations under the License.
Paul Bakkerb96f1542010-07-18 20:36:00 +000028 *
Rose Zadik44833d92018-01-26 08:41:09 +000029 * This file is part of Mbed TLS (https://tls.mbed.org)
Paul Bakker5121ce52009-01-03 21:22:43 +000030 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020031#ifndef MBEDTLS_SHA1_H
32#define MBEDTLS_SHA1_H
Paul Bakker5121ce52009-01-03 21:22:43 +000033
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020034#if !defined(MBEDTLS_CONFIG_FILE)
Paul Bakker90995b52013-06-24 19:20:35 +020035#include "config.h"
Manuel Pégourié-Gonnardcef4ad22014-04-29 12:39:06 +020036#else
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020037#include MBEDTLS_CONFIG_FILE
Manuel Pégourié-Gonnardcef4ad22014-04-29 12:39:06 +020038#endif
Paul Bakker90995b52013-06-24 19:20:35 +020039
Rich Evans00ab4702015-02-06 13:43:58 +000040#include <stddef.h>
Manuel Pégourié-Gonnardab229102015-04-15 11:53:16 +020041#include <stdint.h>
Paul Bakker5c2364c2012-10-01 14:41:15 +000042
Ron Eldor9924bdc2018-10-04 10:59:13 +030043/* MBEDTLS_ERR_SHA1_HW_ACCEL_FAILED is deprecated and should not be used. */
Gilles Peskinea381fe82018-01-23 18:16:11 +010044#define MBEDTLS_ERR_SHA1_HW_ACCEL_FAILED -0x0035 /**< SHA-1 hardware accelerator failed */
Andres Amaya Garciac523e012018-12-10 10:11:47 +000045#define MBEDTLS_ERR_SHA1_BAD_INPUT_DATA -0x0073 /**< SHA-1 input data was malformed. */
Gilles Peskinea381fe82018-01-23 18:16:11 +010046
Paul Bakker407a0da2013-06-27 14:29:21 +020047#ifdef __cplusplus
48extern "C" {
49#endif
50
Ron Eldorb2aacec2017-05-18 16:53:08 +030051#if !defined(MBEDTLS_SHA1_ALT)
52// Regular implementation
53//
54
Paul Bakker5121ce52009-01-03 21:22:43 +000055/**
Rose Zadik44833d92018-01-26 08:41:09 +000056 * \brief The SHA-1 context structure.
Hanno Beckerbbca8c52017-09-25 14:53:51 +010057 *
58 * \warning SHA-1 is considered a weak message digest and its use
59 * constitutes a security risk. We recommend considering
60 * stronger message digests instead.
61 *
Paul Bakker5121ce52009-01-03 21:22:43 +000062 */
Dawid Drozd428cc522018-07-24 10:02:47 +020063typedef struct mbedtls_sha1_context
Paul Bakker5121ce52009-01-03 21:22:43 +000064{
Rose Zadik44833d92018-01-26 08:41:09 +000065 uint32_t total[2]; /*!< The number of Bytes processed. */
66 uint32_t state[5]; /*!< The intermediate digest state. */
67 unsigned char buffer[64]; /*!< The data block being processed. */
Paul Bakker5121ce52009-01-03 21:22:43 +000068}
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020069mbedtls_sha1_context;
Paul Bakker5121ce52009-01-03 21:22:43 +000070
Ron Eldorb2aacec2017-05-18 16:53:08 +030071#else /* MBEDTLS_SHA1_ALT */
72#include "sha1_alt.h"
73#endif /* MBEDTLS_SHA1_ALT */
74
Paul Bakker5121ce52009-01-03 21:22:43 +000075/**
Rose Zadik44833d92018-01-26 08:41:09 +000076 * \brief This function initializes a SHA-1 context.
Paul Bakker5b4af392014-06-26 12:09:34 +020077 *
Hanno Beckerbbca8c52017-09-25 14:53:51 +010078 * \warning SHA-1 is considered a weak message digest and its use
79 * constitutes a security risk. We recommend considering
80 * stronger message digests instead.
81 *
Rose Zadik82741422018-03-27 12:49:48 +010082 * \param ctx The SHA-1 context to initialize.
Hanno Becker5359ca82018-12-18 11:11:18 +000083 * This must not be \c NULL.
Rose Zadik82741422018-03-27 12:49:48 +010084 *
Paul Bakker5b4af392014-06-26 12:09:34 +020085 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020086void mbedtls_sha1_init( mbedtls_sha1_context *ctx );
Paul Bakker5b4af392014-06-26 12:09:34 +020087
88/**
Rose Zadik44833d92018-01-26 08:41:09 +000089 * \brief This function clears a SHA-1 context.
Paul Bakker5b4af392014-06-26 12:09:34 +020090 *
Hanno Beckerbbca8c52017-09-25 14:53:51 +010091 * \warning SHA-1 is considered a weak message digest and its use
92 * constitutes a security risk. We recommend considering
93 * stronger message digests instead.
94 *
Hanno Becker5359ca82018-12-18 11:11:18 +000095 * \param ctx The SHA-1 context to clear. This may be \c NULL,
96 * in which case this function does nothing. If it is
97 * not \c NULL, it must point to an initialized
98 * SHA-1 context.
Rose Zadik82741422018-03-27 12:49:48 +010099 *
Paul Bakker5b4af392014-06-26 12:09:34 +0200100 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200101void mbedtls_sha1_free( mbedtls_sha1_context *ctx );
Paul Bakker5b4af392014-06-26 12:09:34 +0200102
103/**
Rose Zadik44833d92018-01-26 08:41:09 +0000104 * \brief This function clones the state of a SHA-1 context.
Manuel Pégourié-Gonnard16d412f2015-07-06 15:26:26 +0200105 *
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100106 * \warning SHA-1 is considered a weak message digest and its use
107 * constitutes a security risk. We recommend considering
108 * stronger message digests instead.
109 *
Hanno Becker5359ca82018-12-18 11:11:18 +0000110 * \param dst The SHA-1 context to clone to. This must be initialized.
111 * \param src The SHA-1 context to clone from. This must be initialized.
Rose Zadik82741422018-03-27 12:49:48 +0100112 *
Manuel Pégourié-Gonnard16d412f2015-07-06 15:26:26 +0200113 */
114void mbedtls_sha1_clone( mbedtls_sha1_context *dst,
115 const mbedtls_sha1_context *src );
116
117/**
Rose Zadik44833d92018-01-26 08:41:09 +0000118 * \brief This function starts a SHA-1 checksum calculation.
Paul Bakker5121ce52009-01-03 21:22:43 +0000119 *
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100120 * \warning SHA-1 is considered a weak message digest and its use
121 * constitutes a security risk. We recommend considering
122 * stronger message digests instead.
123 *
Hanno Becker5359ca82018-12-18 11:11:18 +0000124 * \param ctx The SHA-1 context to initialize. This must be initialized.
Rose Zadik82741422018-03-27 12:49:48 +0100125 *
126 * \return \c 0 on success.
Hanno Becker5359ca82018-12-18 11:11:18 +0000127 * \return A negative error code on failure.
Rose Zadik82741422018-03-27 12:49:48 +0100128 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000129 */
Gilles Peskine9e4f77c2018-01-22 11:48:08 +0100130int mbedtls_sha1_starts_ret( mbedtls_sha1_context *ctx );
Paul Bakker5121ce52009-01-03 21:22:43 +0000131
132/**
Rose Zadik44833d92018-01-26 08:41:09 +0000133 * \brief This function feeds an input buffer into an ongoing SHA-1
134 * checksum calculation.
Paul Bakker5121ce52009-01-03 21:22:43 +0000135 *
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100136 * \warning SHA-1 is considered a weak message digest and its use
137 * constitutes a security risk. We recommend considering
138 * stronger message digests instead.
139 *
Hanno Becker5359ca82018-12-18 11:11:18 +0000140 * \param ctx The SHA-1 context. This must be initialized
141 * and have a hash operation started.
Rose Zadik82741422018-03-27 12:49:48 +0100142 * \param input The buffer holding the input data.
Hanno Becker5359ca82018-12-18 11:11:18 +0000143 * This must be a readable buffer of length \p ilen Bytes.
Hanno Becker5359ca82018-12-18 11:11:18 +0000144 * \param ilen The length of the input data \p input in Bytes.
Rose Zadik82741422018-03-27 12:49:48 +0100145 *
146 * \return \c 0 on success.
Hanno Becker5359ca82018-12-18 11:11:18 +0000147 * \return A negative error code on failure.
Paul Bakker5121ce52009-01-03 21:22:43 +0000148 */
Gilles Peskine9e4f77c2018-01-22 11:48:08 +0100149int mbedtls_sha1_update_ret( mbedtls_sha1_context *ctx,
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100150 const unsigned char *input,
151 size_t ilen );
Paul Bakker5121ce52009-01-03 21:22:43 +0000152
153/**
Rose Zadik44833d92018-01-26 08:41:09 +0000154 * \brief This function finishes the SHA-1 operation, and writes
155 * the result to the output buffer.
Paul Bakker5121ce52009-01-03 21:22:43 +0000156 *
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100157 * \warning SHA-1 is considered a weak message digest and its use
158 * constitutes a security risk. We recommend considering
159 * stronger message digests instead.
160 *
Hanno Becker5359ca82018-12-18 11:11:18 +0000161 * \param ctx The SHA-1 context to use. This must be initialized and
162 * have a hash operation started.
163 * This must not be \c NULL.
164 * \param output The SHA-1 checksum result. This must be a writable
165 * buffer of length \c 20 Bytes.
Rose Zadik82741422018-03-27 12:49:48 +0100166 *
167 * \return \c 0 on success.
Hanno Becker5359ca82018-12-18 11:11:18 +0000168 * \return A negative error code on failure.
Paul Bakker5121ce52009-01-03 21:22:43 +0000169 */
Gilles Peskine9e4f77c2018-01-22 11:48:08 +0100170int mbedtls_sha1_finish_ret( mbedtls_sha1_context *ctx,
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100171 unsigned char output[20] );
Paul Bakker5121ce52009-01-03 21:22:43 +0000172
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100173/**
Rose Zadik82741422018-03-27 12:49:48 +0100174 * \brief SHA-1 process data block (internal use only).
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100175 *
176 * \warning SHA-1 is considered a weak message digest and its use
177 * constitutes a security risk. We recommend considering
178 * stronger message digests instead.
179 *
Hanno Becker5359ca82018-12-18 11:11:18 +0000180 * \param ctx The SHA-1 context to use. This must be initialized and
181 * have a hash operation started.
182 * \param data The data block being processed. This must be a
183 * readable buffer of length \c 64 Bytes.
Rose Zadik82741422018-03-27 12:49:48 +0100184 *
185 * \return \c 0 on success.
Hanno Becker5359ca82018-12-18 11:11:18 +0000186 * \return A negative error code on failure.
Rose Zadik82741422018-03-27 12:49:48 +0100187 *
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100188 */
Andres Amaya Garciacccfe082017-06-28 10:36:39 +0100189int mbedtls_internal_sha1_process( mbedtls_sha1_context *ctx,
190 const unsigned char data[64] );
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100191
192#if !defined(MBEDTLS_DEPRECATED_REMOVED)
193#if defined(MBEDTLS_DEPRECATED_WARNING)
194#define MBEDTLS_DEPRECATED __attribute__((deprecated))
195#else
196#define MBEDTLS_DEPRECATED
197#endif
198/**
Rose Zadik82741422018-03-27 12:49:48 +0100199 * \brief This function starts a SHA-1 checksum calculation.
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100200 *
201 * \warning SHA-1 is considered a weak message digest and its use
202 * constitutes a security risk. We recommend considering
203 * stronger message digests instead.
204 *
Rose Zadik82741422018-03-27 12:49:48 +0100205 * \deprecated Superseded by mbedtls_sha1_starts_ret() in 2.7.0.
206 *
Hanno Becker5359ca82018-12-18 11:11:18 +0000207 * \param ctx The SHA-1 context to initialize. This must be initialized.
Rose Zadik82741422018-03-27 12:49:48 +0100208 *
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100209 */
Jaeden Amero041039f2018-02-19 15:28:08 +0000210MBEDTLS_DEPRECATED void mbedtls_sha1_starts( mbedtls_sha1_context *ctx );
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100211
212/**
Rose Zadik82741422018-03-27 12:49:48 +0100213 * \brief This function feeds an input buffer into an ongoing SHA-1
214 * checksum calculation.
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100215 *
216 * \warning SHA-1 is considered a weak message digest and its use
217 * constitutes a security risk. We recommend considering
218 * stronger message digests instead.
219 *
Rose Zadik82741422018-03-27 12:49:48 +0100220 * \deprecated Superseded by mbedtls_sha1_update_ret() in 2.7.0.
221 *
Hanno Becker5359ca82018-12-18 11:11:18 +0000222 * \param ctx The SHA-1 context. THis must be initialized and
223 * have a hash operation started.
Rose Zadik82741422018-03-27 12:49:48 +0100224 * \param input The buffer holding the input data.
Hanno Becker5359ca82018-12-18 11:11:18 +0000225 * This must be a readable buffer of length \p ilen Bytes.
Hanno Becker5359ca82018-12-18 11:11:18 +0000226 * \param ilen The length of the input data \p input in Bytes.
Rose Zadik82741422018-03-27 12:49:48 +0100227 *
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100228 */
Jaeden Amero041039f2018-02-19 15:28:08 +0000229MBEDTLS_DEPRECATED void mbedtls_sha1_update( mbedtls_sha1_context *ctx,
230 const unsigned char *input,
231 size_t ilen );
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100232
233/**
Rose Zadik82741422018-03-27 12:49:48 +0100234 * \brief This function finishes the SHA-1 operation, and writes
235 * the result to the output buffer.
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100236 *
237 * \warning SHA-1 is considered a weak message digest and its use
238 * constitutes a security risk. We recommend considering
239 * stronger message digests instead.
240 *
Rose Zadik82741422018-03-27 12:49:48 +0100241 * \deprecated Superseded by mbedtls_sha1_finish_ret() in 2.7.0.
242 *
Hanno Becker5359ca82018-12-18 11:11:18 +0000243 * \param ctx The SHA-1 context. This must be initialized and
244 * have a hash operation started.
Rose Zadik82741422018-03-27 12:49:48 +0100245 * \param output The SHA-1 checksum result.
Hanno Becker5359ca82018-12-18 11:11:18 +0000246 * This must be a writable buffer of length \c 20 Bytes.
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100247 */
Jaeden Amero041039f2018-02-19 15:28:08 +0000248MBEDTLS_DEPRECATED void mbedtls_sha1_finish( mbedtls_sha1_context *ctx,
249 unsigned char output[20] );
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100250
251/**
Rose Zadik82741422018-03-27 12:49:48 +0100252 * \brief SHA-1 process data block (internal use only).
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100253 *
254 * \warning SHA-1 is considered a weak message digest and its use
255 * constitutes a security risk. We recommend considering
256 * stronger message digests instead.
257 *
Rose Zadik82741422018-03-27 12:49:48 +0100258 * \deprecated Superseded by mbedtls_internal_sha1_process() in 2.7.0.
259 *
Hanno Becker5359ca82018-12-18 11:11:18 +0000260 * \param ctx The SHA-1 context. This must be initialized and
261 * have a hash operation started.
Rose Zadik82741422018-03-27 12:49:48 +0100262 * \param data The data block being processed.
Hanno Becker5359ca82018-12-18 11:11:18 +0000263 * This must be a readable buffer of length \c 64 bytes.
Rose Zadik82741422018-03-27 12:49:48 +0100264 *
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100265 */
Jaeden Amero041039f2018-02-19 15:28:08 +0000266MBEDTLS_DEPRECATED void mbedtls_sha1_process( mbedtls_sha1_context *ctx,
267 const unsigned char data[64] );
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100268
269#undef MBEDTLS_DEPRECATED
270#endif /* !MBEDTLS_DEPRECATED_REMOVED */
Paul Bakker90995b52013-06-24 19:20:35 +0200271
Paul Bakker5121ce52009-01-03 21:22:43 +0000272/**
Rose Zadik44833d92018-01-26 08:41:09 +0000273 * \brief This function calculates the SHA-1 checksum of a buffer.
Paul Bakker5121ce52009-01-03 21:22:43 +0000274 *
Rose Zadik44833d92018-01-26 08:41:09 +0000275 * The function allocates the context, performs the
276 * calculation, and frees the context.
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100277 *
Rose Zadik44833d92018-01-26 08:41:09 +0000278 * The SHA-1 result is calculated as
279 * output = SHA-1(input buffer).
280 *
Rose Zadik82741422018-03-27 12:49:48 +0100281 * \warning SHA-1 is considered a weak message digest and its use
282 * constitutes a security risk. We recommend considering
283 * stronger message digests instead.
284 *
Rose Zadik44833d92018-01-26 08:41:09 +0000285 * \param input The buffer holding the input data.
Hanno Becker5359ca82018-12-18 11:11:18 +0000286 * This must be a readable buffer of length \p ilen Bytes.
Hanno Becker5359ca82018-12-18 11:11:18 +0000287 * \param ilen The length of the input data \p input in Bytes.
Rose Zadik44833d92018-01-26 08:41:09 +0000288 * \param output The SHA-1 checksum result.
Hanno Becker5359ca82018-12-18 11:11:18 +0000289 * This must be a writable buffer of length \c 20 Bytes.
Rose Zadik44833d92018-01-26 08:41:09 +0000290 *
Rose Zadik82741422018-03-27 12:49:48 +0100291 * \return \c 0 on success.
Hanno Becker5359ca82018-12-18 11:11:18 +0000292 * \return A negative error code on failure.
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100293 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000294 */
Gilles Peskine9e4f77c2018-01-22 11:48:08 +0100295int mbedtls_sha1_ret( const unsigned char *input,
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100296 size_t ilen,
297 unsigned char output[20] );
298
299#if !defined(MBEDTLS_DEPRECATED_REMOVED)
300#if defined(MBEDTLS_DEPRECATED_WARNING)
301#define MBEDTLS_DEPRECATED __attribute__((deprecated))
302#else
303#define MBEDTLS_DEPRECATED
304#endif
305/**
Gilles Peskine2e1934a2018-04-18 16:05:29 +0200306 * \brief This function calculates the SHA-1 checksum of a buffer.
Rose Zadik82741422018-03-27 12:49:48 +0100307 *
308 * The function allocates the context, performs the
309 * calculation, and frees the context.
310 *
311 * The SHA-1 result is calculated as
312 * output = SHA-1(input buffer).
313 *
314 * \warning SHA-1 is considered a weak message digest and its use
315 * constitutes a security risk. We recommend considering
316 * stronger message digests instead.
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100317 *
Gilles Peskine3e28d702018-01-22 12:18:59 +0100318 * \deprecated Superseded by mbedtls_sha1_ret() in 2.7.0
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100319 *
Rose Zadik44833d92018-01-26 08:41:09 +0000320 * \param input The buffer holding the input data.
Hanno Becker5359ca82018-12-18 11:11:18 +0000321 * This must be a readable buffer of length \p ilen Bytes.
Hanno Becker5359ca82018-12-18 11:11:18 +0000322 * \param ilen The length of the input data \p input in Bytes.
323 * \param output The SHA-1 checksum result. This must be a writable
324 * buffer of size \c 20 Bytes.
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100325 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000326 */
Jaeden Amero041039f2018-02-19 15:28:08 +0000327MBEDTLS_DEPRECATED void mbedtls_sha1( const unsigned char *input,
328 size_t ilen,
329 unsigned char output[20] );
Andres Amaya Garcia034ea7e2017-04-28 15:14:50 +0100330
331#undef MBEDTLS_DEPRECATED
332#endif /* !MBEDTLS_DEPRECATED_REMOVED */
Paul Bakker5121ce52009-01-03 21:22:43 +0000333
334/**
Rose Zadik44833d92018-01-26 08:41:09 +0000335 * \brief The SHA-1 checkup routine.
Paul Bakker5121ce52009-01-03 21:22:43 +0000336 *
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100337 * \warning SHA-1 is considered a weak message digest and its use
338 * constitutes a security risk. We recommend considering
339 * stronger message digests instead.
340 *
Rose Zadik82741422018-03-27 12:49:48 +0100341 * \return \c 0 on success.
342 * \return \c 1 on failure.
343 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000344 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200345int mbedtls_sha1_self_test( int verbose );
Paul Bakker5121ce52009-01-03 21:22:43 +0000346
Paul Bakker5121ce52009-01-03 21:22:43 +0000347#ifdef __cplusplus
348}
349#endif
350
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200351#endif /* mbedtls_sha1.h */