blob: d7ab1522ec1cb1ade15b074f7d98589988686f39 [file] [log] [blame]
Paul Bakker5121ce52009-01-03 21:22:43 +00001/**
2 * \file dhm.h
Paul Bakkere0ccd0a2009-01-04 16:27:10 +00003 *
Paul Bakker37ca75d2011-01-06 12:28:03 +00004 * \brief Diffie-Hellman-Merkle key exchange
5 *
Manuel Pégourié-Gonnard6fb81872015-07-27 11:11:48 +02006 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
Manuel Pégourié-Gonnard37ff1402015-09-04 14:21:07 +02007 * SPDX-License-Identifier: Apache-2.0
8 *
9 * Licensed under the Apache License, Version 2.0 (the "License"); you may
10 * not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
Paul Bakkerb96f1542010-07-18 20:36:00 +000020 *
Manuel Pégourié-Gonnardfe446432015-03-06 13:17:10 +000021 * This file is part of mbed TLS (https://tls.mbed.org)
Paul Bakker5121ce52009-01-03 21:22:43 +000022 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020023#ifndef MBEDTLS_DHM_H
24#define MBEDTLS_DHM_H
Paul Bakker5121ce52009-01-03 21:22:43 +000025
Paul Bakker314052f2011-08-15 09:07:52 +000026#include "bignum.h"
Paul Bakker5121ce52009-01-03 21:22:43 +000027
Paul Bakkerf3b86c12011-01-27 15:24:17 +000028/*
29 * DHM Error codes
30 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020031#define MBEDTLS_ERR_DHM_BAD_INPUT_DATA -0x3080 /**< Bad input parameters to function. */
32#define MBEDTLS_ERR_DHM_READ_PARAMS_FAILED -0x3100 /**< Reading of the DHM parameters failed. */
33#define MBEDTLS_ERR_DHM_MAKE_PARAMS_FAILED -0x3180 /**< Making of the DHM parameters failed. */
34#define MBEDTLS_ERR_DHM_READ_PUBLIC_FAILED -0x3200 /**< Reading of the public values failed. */
35#define MBEDTLS_ERR_DHM_MAKE_PUBLIC_FAILED -0x3280 /**< Making of the public value failed. */
36#define MBEDTLS_ERR_DHM_CALC_SECRET_FAILED -0x3300 /**< Calculation of the DHM secret failed. */
37#define MBEDTLS_ERR_DHM_INVALID_FORMAT -0x3380 /**< The ASN.1 data is not formatted correctly. */
Manuel Pégourié-Gonnard6a8ca332015-05-28 09:33:39 +020038#define MBEDTLS_ERR_DHM_ALLOC_FAILED -0x3400 /**< Allocation of memory failed. */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020039#define MBEDTLS_ERR_DHM_FILE_IO_ERROR -0x3480 /**< Read/write of file failed. */
Paul Bakker5121ce52009-01-03 21:22:43 +000040
Paul Bakkerf3b86c12011-01-27 15:24:17 +000041/**
Paul Bakkerda7e3f22012-09-28 07:18:17 +000042 * RFC 3526 defines a number of standardized Diffie-Hellman groups
43 * for IKE.
Paul Bakker29b64762012-09-25 09:36:44 +000044 * RFC 5114 defines a number of standardized Diffie-Hellman groups
Paul Bakkerda7e3f22012-09-28 07:18:17 +000045 * that can be used.
46 *
47 * Some are included here for convenience.
Paul Bakker29b64762012-09-25 09:36:44 +000048 *
49 * Included are:
Paul Bakkerda7e3f22012-09-28 07:18:17 +000050 * RFC 3526 3. 2048-bit MODP Group
51 * RFC 3526 4. 3072-bit MODP Group
Manuel Pégourié-Gonnard78931032015-07-03 17:06:39 +020052 * RFC 3526 5. 4096-bit MODP Group
Paul Bakkerda7e3f22012-09-28 07:18:17 +000053 * RFC 5114 2.2. 2048-bit MODP Group with 224-bit Prime Order Subgroup
Paul Bakker29b64762012-09-25 09:36:44 +000054 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020055#define MBEDTLS_DHM_RFC3526_MODP_2048_P \
Paul Bakkerda7e3f22012-09-28 07:18:17 +000056 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" \
57 "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" \
58 "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" \
59 "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" \
60 "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" \
61 "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" \
62 "83655D23DCA3AD961C62F356208552BB9ED529077096966D" \
63 "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" \
64 "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" \
65 "DE2BCBF6955817183995497CEA956AE515D2261898FA0510" \
66 "15728E5A8AACAA68FFFFFFFFFFFFFFFF"
67
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020068#define MBEDTLS_DHM_RFC3526_MODP_2048_G "02"
Paul Bakkerda7e3f22012-09-28 07:18:17 +000069
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020070#define MBEDTLS_DHM_RFC3526_MODP_3072_P \
Paul Bakkerda7e3f22012-09-28 07:18:17 +000071 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" \
72 "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" \
73 "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" \
74 "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" \
75 "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" \
76 "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" \
77 "83655D23DCA3AD961C62F356208552BB9ED529077096966D" \
78 "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" \
79 "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" \
80 "DE2BCBF6955817183995497CEA956AE515D2261898FA0510" \
81 "15728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64" \
82 "ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7" \
83 "ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6B" \
84 "F12FFA06D98A0864D87602733EC86A64521F2B18177B200C" \
85 "BBE117577A615D6C770988C0BAD946E208E24FA074E5AB31" \
86 "43DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF"
87
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020088#define MBEDTLS_DHM_RFC3526_MODP_3072_G "02"
Paul Bakkerda7e3f22012-09-28 07:18:17 +000089
Manuel Pégourié-Gonnard78931032015-07-03 17:06:39 +020090#define MBEDTLS_DHM_RFC3526_MODP_4096_P \
91 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" \
92 "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" \
93 "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" \
94 "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" \
95 "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" \
96 "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" \
97 "83655D23DCA3AD961C62F356208552BB9ED529077096966D" \
98 "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" \
99 "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" \
100 "DE2BCBF6955817183995497CEA956AE515D2261898FA0510" \
101 "15728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64" \
102 "ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7" \
103 "ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6B" \
104 "F12FFA06D98A0864D87602733EC86A64521F2B18177B200C" \
105 "BBE117577A615D6C770988C0BAD946E208E24FA074E5AB31" \
106 "43DB5BFCE0FD108E4B82D120A92108011A723C12A787E6D7" \
107 "88719A10BDBA5B2699C327186AF4E23C1A946834B6150BDA" \
108 "2583E9CA2AD44CE8DBBBC2DB04DE8EF92E8EFC141FBECAA6" \
109 "287C59474E6BC05D99B2964FA090C3A2233BA186515BE7ED" \
110 "1F612970CEE2D7AFB81BDD762170481CD0069127D5B05AA9" \
111 "93B4EA988D8FDDC186FFB7DC90A6C08F4DF435C934063199" \
112 "FFFFFFFFFFFFFFFF"
Paul Bakker29b64762012-09-25 09:36:44 +0000113
Manuel Pégourié-Gonnard78931032015-07-03 17:06:39 +0200114#define MBEDTLS_DHM_RFC3526_MODP_4096_G "02"
Paul Bakker29b64762012-09-25 09:36:44 +0000115
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200116#define MBEDTLS_DHM_RFC5114_MODP_2048_P \
Paul Bakker29b64762012-09-25 09:36:44 +0000117 "AD107E1E9123A9D0D660FAA79559C51FA20D64E5683B9FD1" \
118 "B54B1597B61D0A75E6FA141DF95A56DBAF9A3C407BA1DF15" \
119 "EB3D688A309C180E1DE6B85A1274A0A66D3F8152AD6AC212" \
120 "9037C9EDEFDA4DF8D91E8FEF55B7394B7AD5B7D0B6C12207" \
121 "C9F98D11ED34DBF6C6BA0B2C8BBC27BE6A00E0A0B9C49708" \
122 "B3BF8A317091883681286130BC8985DB1602E714415D9330" \
123 "278273C7DE31EFDC7310F7121FD5A07415987D9ADC0A486D" \
124 "CDF93ACC44328387315D75E198C641A480CD86A1B9E587E8" \
125 "BE60E69CC928B2B9C52172E413042E9B23F10B0E16E79763" \
126 "C9B53DCF4BA80A29E3FB73C16B8E75B97EF363E2FFA31F71" \
Paul Bakkera864f2e2012-09-26 08:29:20 +0000127 "CF9DE5384E71B81C0AC4DFFE0C10E64F"
Paul Bakker29b64762012-09-25 09:36:44 +0000128
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200129#define MBEDTLS_DHM_RFC5114_MODP_2048_G \
Paul Bakker29b64762012-09-25 09:36:44 +0000130 "AC4032EF4F2D9AE39DF30B5C8FFDAC506CDEBE7B89998CAF"\
131 "74866A08CFE4FFE3A6824A4E10B9A6F0DD921F01A70C4AFA"\
132 "AB739D7700C29F52C57DB17C620A8652BE5E9001A8D66AD7"\
133 "C17669101999024AF4D027275AC1348BB8A762D0521BC98A"\
134 "E247150422EA1ED409939D54DA7460CDB5F6C6B250717CBE"\
135 "F180EB34118E98D119529A45D6F834566E3025E316A330EF"\
136 "BB77A86F0C1AB15B051AE3D428C8F8ACB70A8137150B8EEB"\
137 "10E183EDD19963DDD9E263E4770589EF6AA21E7F5F2FF381"\
138 "B539CCE3409D13CD566AFBB48D6C019181E1BCFE94B30269"\
139 "EDFE72FE9B6AA4BD7B5A0F1C71CFFF4C19C418E1F6EC0179"\
Paul Bakkera864f2e2012-09-26 08:29:20 +0000140 "81BC087F2A7065B384B890D3191F2BFA"
Paul Bakker29b64762012-09-25 09:36:44 +0000141
Paul Bakker407a0da2013-06-27 14:29:21 +0200142#ifdef __cplusplus
143extern "C" {
144#endif
145
Paul Bakker29b64762012-09-25 09:36:44 +0000146/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000147 * \brief DHM context structure
148 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000149typedef struct
150{
Paul Bakker23986e52011-04-24 08:57:21 +0000151 size_t len; /*!< size(P) in chars */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200152 mbedtls_mpi P; /*!< prime modulus */
153 mbedtls_mpi G; /*!< generator */
154 mbedtls_mpi X; /*!< secret value */
155 mbedtls_mpi GX; /*!< self = G^X mod P */
156 mbedtls_mpi GY; /*!< peer = G^Y mod P */
157 mbedtls_mpi K; /*!< key = GY^X mod P */
158 mbedtls_mpi RP; /*!< cached R^2 mod P */
159 mbedtls_mpi Vi; /*!< blinding value */
160 mbedtls_mpi Vf; /*!< un-blinding value */
161 mbedtls_mpi pX; /*!< previous X */
Paul Bakker5121ce52009-01-03 21:22:43 +0000162}
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200163mbedtls_dhm_context;
Paul Bakker5121ce52009-01-03 21:22:43 +0000164
Paul Bakker5121ce52009-01-03 21:22:43 +0000165/**
Paul Bakker8f870b02014-06-20 13:32:38 +0200166 * \brief Initialize DHM context
167 *
168 * \param ctx DHM context to be initialized
169 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200170void mbedtls_dhm_init( mbedtls_dhm_context *ctx );
Paul Bakker8f870b02014-06-20 13:32:38 +0200171
172/**
Paul Bakker5121ce52009-01-03 21:22:43 +0000173 * \brief Parse the ServerKeyExchange parameters
174 *
175 * \param ctx DHM context
176 * \param p &(start of input buffer)
177 * \param end end of buffer
178 *
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200179 * \return 0 if successful, or an MBEDTLS_ERR_DHM_XXX error code
Paul Bakker5121ce52009-01-03 21:22:43 +0000180 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200181int mbedtls_dhm_read_params( mbedtls_dhm_context *ctx,
Paul Bakker5121ce52009-01-03 21:22:43 +0000182 unsigned char **p,
Paul Bakkerff60ee62010-03-16 21:09:09 +0000183 const unsigned char *end );
Paul Bakker5121ce52009-01-03 21:22:43 +0000184
185/**
186 * \brief Setup and write the ServerKeyExchange parameters
187 *
188 * \param ctx DHM context
Paul Bakkerff7fe672010-07-18 09:45:05 +0000189 * \param x_size private value size in bytes
Paul Bakker5121ce52009-01-03 21:22:43 +0000190 * \param output destination buffer
191 * \param olen number of chars written
192 * \param f_rng RNG function
193 * \param p_rng RNG parameter
194 *
195 * \note This function assumes that ctx->P and ctx->G
196 * have already been properly set (for example
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200197 * using mbedtls_mpi_read_string or mbedtls_mpi_read_binary).
Paul Bakker5121ce52009-01-03 21:22:43 +0000198 *
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200199 * \return 0 if successful, or an MBEDTLS_ERR_DHM_XXX error code
Paul Bakker5121ce52009-01-03 21:22:43 +0000200 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200201int mbedtls_dhm_make_params( mbedtls_dhm_context *ctx, int x_size,
Paul Bakker23986e52011-04-24 08:57:21 +0000202 unsigned char *output, size_t *olen,
Paul Bakkera3d195c2011-11-27 21:07:34 +0000203 int (*f_rng)(void *, unsigned char *, size_t),
204 void *p_rng );
Paul Bakker5121ce52009-01-03 21:22:43 +0000205
206/**
207 * \brief Import the peer's public value G^Y
208 *
209 * \param ctx DHM context
210 * \param input input buffer
211 * \param ilen size of buffer
212 *
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200213 * \return 0 if successful, or an MBEDTLS_ERR_DHM_XXX error code
Paul Bakker5121ce52009-01-03 21:22:43 +0000214 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200215int mbedtls_dhm_read_public( mbedtls_dhm_context *ctx,
Paul Bakker23986e52011-04-24 08:57:21 +0000216 const unsigned char *input, size_t ilen );
Paul Bakker5121ce52009-01-03 21:22:43 +0000217
218/**
219 * \brief Create own private value X and export G^X
220 *
221 * \param ctx DHM context
Paul Bakker84bef1d2012-04-20 13:42:02 +0000222 * \param x_size private value size in bytes
Paul Bakker5121ce52009-01-03 21:22:43 +0000223 * \param output destination buffer
Simon Butcher2917b9e2016-05-25 00:59:37 +0100224 * \param olen must be at least equal to the size of P, ctx->len
Paul Bakker5121ce52009-01-03 21:22:43 +0000225 * \param f_rng RNG function
226 * \param p_rng RNG parameter
227 *
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200228 * \return 0 if successful, or an MBEDTLS_ERR_DHM_XXX error code
Paul Bakker5121ce52009-01-03 21:22:43 +0000229 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200230int mbedtls_dhm_make_public( mbedtls_dhm_context *ctx, int x_size,
Paul Bakker23986e52011-04-24 08:57:21 +0000231 unsigned char *output, size_t olen,
Paul Bakkera3d195c2011-11-27 21:07:34 +0000232 int (*f_rng)(void *, unsigned char *, size_t),
233 void *p_rng );
Paul Bakker5121ce52009-01-03 21:22:43 +0000234
235/**
236 * \brief Derive and export the shared secret (G^Y)^X mod P
237 *
238 * \param ctx DHM context
239 * \param output destination buffer
Manuel Pégourié-Gonnard33352052015-06-02 16:17:08 +0100240 * \param output_size size of the destination buffer
241 * \param olen on exit, holds the actual number of bytes written
Manuel Pégourié-Gonnard2d627642013-09-04 14:22:07 +0200242 * \param f_rng RNG function, for blinding purposes
243 * \param p_rng RNG parameter
Paul Bakker5121ce52009-01-03 21:22:43 +0000244 *
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200245 * \return 0 if successful, or an MBEDTLS_ERR_DHM_XXX error code
Manuel Pégourié-Gonnard143b5022013-09-04 16:29:59 +0200246 *
Manuel Pégourié-Gonnard15d5de12013-09-17 11:34:11 +0200247 * \note If non-NULL, f_rng is used to blind the input as
248 * countermeasure against timing attacks. Blinding is
249 * automatically used if and only if our secret value X is
250 * re-used and costs nothing otherwise, so it is recommended
251 * to always pass a non-NULL f_rng argument.
Paul Bakker5121ce52009-01-03 21:22:43 +0000252 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200253int mbedtls_dhm_calc_secret( mbedtls_dhm_context *ctx,
Manuel Pégourié-Gonnard33352052015-06-02 16:17:08 +0100254 unsigned char *output, size_t output_size, size_t *olen,
Manuel Pégourié-Gonnard2d627642013-09-04 14:22:07 +0200255 int (*f_rng)(void *, unsigned char *, size_t),
256 void *p_rng );
Paul Bakker5121ce52009-01-03 21:22:43 +0000257
Paul Bakker9a736322012-11-14 12:39:52 +0000258/**
Paul Bakker8f870b02014-06-20 13:32:38 +0200259 * \brief Free and clear the components of a DHM key
260 *
261 * \param ctx DHM context to free and clear
Paul Bakker5121ce52009-01-03 21:22:43 +0000262 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200263void mbedtls_dhm_free( mbedtls_dhm_context *ctx );
Paul Bakker5121ce52009-01-03 21:22:43 +0000264
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200265#if defined(MBEDTLS_ASN1_PARSE_C)
Paul Bakker40ce79f2013-09-15 17:43:54 +0200266/** \ingroup x509_module */
267/**
Manuel Pégourié-Gonnard43b37cb2015-05-12 11:20:10 +0200268 * \brief Parse DHM parameters in PEM or DER format
Paul Bakker40ce79f2013-09-15 17:43:54 +0200269 *
270 * \param dhm DHM context to be initialized
271 * \param dhmin input buffer
272 * \param dhminlen size of the buffer
Manuel Pégourié-Gonnard43b37cb2015-05-12 11:20:10 +0200273 * (including the terminating null byte for PEM data)
Paul Bakker40ce79f2013-09-15 17:43:54 +0200274 *
275 * \return 0 if successful, or a specific DHM or PEM error code
276 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200277int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin,
Paul Bakker40ce79f2013-09-15 17:43:54 +0200278 size_t dhminlen );
279
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200280#if defined(MBEDTLS_FS_IO)
Paul Bakker40ce79f2013-09-15 17:43:54 +0200281/** \ingroup x509_module */
282/**
283 * \brief Load and parse DHM parameters
284 *
285 * \param dhm DHM context to be initialized
286 * \param path filename to read the DHM Parameters from
287 *
288 * \return 0 if successful, or a specific DHM or PEM error code
289 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200290int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path );
291#endif /* MBEDTLS_FS_IO */
292#endif /* MBEDTLS_ASN1_PARSE_C */
Paul Bakker40ce79f2013-09-15 17:43:54 +0200293
Paul Bakker5121ce52009-01-03 21:22:43 +0000294/**
295 * \brief Checkup routine
296 *
297 * \return 0 if successful, or 1 if the test failed
298 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200299int mbedtls_dhm_self_test( int verbose );
Paul Bakker5121ce52009-01-03 21:22:43 +0000300
301#ifdef __cplusplus
302}
303#endif
304
Paul Bakker9af723c2014-05-01 13:03:14 +0200305#endif /* dhm.h */