blob: 2de728b4f77d122a8a553acdf0d3cf778fc08219 [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é-Gonnarda658a402015-01-23 09:45:19 +00006 * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved
Paul Bakkerb96f1542010-07-18 20:36:00 +00007 *
Manuel Pégourié-Gonnardfe446432015-03-06 13:17:10 +00008 * This file is part of mbed TLS (https://tls.mbed.org)
Paul Bakkerb96f1542010-07-18 20:36:00 +00009 *
Paul Bakkere0ccd0a2009-01-04 16:27:10 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Paul Bakker5121ce52009-01-03 21:22:43 +000023 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020024#ifndef MBEDTLS_DHM_H
25#define MBEDTLS_DHM_H
Paul Bakker5121ce52009-01-03 21:22:43 +000026
Paul Bakker314052f2011-08-15 09:07:52 +000027#include "bignum.h"
Paul Bakker5121ce52009-01-03 21:22:43 +000028
Paul Bakkerf3b86c12011-01-27 15:24:17 +000029/*
30 * DHM Error codes
31 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020032#define MBEDTLS_ERR_DHM_BAD_INPUT_DATA -0x3080 /**< Bad input parameters to function. */
33#define MBEDTLS_ERR_DHM_READ_PARAMS_FAILED -0x3100 /**< Reading of the DHM parameters failed. */
34#define MBEDTLS_ERR_DHM_MAKE_PARAMS_FAILED -0x3180 /**< Making of the DHM parameters failed. */
35#define MBEDTLS_ERR_DHM_READ_PUBLIC_FAILED -0x3200 /**< Reading of the public values failed. */
36#define MBEDTLS_ERR_DHM_MAKE_PUBLIC_FAILED -0x3280 /**< Making of the public value failed. */
37#define MBEDTLS_ERR_DHM_CALC_SECRET_FAILED -0x3300 /**< Calculation of the DHM secret failed. */
38#define MBEDTLS_ERR_DHM_INVALID_FORMAT -0x3380 /**< The ASN.1 data is not formatted correctly. */
Manuel Pégourié-Gonnard6a8ca332015-05-28 09:33:39 +020039#define MBEDTLS_ERR_DHM_ALLOC_FAILED -0x3400 /**< Allocation of memory failed. */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020040#define MBEDTLS_ERR_DHM_FILE_IO_ERROR -0x3480 /**< Read/write of file failed. */
Paul Bakker5121ce52009-01-03 21:22:43 +000041
Paul Bakkerf3b86c12011-01-27 15:24:17 +000042/**
Paul Bakkerda7e3f22012-09-28 07:18:17 +000043 * RFC 3526 defines a number of standardized Diffie-Hellman groups
44 * for IKE.
Paul Bakker29b64762012-09-25 09:36:44 +000045 * RFC 5114 defines a number of standardized Diffie-Hellman groups
Paul Bakkerda7e3f22012-09-28 07:18:17 +000046 * that can be used.
47 *
48 * Some are included here for convenience.
Paul Bakker29b64762012-09-25 09:36:44 +000049 *
50 * Included are:
Paul Bakkerda7e3f22012-09-28 07:18:17 +000051 * RFC 3526 3. 2048-bit MODP Group
52 * RFC 3526 4. 3072-bit MODP Group
Manuel Pégourié-Gonnard78931032015-07-03 17:06:39 +020053 * RFC 3526 5. 4096-bit MODP Group
Paul Bakkerda7e3f22012-09-28 07:18:17 +000054 * RFC 5114 2.2. 2048-bit MODP Group with 224-bit Prime Order Subgroup
Paul Bakker29b64762012-09-25 09:36:44 +000055 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020056#define MBEDTLS_DHM_RFC3526_MODP_2048_P \
Paul Bakkerda7e3f22012-09-28 07:18:17 +000057 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" \
58 "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" \
59 "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" \
60 "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" \
61 "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" \
62 "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" \
63 "83655D23DCA3AD961C62F356208552BB9ED529077096966D" \
64 "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" \
65 "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" \
66 "DE2BCBF6955817183995497CEA956AE515D2261898FA0510" \
67 "15728E5A8AACAA68FFFFFFFFFFFFFFFF"
68
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020069#define MBEDTLS_DHM_RFC3526_MODP_2048_G "02"
Paul Bakkerda7e3f22012-09-28 07:18:17 +000070
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020071#define MBEDTLS_DHM_RFC3526_MODP_3072_P \
Paul Bakkerda7e3f22012-09-28 07:18:17 +000072 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" \
73 "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" \
74 "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" \
75 "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" \
76 "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" \
77 "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" \
78 "83655D23DCA3AD961C62F356208552BB9ED529077096966D" \
79 "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" \
80 "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" \
81 "DE2BCBF6955817183995497CEA956AE515D2261898FA0510" \
82 "15728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64" \
83 "ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7" \
84 "ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6B" \
85 "F12FFA06D98A0864D87602733EC86A64521F2B18177B200C" \
86 "BBE117577A615D6C770988C0BAD946E208E24FA074E5AB31" \
87 "43DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF"
88
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020089#define MBEDTLS_DHM_RFC3526_MODP_3072_G "02"
Paul Bakkerda7e3f22012-09-28 07:18:17 +000090
Manuel Pégourié-Gonnard78931032015-07-03 17:06:39 +020091#define MBEDTLS_DHM_RFC3526_MODP_4096_P \
92 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" \
93 "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" \
94 "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" \
95 "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" \
96 "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" \
97 "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" \
98 "83655D23DCA3AD961C62F356208552BB9ED529077096966D" \
99 "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" \
100 "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" \
101 "DE2BCBF6955817183995497CEA956AE515D2261898FA0510" \
102 "15728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64" \
103 "ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7" \
104 "ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6B" \
105 "F12FFA06D98A0864D87602733EC86A64521F2B18177B200C" \
106 "BBE117577A615D6C770988C0BAD946E208E24FA074E5AB31" \
107 "43DB5BFCE0FD108E4B82D120A92108011A723C12A787E6D7" \
108 "88719A10BDBA5B2699C327186AF4E23C1A946834B6150BDA" \
109 "2583E9CA2AD44CE8DBBBC2DB04DE8EF92E8EFC141FBECAA6" \
110 "287C59474E6BC05D99B2964FA090C3A2233BA186515BE7ED" \
111 "1F612970CEE2D7AFB81BDD762170481CD0069127D5B05AA9" \
112 "93B4EA988D8FDDC186FFB7DC90A6C08F4DF435C934063199" \
113 "FFFFFFFFFFFFFFFF"
Paul Bakker29b64762012-09-25 09:36:44 +0000114
Manuel Pégourié-Gonnard78931032015-07-03 17:06:39 +0200115#define MBEDTLS_DHM_RFC3526_MODP_4096_G "02"
Paul Bakker29b64762012-09-25 09:36:44 +0000116
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200117#define MBEDTLS_DHM_RFC5114_MODP_2048_P \
Paul Bakker29b64762012-09-25 09:36:44 +0000118 "AD107E1E9123A9D0D660FAA79559C51FA20D64E5683B9FD1" \
119 "B54B1597B61D0A75E6FA141DF95A56DBAF9A3C407BA1DF15" \
120 "EB3D688A309C180E1DE6B85A1274A0A66D3F8152AD6AC212" \
121 "9037C9EDEFDA4DF8D91E8FEF55B7394B7AD5B7D0B6C12207" \
122 "C9F98D11ED34DBF6C6BA0B2C8BBC27BE6A00E0A0B9C49708" \
123 "B3BF8A317091883681286130BC8985DB1602E714415D9330" \
124 "278273C7DE31EFDC7310F7121FD5A07415987D9ADC0A486D" \
125 "CDF93ACC44328387315D75E198C641A480CD86A1B9E587E8" \
126 "BE60E69CC928B2B9C52172E413042E9B23F10B0E16E79763" \
127 "C9B53DCF4BA80A29E3FB73C16B8E75B97EF363E2FFA31F71" \
Paul Bakkera864f2e2012-09-26 08:29:20 +0000128 "CF9DE5384E71B81C0AC4DFFE0C10E64F"
Paul Bakker29b64762012-09-25 09:36:44 +0000129
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200130#define MBEDTLS_DHM_RFC5114_MODP_2048_G \
Paul Bakker29b64762012-09-25 09:36:44 +0000131 "AC4032EF4F2D9AE39DF30B5C8FFDAC506CDEBE7B89998CAF"\
132 "74866A08CFE4FFE3A6824A4E10B9A6F0DD921F01A70C4AFA"\
133 "AB739D7700C29F52C57DB17C620A8652BE5E9001A8D66AD7"\
134 "C17669101999024AF4D027275AC1348BB8A762D0521BC98A"\
135 "E247150422EA1ED409939D54DA7460CDB5F6C6B250717CBE"\
136 "F180EB34118E98D119529A45D6F834566E3025E316A330EF"\
137 "BB77A86F0C1AB15B051AE3D428C8F8ACB70A8137150B8EEB"\
138 "10E183EDD19963DDD9E263E4770589EF6AA21E7F5F2FF381"\
139 "B539CCE3409D13CD566AFBB48D6C019181E1BCFE94B30269"\
140 "EDFE72FE9B6AA4BD7B5A0F1C71CFFF4C19C418E1F6EC0179"\
Paul Bakkera864f2e2012-09-26 08:29:20 +0000141 "81BC087F2A7065B384B890D3191F2BFA"
Paul Bakker29b64762012-09-25 09:36:44 +0000142
Paul Bakker407a0da2013-06-27 14:29:21 +0200143#ifdef __cplusplus
144extern "C" {
145#endif
146
Paul Bakker29b64762012-09-25 09:36:44 +0000147/**
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000148 * \brief DHM context structure
149 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000150typedef struct
151{
Paul Bakker23986e52011-04-24 08:57:21 +0000152 size_t len; /*!< size(P) in chars */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200153 mbedtls_mpi P; /*!< prime modulus */
154 mbedtls_mpi G; /*!< generator */
155 mbedtls_mpi X; /*!< secret value */
156 mbedtls_mpi GX; /*!< self = G^X mod P */
157 mbedtls_mpi GY; /*!< peer = G^Y mod P */
158 mbedtls_mpi K; /*!< key = GY^X mod P */
159 mbedtls_mpi RP; /*!< cached R^2 mod P */
160 mbedtls_mpi Vi; /*!< blinding value */
161 mbedtls_mpi Vf; /*!< un-blinding value */
162 mbedtls_mpi pX; /*!< previous X */
Paul Bakker5121ce52009-01-03 21:22:43 +0000163}
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200164mbedtls_dhm_context;
Paul Bakker5121ce52009-01-03 21:22:43 +0000165
Paul Bakker5121ce52009-01-03 21:22:43 +0000166/**
Paul Bakker8f870b02014-06-20 13:32:38 +0200167 * \brief Initialize DHM context
168 *
169 * \param ctx DHM context to be initialized
170 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200171void mbedtls_dhm_init( mbedtls_dhm_context *ctx );
Paul Bakker8f870b02014-06-20 13:32:38 +0200172
173/**
Paul Bakker5121ce52009-01-03 21:22:43 +0000174 * \brief Parse the ServerKeyExchange parameters
175 *
176 * \param ctx DHM context
177 * \param p &(start of input buffer)
178 * \param end end of buffer
179 *
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200180 * \return 0 if successful, or an MBEDTLS_ERR_DHM_XXX error code
Paul Bakker5121ce52009-01-03 21:22:43 +0000181 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200182int mbedtls_dhm_read_params( mbedtls_dhm_context *ctx,
Paul Bakker5121ce52009-01-03 21:22:43 +0000183 unsigned char **p,
Paul Bakkerff60ee62010-03-16 21:09:09 +0000184 const unsigned char *end );
Paul Bakker5121ce52009-01-03 21:22:43 +0000185
186/**
187 * \brief Setup and write the ServerKeyExchange parameters
188 *
189 * \param ctx DHM context
Paul Bakkerff7fe672010-07-18 09:45:05 +0000190 * \param x_size private value size in bytes
Paul Bakker5121ce52009-01-03 21:22:43 +0000191 * \param output destination buffer
192 * \param olen number of chars written
193 * \param f_rng RNG function
194 * \param p_rng RNG parameter
195 *
196 * \note This function assumes that ctx->P and ctx->G
197 * have already been properly set (for example
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200198 * using mbedtls_mpi_read_string or mbedtls_mpi_read_binary).
Paul Bakker5121ce52009-01-03 21:22:43 +0000199 *
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200200 * \return 0 if successful, or an MBEDTLS_ERR_DHM_XXX error code
Paul Bakker5121ce52009-01-03 21:22:43 +0000201 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200202int mbedtls_dhm_make_params( mbedtls_dhm_context *ctx, int x_size,
Paul Bakker23986e52011-04-24 08:57:21 +0000203 unsigned char *output, size_t *olen,
Paul Bakkera3d195c2011-11-27 21:07:34 +0000204 int (*f_rng)(void *, unsigned char *, size_t),
205 void *p_rng );
Paul Bakker5121ce52009-01-03 21:22:43 +0000206
207/**
208 * \brief Import the peer's public value G^Y
209 *
210 * \param ctx DHM context
211 * \param input input buffer
212 * \param ilen size of buffer
213 *
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200214 * \return 0 if successful, or an MBEDTLS_ERR_DHM_XXX error code
Paul Bakker5121ce52009-01-03 21:22:43 +0000215 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200216int mbedtls_dhm_read_public( mbedtls_dhm_context *ctx,
Paul Bakker23986e52011-04-24 08:57:21 +0000217 const unsigned char *input, size_t ilen );
Paul Bakker5121ce52009-01-03 21:22:43 +0000218
219/**
220 * \brief Create own private value X and export G^X
221 *
222 * \param ctx DHM context
Paul Bakker84bef1d2012-04-20 13:42:02 +0000223 * \param x_size private value size in bytes
Paul Bakker5121ce52009-01-03 21:22:43 +0000224 * \param output destination buffer
225 * \param olen must be equal to ctx->P.len
226 * \param f_rng RNG function
227 * \param p_rng RNG parameter
228 *
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200229 * \return 0 if successful, or an MBEDTLS_ERR_DHM_XXX error code
Paul Bakker5121ce52009-01-03 21:22:43 +0000230 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200231int mbedtls_dhm_make_public( mbedtls_dhm_context *ctx, int x_size,
Paul Bakker23986e52011-04-24 08:57:21 +0000232 unsigned char *output, size_t olen,
Paul Bakkera3d195c2011-11-27 21:07:34 +0000233 int (*f_rng)(void *, unsigned char *, size_t),
234 void *p_rng );
Paul Bakker5121ce52009-01-03 21:22:43 +0000235
236/**
237 * \brief Derive and export the shared secret (G^Y)^X mod P
238 *
239 * \param ctx DHM context
240 * \param output destination buffer
Manuel Pégourié-Gonnard33352052015-06-02 16:17:08 +0100241 * \param output_size size of the destination buffer
242 * \param olen on exit, holds the actual number of bytes written
Manuel Pégourié-Gonnard2d627642013-09-04 14:22:07 +0200243 * \param f_rng RNG function, for blinding purposes
244 * \param p_rng RNG parameter
Paul Bakker5121ce52009-01-03 21:22:43 +0000245 *
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200246 * \return 0 if successful, or an MBEDTLS_ERR_DHM_XXX error code
Manuel Pégourié-Gonnard143b5022013-09-04 16:29:59 +0200247 *
Manuel Pégourié-Gonnard15d5de12013-09-17 11:34:11 +0200248 * \note If non-NULL, f_rng is used to blind the input as
249 * countermeasure against timing attacks. Blinding is
250 * automatically used if and only if our secret value X is
251 * re-used and costs nothing otherwise, so it is recommended
252 * to always pass a non-NULL f_rng argument.
Paul Bakker5121ce52009-01-03 21:22:43 +0000253 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200254int mbedtls_dhm_calc_secret( mbedtls_dhm_context *ctx,
Manuel Pégourié-Gonnard33352052015-06-02 16:17:08 +0100255 unsigned char *output, size_t output_size, size_t *olen,
Manuel Pégourié-Gonnard2d627642013-09-04 14:22:07 +0200256 int (*f_rng)(void *, unsigned char *, size_t),
257 void *p_rng );
Paul Bakker5121ce52009-01-03 21:22:43 +0000258
Paul Bakker9a736322012-11-14 12:39:52 +0000259/**
Paul Bakker8f870b02014-06-20 13:32:38 +0200260 * \brief Free and clear the components of a DHM key
261 *
262 * \param ctx DHM context to free and clear
Paul Bakker5121ce52009-01-03 21:22:43 +0000263 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200264void mbedtls_dhm_free( mbedtls_dhm_context *ctx );
Paul Bakker5121ce52009-01-03 21:22:43 +0000265
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200266#if defined(MBEDTLS_ASN1_PARSE_C)
Paul Bakker40ce79f2013-09-15 17:43:54 +0200267/** \ingroup x509_module */
268/**
Manuel Pégourié-Gonnard43b37cb2015-05-12 11:20:10 +0200269 * \brief Parse DHM parameters in PEM or DER format
Paul Bakker40ce79f2013-09-15 17:43:54 +0200270 *
271 * \param dhm DHM context to be initialized
272 * \param dhmin input buffer
273 * \param dhminlen size of the buffer
Manuel Pégourié-Gonnard43b37cb2015-05-12 11:20:10 +0200274 * (including the terminating null byte for PEM data)
Paul Bakker40ce79f2013-09-15 17:43:54 +0200275 *
276 * \return 0 if successful, or a specific DHM or PEM error code
277 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200278int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin,
Paul Bakker40ce79f2013-09-15 17:43:54 +0200279 size_t dhminlen );
280
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200281#if defined(MBEDTLS_FS_IO)
Paul Bakker40ce79f2013-09-15 17:43:54 +0200282/** \ingroup x509_module */
283/**
284 * \brief Load and parse DHM parameters
285 *
286 * \param dhm DHM context to be initialized
287 * \param path filename to read the DHM Parameters from
288 *
289 * \return 0 if successful, or a specific DHM or PEM error code
290 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200291int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path );
292#endif /* MBEDTLS_FS_IO */
293#endif /* MBEDTLS_ASN1_PARSE_C */
Paul Bakker40ce79f2013-09-15 17:43:54 +0200294
Paul Bakker5121ce52009-01-03 21:22:43 +0000295/**
296 * \brief Checkup routine
297 *
298 * \return 0 if successful, or 1 if the test failed
299 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200300int mbedtls_dhm_self_test( int verbose );
Paul Bakker5121ce52009-01-03 21:22:43 +0000301
302#ifdef __cplusplus
303}
304#endif
305
Paul Bakker9af723c2014-05-01 13:03:14 +0200306#endif /* dhm.h */