blob: 325aab536442e4a7a9f9815827f0c5ebb816e7e1 [file] [log] [blame]
Paul Bakker5121ce52009-01-03 21:22:43 +00001/**
2 * \file des.h
Paul Bakkere0ccd0a2009-01-04 16:27:10 +00003 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +00004 * \brief DES block cipher
Hanno Beckerbbca8c52017-09-25 14:53:51 +01005 *
6 * \warning DES is considered a weak cipher and its use constitutes a
7 * security risk. We recommend considering stronger ciphers
8 * instead.
Darryl Greena40a1012018-01-05 15:33:17 +00009 */
10/*
Bence Szépkúti1e148272020-08-07 13:07:28 +020011 * Copyright The Mbed TLS Contributors
Manuel Pégourié-Gonnard37ff1402015-09-04 14:21:07 +020012 * 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.
Paul Bakkerb96f1542010-07-18 20:36:00 +000025 *
Paul Bakker5121ce52009-01-03 21:22:43 +000026 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020027#ifndef MBEDTLS_DES_H
28#define MBEDTLS_DES_H
Paul Bakker5121ce52009-01-03 21:22:43 +000029
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020030#if !defined(MBEDTLS_CONFIG_FILE)
Jaeden Ameroc49fbbf2019-07-04 20:01:14 +010031#include "mbedtls/config.h"
Manuel Pégourié-Gonnardcef4ad22014-04-29 12:39:06 +020032#else
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020033#include MBEDTLS_CONFIG_FILE
Manuel Pégourié-Gonnardcef4ad22014-04-29 12:39:06 +020034#endif
Gilles Peskine7b8571f2021-07-07 21:02:36 +020035#include "mbedtls/platform_util.h"
Paul Bakker90995b52013-06-24 19:20:35 +020036
Rich Evans00ab4702015-02-06 13:43:58 +000037#include <stddef.h>
Manuel Pégourié-Gonnardab229102015-04-15 11:53:16 +020038#include <stdint.h>
Paul Bakker5c2364c2012-10-01 14:41:15 +000039
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020040#define MBEDTLS_DES_ENCRYPT 1
41#define MBEDTLS_DES_DECRYPT 0
Paul Bakker5121ce52009-01-03 21:22:43 +000042
Gilles Peskinea3974432021-07-26 18:48:10 +020043/** The data input has an invalid length. */
44#define MBEDTLS_ERR_DES_INVALID_INPUT_LENGTH -0x0032
Ron Eldor9924bdc2018-10-04 10:59:13 +030045
46/* MBEDTLS_ERR_DES_HW_ACCEL_FAILED is deprecated and should not be used. */
Gilles Peskinea3974432021-07-26 18:48:10 +020047/** DES hardware accelerator failed. */
48#define MBEDTLS_ERR_DES_HW_ACCEL_FAILED -0x0033
Paul Bakkerf3ccc682010-03-18 21:21:02 +000049
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020050#define MBEDTLS_DES_KEY_SIZE 8
Paul Bakker1f87fb62011-01-15 17:32:24 +000051
Paul Bakker407a0da2013-06-27 14:29:21 +020052#ifdef __cplusplus
53extern "C" {
54#endif
55
Ron Eldorb2aacec2017-05-18 16:53:08 +030056#if !defined(MBEDTLS_DES_ALT)
57// Regular implementation
58//
59
Paul Bakker5121ce52009-01-03 21:22:43 +000060/**
61 * \brief DES context structure
Hanno Beckerbbca8c52017-09-25 14:53:51 +010062 *
63 * \warning DES is considered a weak cipher and its use constitutes a
64 * security risk. We recommend considering stronger ciphers
65 * instead.
Paul Bakker5121ce52009-01-03 21:22:43 +000066 */
Dawid Drozd428cc522018-07-24 10:02:47 +020067typedef struct mbedtls_des_context
Paul Bakker5121ce52009-01-03 21:22:43 +000068{
Paul Bakker5c2364c2012-10-01 14:41:15 +000069 uint32_t sk[32]; /*!< DES subkeys */
Paul Bakker5121ce52009-01-03 21:22:43 +000070}
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020071mbedtls_des_context;
Paul Bakker5121ce52009-01-03 21:22:43 +000072
73/**
74 * \brief Triple-DES context structure
75 */
Dawid Drozd428cc522018-07-24 10:02:47 +020076typedef struct mbedtls_des3_context
Paul Bakker5121ce52009-01-03 21:22:43 +000077{
Paul Bakker5c2364c2012-10-01 14:41:15 +000078 uint32_t sk[96]; /*!< 3DES subkeys */
Paul Bakker5121ce52009-01-03 21:22:43 +000079}
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020080mbedtls_des3_context;
Paul Bakker5121ce52009-01-03 21:22:43 +000081
Ron Eldor05d0e512018-04-16 17:40:04 +030082#else /* MBEDTLS_DES_ALT */
83#include "des_alt.h"
84#endif /* MBEDTLS_DES_ALT */
85
Paul Bakker5121ce52009-01-03 21:22:43 +000086/**
Paul Bakkerc7ea99a2014-06-18 11:12:03 +020087 * \brief Initialize DES context
88 *
89 * \param ctx DES context to be initialized
Hanno Beckerbbca8c52017-09-25 14:53:51 +010090 *
91 * \warning DES is considered a weak cipher and its use constitutes a
92 * security risk. We recommend considering stronger ciphers
93 * instead.
Paul Bakkerc7ea99a2014-06-18 11:12:03 +020094 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020095void mbedtls_des_init( mbedtls_des_context *ctx );
Paul Bakkerc7ea99a2014-06-18 11:12:03 +020096
97/**
98 * \brief Clear DES context
99 *
100 * \param ctx DES context to be cleared
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100101 *
102 * \warning DES is considered a weak cipher and its use constitutes a
103 * security risk. We recommend considering stronger ciphers
104 * instead.
Paul Bakkerc7ea99a2014-06-18 11:12:03 +0200105 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200106void mbedtls_des_free( mbedtls_des_context *ctx );
Paul Bakkerc7ea99a2014-06-18 11:12:03 +0200107
108/**
109 * \brief Initialize Triple-DES context
110 *
111 * \param ctx DES3 context to be initialized
112 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200113void mbedtls_des3_init( mbedtls_des3_context *ctx );
Paul Bakkerc7ea99a2014-06-18 11:12:03 +0200114
115/**
116 * \brief Clear Triple-DES context
117 *
118 * \param ctx DES3 context to be cleared
119 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200120void mbedtls_des3_free( mbedtls_des3_context *ctx );
Paul Bakkerc7ea99a2014-06-18 11:12:03 +0200121
122/**
Paul Bakker1f87fb62011-01-15 17:32:24 +0000123 * \brief Set key parity on the given key to odd.
124 *
125 * DES keys are 56 bits long, but each byte is padded with
126 * a parity bit to allow verification.
127 *
128 * \param key 8-byte secret key
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100129 *
130 * \warning DES is considered a weak cipher and its use constitutes a
131 * security risk. We recommend considering stronger ciphers
132 * instead.
Paul Bakker1f87fb62011-01-15 17:32:24 +0000133 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200134void mbedtls_des_key_set_parity( unsigned char key[MBEDTLS_DES_KEY_SIZE] );
Paul Bakker1f87fb62011-01-15 17:32:24 +0000135
136/**
137 * \brief Check that key parity on the given key is odd.
138 *
139 * DES keys are 56 bits long, but each byte is padded with
140 * a parity bit to allow verification.
141 *
142 * \param key 8-byte secret key
Paul Bakker73206952011-07-06 14:37:33 +0000143 *
144 * \return 0 is parity was ok, 1 if parity was not correct.
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100145 *
146 * \warning DES is considered a weak cipher and its use constitutes a
147 * security risk. We recommend considering stronger ciphers
148 * instead.
Paul Bakker1f87fb62011-01-15 17:32:24 +0000149 */
Gilles Peskinece555e42021-09-23 17:35:37 +0200150MBEDTLS_CHECK_RETURN_TYPICAL
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200151int mbedtls_des_key_check_key_parity( const unsigned char key[MBEDTLS_DES_KEY_SIZE] );
Paul Bakker1f87fb62011-01-15 17:32:24 +0000152
Paul Bakker1f87fb62011-01-15 17:32:24 +0000153/**
154 * \brief Check that key is not a weak or semi-weak DES key
155 *
156 * \param key 8-byte secret key
Paul Bakker73206952011-07-06 14:37:33 +0000157 *
Paul Bakker4793cc42011-08-17 09:40:55 +0000158 * \return 0 if no weak key was found, 1 if a weak key was identified.
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100159 *
160 * \warning DES is considered a weak cipher and its use constitutes a
161 * security risk. We recommend considering stronger ciphers
162 * instead.
Paul Bakker1f87fb62011-01-15 17:32:24 +0000163 */
Gilles Peskinece555e42021-09-23 17:35:37 +0200164MBEDTLS_CHECK_RETURN_TYPICAL
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200165int mbedtls_des_key_check_weak( const unsigned char key[MBEDTLS_DES_KEY_SIZE] );
Paul Bakker1f87fb62011-01-15 17:32:24 +0000166
167/**
Paul Bakker5121ce52009-01-03 21:22:43 +0000168 * \brief DES key schedule (56-bit, encryption)
169 *
170 * \param ctx DES context to be initialized
171 * \param key 8-byte secret key
Paul Bakker8123e9d2011-01-06 15:37:30 +0000172 *
173 * \return 0
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100174 *
175 * \warning DES is considered a weak cipher and its use constitutes a
176 * security risk. We recommend considering stronger ciphers
177 * instead.
Paul Bakker5121ce52009-01-03 21:22:43 +0000178 */
Gilles Peskinece555e42021-09-23 17:35:37 +0200179MBEDTLS_CHECK_RETURN_TYPICAL
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200180int mbedtls_des_setkey_enc( mbedtls_des_context *ctx, const unsigned char key[MBEDTLS_DES_KEY_SIZE] );
Paul Bakker5121ce52009-01-03 21:22:43 +0000181
182/**
183 * \brief DES key schedule (56-bit, decryption)
184 *
185 * \param ctx DES context to be initialized
186 * \param key 8-byte secret key
Paul Bakker8123e9d2011-01-06 15:37:30 +0000187 *
188 * \return 0
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100189 *
190 * \warning DES is considered a weak cipher and its use constitutes a
191 * security risk. We recommend considering stronger ciphers
192 * instead.
Paul Bakker5121ce52009-01-03 21:22:43 +0000193 */
Gilles Peskinece555e42021-09-23 17:35:37 +0200194MBEDTLS_CHECK_RETURN_TYPICAL
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200195int mbedtls_des_setkey_dec( mbedtls_des_context *ctx, const unsigned char key[MBEDTLS_DES_KEY_SIZE] );
Paul Bakker5121ce52009-01-03 21:22:43 +0000196
197/**
198 * \brief Triple-DES key schedule (112-bit, encryption)
199 *
200 * \param ctx 3DES context to be initialized
201 * \param key 16-byte secret key
Paul Bakker8123e9d2011-01-06 15:37:30 +0000202 *
203 * \return 0
Paul Bakker5121ce52009-01-03 21:22:43 +0000204 */
Gilles Peskinece555e42021-09-23 17:35:37 +0200205MBEDTLS_CHECK_RETURN_TYPICAL
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200206int mbedtls_des3_set2key_enc( mbedtls_des3_context *ctx,
207 const unsigned char key[MBEDTLS_DES_KEY_SIZE * 2] );
Paul Bakker5121ce52009-01-03 21:22:43 +0000208
209/**
210 * \brief Triple-DES key schedule (112-bit, decryption)
211 *
212 * \param ctx 3DES context to be initialized
213 * \param key 16-byte secret key
Paul Bakker8123e9d2011-01-06 15:37:30 +0000214 *
215 * \return 0
Paul Bakker5121ce52009-01-03 21:22:43 +0000216 */
Gilles Peskinece555e42021-09-23 17:35:37 +0200217MBEDTLS_CHECK_RETURN_TYPICAL
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200218int mbedtls_des3_set2key_dec( mbedtls_des3_context *ctx,
219 const unsigned char key[MBEDTLS_DES_KEY_SIZE * 2] );
Paul Bakker5121ce52009-01-03 21:22:43 +0000220
221/**
222 * \brief Triple-DES key schedule (168-bit, encryption)
223 *
224 * \param ctx 3DES context to be initialized
225 * \param key 24-byte secret key
Paul Bakker8123e9d2011-01-06 15:37:30 +0000226 *
227 * \return 0
Paul Bakker5121ce52009-01-03 21:22:43 +0000228 */
Gilles Peskinece555e42021-09-23 17:35:37 +0200229MBEDTLS_CHECK_RETURN_TYPICAL
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200230int mbedtls_des3_set3key_enc( mbedtls_des3_context *ctx,
231 const unsigned char key[MBEDTLS_DES_KEY_SIZE * 3] );
Paul Bakker5121ce52009-01-03 21:22:43 +0000232
233/**
234 * \brief Triple-DES key schedule (168-bit, decryption)
235 *
236 * \param ctx 3DES context to be initialized
237 * \param key 24-byte secret key
Paul Bakker8123e9d2011-01-06 15:37:30 +0000238 *
239 * \return 0
Paul Bakker5121ce52009-01-03 21:22:43 +0000240 */
Gilles Peskinece555e42021-09-23 17:35:37 +0200241MBEDTLS_CHECK_RETURN_TYPICAL
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200242int mbedtls_des3_set3key_dec( mbedtls_des3_context *ctx,
243 const unsigned char key[MBEDTLS_DES_KEY_SIZE * 3] );
Paul Bakker5121ce52009-01-03 21:22:43 +0000244
245/**
246 * \brief DES-ECB block encryption/decryption
247 *
248 * \param ctx DES context
249 * \param input 64-bit input block
250 * \param output 64-bit output block
Paul Bakkerf3ccc682010-03-18 21:21:02 +0000251 *
Paul Bakker27caa8a2010-03-21 15:43:59 +0000252 * \return 0 if successful
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100253 *
254 * \warning DES is considered a weak cipher and its use constitutes a
255 * security risk. We recommend considering stronger ciphers
256 * instead.
Paul Bakker5121ce52009-01-03 21:22:43 +0000257 */
Gilles Peskinece555e42021-09-23 17:35:37 +0200258MBEDTLS_CHECK_RETURN_TYPICAL
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200259int mbedtls_des_crypt_ecb( mbedtls_des_context *ctx,
Paul Bakkerff60ee62010-03-16 21:09:09 +0000260 const unsigned char input[8],
Paul Bakker5121ce52009-01-03 21:22:43 +0000261 unsigned char output[8] );
262
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200263#if defined(MBEDTLS_CIPHER_MODE_CBC)
Paul Bakker5121ce52009-01-03 21:22:43 +0000264/**
265 * \brief DES-CBC buffer encryption/decryption
266 *
Manuel Pégourié-Gonnard2be147a2015-01-23 16:19:47 +0000267 * \note Upon exit, the content of the IV is updated so that you can
268 * call the function same function again on the following
269 * block(s) of data and get the same result as if it was
270 * encrypted in one call. This allows a "streaming" usage.
271 * If on the other hand you need to retain the contents of the
272 * IV, you should either save it manually or use the cipher
273 * module instead.
274 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000275 * \param ctx DES context
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200276 * \param mode MBEDTLS_DES_ENCRYPT or MBEDTLS_DES_DECRYPT
Paul Bakker5121ce52009-01-03 21:22:43 +0000277 * \param length length of the input data
278 * \param iv initialization vector (updated after use)
279 * \param input buffer holding the input data
280 * \param output buffer holding the output data
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100281 *
282 * \warning DES is considered a weak cipher and its use constitutes a
283 * security risk. We recommend considering stronger ciphers
284 * instead.
Paul Bakker5121ce52009-01-03 21:22:43 +0000285 */
Gilles Peskinece555e42021-09-23 17:35:37 +0200286MBEDTLS_CHECK_RETURN_TYPICAL
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200287int mbedtls_des_crypt_cbc( mbedtls_des_context *ctx,
Paul Bakker5121ce52009-01-03 21:22:43 +0000288 int mode,
Paul Bakker23986e52011-04-24 08:57:21 +0000289 size_t length,
Paul Bakker5121ce52009-01-03 21:22:43 +0000290 unsigned char iv[8],
Paul Bakkerff60ee62010-03-16 21:09:09 +0000291 const unsigned char *input,
Paul Bakker5121ce52009-01-03 21:22:43 +0000292 unsigned char *output );
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200293#endif /* MBEDTLS_CIPHER_MODE_CBC */
Paul Bakker5121ce52009-01-03 21:22:43 +0000294
295/**
296 * \brief 3DES-ECB block encryption/decryption
297 *
298 * \param ctx 3DES context
299 * \param input 64-bit input block
300 * \param output 64-bit output block
Paul Bakkerf3ccc682010-03-18 21:21:02 +0000301 *
Paul Bakker27caa8a2010-03-21 15:43:59 +0000302 * \return 0 if successful
Paul Bakker5121ce52009-01-03 21:22:43 +0000303 */
Gilles Peskinece555e42021-09-23 17:35:37 +0200304MBEDTLS_CHECK_RETURN_TYPICAL
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200305int mbedtls_des3_crypt_ecb( mbedtls_des3_context *ctx,
Paul Bakkerff60ee62010-03-16 21:09:09 +0000306 const unsigned char input[8],
Paul Bakker5121ce52009-01-03 21:22:43 +0000307 unsigned char output[8] );
308
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200309#if defined(MBEDTLS_CIPHER_MODE_CBC)
Paul Bakker5121ce52009-01-03 21:22:43 +0000310/**
311 * \brief 3DES-CBC buffer encryption/decryption
312 *
Manuel Pégourié-Gonnard2be147a2015-01-23 16:19:47 +0000313 * \note Upon exit, the content of the IV is updated so that you can
314 * call the function same function again on the following
315 * block(s) of data and get the same result as if it was
316 * encrypted in one call. This allows a "streaming" usage.
317 * If on the other hand you need to retain the contents of the
318 * IV, you should either save it manually or use the cipher
319 * module instead.
320 *
Paul Bakker5121ce52009-01-03 21:22:43 +0000321 * \param ctx 3DES context
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200322 * \param mode MBEDTLS_DES_ENCRYPT or MBEDTLS_DES_DECRYPT
Paul Bakker5121ce52009-01-03 21:22:43 +0000323 * \param length length of the input data
324 * \param iv initialization vector (updated after use)
325 * \param input buffer holding the input data
326 * \param output buffer holding the output data
Paul Bakkerf3ccc682010-03-18 21:21:02 +0000327 *
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200328 * \return 0 if successful, or MBEDTLS_ERR_DES_INVALID_INPUT_LENGTH
Paul Bakker5121ce52009-01-03 21:22:43 +0000329 */
Gilles Peskinece555e42021-09-23 17:35:37 +0200330MBEDTLS_CHECK_RETURN_TYPICAL
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200331int mbedtls_des3_crypt_cbc( mbedtls_des3_context *ctx,
Paul Bakker5121ce52009-01-03 21:22:43 +0000332 int mode,
Paul Bakker23986e52011-04-24 08:57:21 +0000333 size_t length,
Paul Bakker5121ce52009-01-03 21:22:43 +0000334 unsigned char iv[8],
Paul Bakkerff60ee62010-03-16 21:09:09 +0000335 const unsigned char *input,
Paul Bakker5121ce52009-01-03 21:22:43 +0000336 unsigned char *output );
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200337#endif /* MBEDTLS_CIPHER_MODE_CBC */
Paul Bakker5121ce52009-01-03 21:22:43 +0000338
Manuel Pégourié-Gonnard70a50102015-05-12 15:02:45 +0200339/**
340 * \brief Internal function for key expansion.
341 * (Only exposed to allow overriding it,
342 * see MBEDTLS_DES_SETKEY_ALT)
343 *
344 * \param SK Round keys
345 * \param key Base key
Hanno Beckerbbca8c52017-09-25 14:53:51 +0100346 *
347 * \warning DES is considered a weak cipher and its use constitutes a
348 * security risk. We recommend considering stronger ciphers
349 * instead.
Manuel Pégourié-Gonnard70a50102015-05-12 15:02:45 +0200350 */
351void mbedtls_des_setkey( uint32_t SK[32],
352 const unsigned char key[MBEDTLS_DES_KEY_SIZE] );
Paul Bakker90995b52013-06-24 19:20:35 +0200353
Andrzej Kurekc470b6b2019-01-31 08:20:20 -0500354#if defined(MBEDTLS_SELF_TEST)
355
Paul Bakker9a736322012-11-14 12:39:52 +0000356/**
Paul Bakker5121ce52009-01-03 21:22:43 +0000357 * \brief Checkup routine
358 *
359 * \return 0 if successful, or 1 if the test failed
360 */
Gilles Peskinece555e42021-09-23 17:35:37 +0200361MBEDTLS_CHECK_RETURN_CRITICAL
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200362int mbedtls_des_self_test( int verbose );
Paul Bakker5121ce52009-01-03 21:22:43 +0000363
Andrzej Kurekc470b6b2019-01-31 08:20:20 -0500364#endif /* MBEDTLS_SELF_TEST */
365
Paul Bakker5121ce52009-01-03 21:22:43 +0000366#ifdef __cplusplus
367}
368#endif
369
370#endif /* des.h */