Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 1 | /** |
| 2 | * \file md.h |
Paul Bakker | 9af723c | 2014-05-01 13:03:14 +0200 | [diff] [blame] | 3 | * |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 4 | * \brief Generic message digest wrapper |
| 5 | * |
| 6 | * \author Adriaan de Jong <dejong@fox-it.com> |
| 7 | * |
Manuel Pégourié-Gonnard | ca878db | 2015-03-24 12:13:30 +0100 | [diff] [blame] | 8 | * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 9 | * |
Manuel Pégourié-Gonnard | fe44643 | 2015-03-06 13:17:10 +0000 | [diff] [blame] | 10 | * This file is part of mbed TLS (https://tls.mbed.org) |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 11 | * |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 12 | * This program is free software; you can redistribute it and/or modify |
| 13 | * it under the terms of the GNU General Public License as published by |
| 14 | * the Free Software Foundation; either version 2 of the License, or |
| 15 | * (at your option) any later version. |
| 16 | * |
| 17 | * This program is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | * GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License along |
| 23 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 24 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 25 | */ |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 26 | #ifndef POLARSSL_MD_H |
| 27 | #define POLARSSL_MD_H |
| 28 | |
Rich Evans | 00ab470 | 2015-02-06 13:43:58 +0000 | [diff] [blame] | 29 | #include <stddef.h> |
Paul Bakker | 23986e5 | 2011-04-24 08:57:21 +0000 | [diff] [blame] | 30 | |
Paul Bakker | 09b1ec6 | 2011-07-27 16:28:54 +0000 | [diff] [blame] | 31 | #if defined(_MSC_VER) && !defined(inline) |
Paul Bakker | af5c85f | 2011-04-18 03:47:52 +0000 | [diff] [blame] | 32 | #define inline _inline |
Paul Bakker | 569df2c | 2011-06-21 07:48:07 +0000 | [diff] [blame] | 33 | #else |
Paul Bakker | 09b1ec6 | 2011-07-27 16:28:54 +0000 | [diff] [blame] | 34 | #if defined(__ARMCC_VERSION) && !defined(inline) |
Paul Bakker | 569df2c | 2011-06-21 07:48:07 +0000 | [diff] [blame] | 35 | #define inline __inline |
Paul Bakker | 74fb74e | 2011-06-21 13:36:18 +0000 | [diff] [blame] | 36 | #endif /* __ARMCC_VERSION */ |
Paul Bakker | 569df2c | 2011-06-21 07:48:07 +0000 | [diff] [blame] | 37 | #endif /*_MSC_VER */ |
Paul Bakker | af5c85f | 2011-04-18 03:47:52 +0000 | [diff] [blame] | 38 | |
Paul Bakker | 9d78140 | 2011-05-09 16:17:09 +0000 | [diff] [blame] | 39 | #define POLARSSL_ERR_MD_FEATURE_UNAVAILABLE -0x5080 /**< The selected feature is not available. */ |
Paul Bakker | 9c021ad | 2011-06-09 15:55:11 +0000 | [diff] [blame] | 40 | #define POLARSSL_ERR_MD_BAD_INPUT_DATA -0x5100 /**< Bad input parameters to function. */ |
| 41 | #define POLARSSL_ERR_MD_ALLOC_FAILED -0x5180 /**< Failed to allocate memory. */ |
Paul Bakker | 8913f82 | 2012-01-14 18:07:41 +0000 | [diff] [blame] | 42 | #define POLARSSL_ERR_MD_FILE_IO_ERROR -0x5200 /**< Opening or reading of file failed. */ |
Paul Bakker | 335db3f | 2011-04-25 15:28:35 +0000 | [diff] [blame] | 43 | |
Paul Bakker | 407a0da | 2013-06-27 14:29:21 +0200 | [diff] [blame] | 44 | #ifdef __cplusplus |
| 45 | extern "C" { |
| 46 | #endif |
| 47 | |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 48 | typedef enum { |
Paul Bakker | 562535d | 2011-01-20 16:42:01 +0000 | [diff] [blame] | 49 | POLARSSL_MD_NONE=0, |
| 50 | POLARSSL_MD_MD2, |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 51 | POLARSSL_MD_MD4, |
| 52 | POLARSSL_MD_MD5, |
| 53 | POLARSSL_MD_SHA1, |
| 54 | POLARSSL_MD_SHA224, |
| 55 | POLARSSL_MD_SHA256, |
| 56 | POLARSSL_MD_SHA384, |
| 57 | POLARSSL_MD_SHA512, |
Paul Bakker | 61b699e | 2014-01-22 13:35:29 +0100 | [diff] [blame] | 58 | POLARSSL_MD_RIPEMD160, |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 59 | } md_type_t; |
| 60 | |
Paul Bakker | 7db0109 | 2013-09-10 11:10:57 +0200 | [diff] [blame] | 61 | #if defined(POLARSSL_SHA512_C) |
Paul Bakker | 1b57b06 | 2011-01-06 15:48:19 +0000 | [diff] [blame] | 62 | #define POLARSSL_MD_MAX_SIZE 64 /* longest known is SHA512 */ |
Paul Bakker | 7db0109 | 2013-09-10 11:10:57 +0200 | [diff] [blame] | 63 | #else |
| 64 | #define POLARSSL_MD_MAX_SIZE 32 /* longest known is SHA256 or less */ |
| 65 | #endif |
Paul Bakker | 1b57b06 | 2011-01-06 15:48:19 +0000 | [diff] [blame] | 66 | |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 67 | /** |
Manuel Pégourié-Gonnard | ca878db | 2015-03-24 12:13:30 +0100 | [diff] [blame] | 68 | * Opaque struct defined in md_wrap.h |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 69 | */ |
Manuel Pégourié-Gonnard | ca878db | 2015-03-24 12:13:30 +0100 | [diff] [blame] | 70 | typedef struct _md_info_t md_info_t; |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 71 | |
| 72 | /** |
| 73 | * Generic message digest context. |
| 74 | */ |
| 75 | typedef struct { |
| 76 | /** Information about the associated message digest */ |
| 77 | const md_info_t *md_info; |
| 78 | |
| 79 | /** Digest-specific context */ |
| 80 | void *md_ctx; |
Manuel Pégourié-Gonnard | 8379a82 | 2015-03-24 16:48:22 +0100 | [diff] [blame] | 81 | |
Manuel Pégourié-Gonnard | dfb3dc8 | 2015-03-25 11:49:07 +0100 | [diff] [blame] | 82 | /** HMAC part of the context */ |
| 83 | void *hmac_ctx; |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 84 | } md_context_t; |
| 85 | |
| 86 | #define MD_CONTEXT_T_INIT { \ |
| 87 | NULL, /* md_info */ \ |
| 88 | NULL, /* md_ctx */ \ |
| 89 | } |
| 90 | |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 91 | /** |
Paul Bakker | 72f6266 | 2011-01-16 21:27:44 +0000 | [diff] [blame] | 92 | * \brief Returns the list of digests supported by the generic digest module. |
| 93 | * |
| 94 | * \return a statically allocated array of digests, the last entry |
| 95 | * is 0. |
| 96 | */ |
| 97 | const int *md_list( void ); |
| 98 | |
| 99 | /** |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 100 | * \brief Returns the message digest information associated with the |
| 101 | * given digest name. |
| 102 | * |
Paul Bakker | 23986e5 | 2011-04-24 08:57:21 +0000 | [diff] [blame] | 103 | * \param md_name Name of the digest to search for. |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 104 | * |
| 105 | * \return The message digest information associated with md_name or |
| 106 | * NULL if not found. |
| 107 | */ |
| 108 | const md_info_t *md_info_from_string( const char *md_name ); |
| 109 | |
| 110 | /** |
| 111 | * \brief Returns the message digest information associated with the |
| 112 | * given digest type. |
| 113 | * |
| 114 | * \param md_type type of digest to search for. |
| 115 | * |
| 116 | * \return The message digest information associated with md_type or |
| 117 | * NULL if not found. |
| 118 | */ |
| 119 | const md_info_t *md_info_from_type( md_type_t md_type ); |
| 120 | |
| 121 | /** |
Paul Bakker | 84bbeb5 | 2014-07-01 14:53:22 +0200 | [diff] [blame] | 122 | * \brief Initialize a md_context (as NONE) |
| 123 | */ |
| 124 | void md_init( md_context_t *ctx ); |
| 125 | |
| 126 | /** |
| 127 | * \brief Free and clear the message-specific context of ctx. |
| 128 | * Freeing ctx itself remains the responsibility of the |
| 129 | * caller. |
| 130 | */ |
| 131 | void md_free( md_context_t *ctx ); |
| 132 | |
| 133 | /** |
Paul Bakker | b9e4e2c | 2014-05-01 14:18:25 +0200 | [diff] [blame] | 134 | * \brief Initialises and fills the message digest context structure |
| 135 | * with the appropriate values. |
Paul Bakker | 562535d | 2011-01-20 16:42:01 +0000 | [diff] [blame] | 136 | * |
Paul Bakker | 84bbeb5 | 2014-07-01 14:53:22 +0200 | [diff] [blame] | 137 | * \note Currently also clears structure. In future versions you |
| 138 | * will be required to call md_init() on the structure |
| 139 | * first. |
| 140 | * |
Paul Bakker | 562535d | 2011-01-20 16:42:01 +0000 | [diff] [blame] | 141 | * \param ctx context to initialise. May not be NULL. The |
| 142 | * digest-specific context (ctx->md_ctx) must be NULL. It will |
Manuel Pégourié-Gonnard | ca878db | 2015-03-24 12:13:30 +0100 | [diff] [blame] | 143 | * be allocated, and must be freed using md_free() later. |
Paul Bakker | 562535d | 2011-01-20 16:42:01 +0000 | [diff] [blame] | 144 | * \param md_info message digest to use. |
Manuel Pégourié-Gonnard | 4063ceb | 2015-03-25 16:08:53 +0100 | [diff] [blame^] | 145 | * \param hmac non-zero if you want to use this context for hmac too, |
| 146 | * zero otherwise (saves some memory). |
Paul Bakker | 562535d | 2011-01-20 16:42:01 +0000 | [diff] [blame] | 147 | * |
Paul Bakker | 9c021ad | 2011-06-09 15:55:11 +0000 | [diff] [blame] | 148 | * \returns \c 0 on success, \c POLARSSL_ERR_MD_BAD_INPUT_DATA on |
| 149 | * parameter failure, \c POLARSSL_ERR_MD_ALLOC_FAILED if |
Paul Bakker | 2028156 | 2011-11-11 10:34:04 +0000 | [diff] [blame] | 150 | * allocation of the digest-specific context failed. |
Paul Bakker | 562535d | 2011-01-20 16:42:01 +0000 | [diff] [blame] | 151 | */ |
Manuel Pégourié-Gonnard | 4063ceb | 2015-03-25 16:08:53 +0100 | [diff] [blame^] | 152 | int md_init_ctx( md_context_t *ctx, const md_info_t *md_info, int hmac ); |
Paul Bakker | 562535d | 2011-01-20 16:42:01 +0000 | [diff] [blame] | 153 | |
| 154 | /** |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 155 | * \brief Returns the size of the message digest output. |
| 156 | * |
| 157 | * \param md_info message digest info |
| 158 | * |
| 159 | * \return size of the message digest output. |
| 160 | */ |
Manuel Pégourié-Gonnard | ca878db | 2015-03-24 12:13:30 +0100 | [diff] [blame] | 161 | unsigned char md_get_size( const md_info_t *md_info ); |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 162 | |
| 163 | /** |
| 164 | * \brief Returns the type of the message digest output. |
| 165 | * |
| 166 | * \param md_info message digest info |
| 167 | * |
| 168 | * \return type of the message digest output. |
| 169 | */ |
Manuel Pégourié-Gonnard | ca878db | 2015-03-24 12:13:30 +0100 | [diff] [blame] | 170 | md_type_t md_get_type( const md_info_t *md_info ); |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 171 | |
| 172 | /** |
| 173 | * \brief Returns the name of the message digest output. |
| 174 | * |
| 175 | * \param md_info message digest info |
| 176 | * |
| 177 | * \return name of the message digest output. |
| 178 | */ |
Manuel Pégourié-Gonnard | ca878db | 2015-03-24 12:13:30 +0100 | [diff] [blame] | 179 | const char *md_get_name( const md_info_t *md_info ); |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 180 | |
| 181 | /** |
Paul Bakker | 562535d | 2011-01-20 16:42:01 +0000 | [diff] [blame] | 182 | * \brief Set-up the given context for a new message digest |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 183 | * |
Paul Bakker | 562535d | 2011-01-20 16:42:01 +0000 | [diff] [blame] | 184 | * \param ctx generic message digest context. |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 185 | * |
Paul Bakker | 9c021ad | 2011-06-09 15:55:11 +0000 | [diff] [blame] | 186 | * \returns 0 on success, POLARSSL_ERR_MD_BAD_INPUT_DATA if parameter |
| 187 | * verification fails. |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 188 | */ |
Paul Bakker | 562535d | 2011-01-20 16:42:01 +0000 | [diff] [blame] | 189 | int md_starts( md_context_t *ctx ); |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 190 | |
| 191 | /** |
| 192 | * \brief Generic message digest process buffer |
| 193 | * |
| 194 | * \param ctx Generic message digest context |
| 195 | * \param input buffer holding the datal |
| 196 | * \param ilen length of the input data |
| 197 | * |
Paul Bakker | 9c021ad | 2011-06-09 15:55:11 +0000 | [diff] [blame] | 198 | * \returns 0 on success, POLARSSL_ERR_MD_BAD_INPUT_DATA if parameter |
| 199 | * verification fails. |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 200 | */ |
Paul Bakker | 23986e5 | 2011-04-24 08:57:21 +0000 | [diff] [blame] | 201 | int md_update( md_context_t *ctx, const unsigned char *input, size_t ilen ); |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 202 | |
| 203 | /** |
| 204 | * \brief Generic message digest final digest |
| 205 | * |
| 206 | * \param ctx Generic message digest context |
| 207 | * \param output Generic message digest checksum result |
| 208 | * |
Paul Bakker | 9c021ad | 2011-06-09 15:55:11 +0000 | [diff] [blame] | 209 | * \returns 0 on success, POLARSSL_ERR_MD_BAD_INPUT_DATA if parameter |
| 210 | * verification fails. |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 211 | */ |
| 212 | int md_finish( md_context_t *ctx, unsigned char *output ); |
| 213 | |
| 214 | /** |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 215 | * \brief Output = message_digest( input buffer ) |
| 216 | * |
| 217 | * \param md_info message digest info |
| 218 | * \param input buffer holding the data |
| 219 | * \param ilen length of the input data |
| 220 | * \param output Generic message digest checksum result |
| 221 | * |
Paul Bakker | 9c021ad | 2011-06-09 15:55:11 +0000 | [diff] [blame] | 222 | * \returns 0 on success, POLARSSL_ERR_MD_BAD_INPUT_DATA if parameter |
| 223 | * verification fails. |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 224 | */ |
Paul Bakker | 23986e5 | 2011-04-24 08:57:21 +0000 | [diff] [blame] | 225 | int md( const md_info_t *md_info, const unsigned char *input, size_t ilen, |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 226 | unsigned char *output ); |
| 227 | |
| 228 | /** |
| 229 | * \brief Output = message_digest( file contents ) |
| 230 | * |
| 231 | * \param md_info message digest info |
| 232 | * \param path input file name |
| 233 | * \param output generic message digest checksum result |
| 234 | * |
Paul Bakker | 9c021ad | 2011-06-09 15:55:11 +0000 | [diff] [blame] | 235 | * \return 0 if successful, POLARSSL_ERR_MD_FILE_OPEN_FAILED if fopen |
| 236 | * failed, POLARSSL_ERR_MD_FILE_READ_FAILED if fread failed, |
| 237 | * POLARSSL_ERR_MD_BAD_INPUT_DATA if md_info was NULL. |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 238 | */ |
Paul Bakker | b9e4e2c | 2014-05-01 14:18:25 +0200 | [diff] [blame] | 239 | int md_file( const md_info_t *md_info, const char *path, |
| 240 | unsigned char *output ); |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 241 | |
| 242 | /** |
| 243 | * \brief Generic HMAC context setup |
| 244 | * |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 245 | * \param ctx HMAC context to be initialized |
| 246 | * \param key HMAC secret key |
| 247 | * \param keylen length of the HMAC key |
| 248 | * |
Paul Bakker | 9c021ad | 2011-06-09 15:55:11 +0000 | [diff] [blame] | 249 | * \returns 0 on success, POLARSSL_ERR_MD_BAD_INPUT_DATA if parameter |
| 250 | * verification fails. |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 251 | */ |
Paul Bakker | b9e4e2c | 2014-05-01 14:18:25 +0200 | [diff] [blame] | 252 | int md_hmac_starts( md_context_t *ctx, const unsigned char *key, |
| 253 | size_t keylen ); |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 254 | |
| 255 | /** |
| 256 | * \brief Generic HMAC process buffer |
| 257 | * |
| 258 | * \param ctx HMAC context |
| 259 | * \param input buffer holding the data |
| 260 | * \param ilen length of the input data |
| 261 | * |
Paul Bakker | 9c021ad | 2011-06-09 15:55:11 +0000 | [diff] [blame] | 262 | * \returns 0 on success, POLARSSL_ERR_MD_BAD_INPUT_DATA if parameter |
| 263 | * verification fails. |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 264 | */ |
Paul Bakker | b9e4e2c | 2014-05-01 14:18:25 +0200 | [diff] [blame] | 265 | int md_hmac_update( md_context_t *ctx, const unsigned char *input, |
| 266 | size_t ilen ); |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 267 | |
| 268 | /** |
| 269 | * \brief Generic HMAC final digest |
| 270 | * |
| 271 | * \param ctx HMAC context |
| 272 | * \param output Generic HMAC checksum result |
| 273 | * |
Paul Bakker | 9c021ad | 2011-06-09 15:55:11 +0000 | [diff] [blame] | 274 | * \returns 0 on success, POLARSSL_ERR_MD_BAD_INPUT_DATA if parameter |
| 275 | * verification fails. |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 276 | */ |
| 277 | int md_hmac_finish( md_context_t *ctx, unsigned char *output); |
| 278 | |
| 279 | /** |
| 280 | * \brief Generic HMAC context reset |
| 281 | * |
| 282 | * \param ctx HMAC context to be reset |
| 283 | * |
Paul Bakker | 9c021ad | 2011-06-09 15:55:11 +0000 | [diff] [blame] | 284 | * \returns 0 on success, POLARSSL_ERR_MD_BAD_INPUT_DATA if parameter |
| 285 | * verification fails. |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 286 | */ |
| 287 | int md_hmac_reset( md_context_t *ctx ); |
| 288 | |
| 289 | /** |
| 290 | * \brief Output = Generic_HMAC( hmac key, input buffer ) |
| 291 | * |
| 292 | * \param md_info message digest info |
| 293 | * \param key HMAC secret key |
| 294 | * \param keylen length of the HMAC key |
| 295 | * \param input buffer holding the data |
| 296 | * \param ilen length of the input data |
| 297 | * \param output Generic HMAC-result |
| 298 | * |
Paul Bakker | 9c021ad | 2011-06-09 15:55:11 +0000 | [diff] [blame] | 299 | * \returns 0 on success, POLARSSL_ERR_MD_BAD_INPUT_DATA if parameter |
| 300 | * verification fails. |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 301 | */ |
Paul Bakker | 23986e5 | 2011-04-24 08:57:21 +0000 | [diff] [blame] | 302 | int md_hmac( const md_info_t *md_info, const unsigned char *key, size_t keylen, |
| 303 | const unsigned char *input, size_t ilen, |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 304 | unsigned char *output ); |
| 305 | |
Paul Bakker | 1bd3ae8 | 2013-03-13 10:26:44 +0100 | [diff] [blame] | 306 | /* Internal use */ |
| 307 | int md_process( md_context_t *ctx, const unsigned char *data ); |
| 308 | |
Paul Bakker | 1737385 | 2011-01-06 14:20:01 +0000 | [diff] [blame] | 309 | #ifdef __cplusplus |
| 310 | } |
| 311 | #endif |
| 312 | |
| 313 | #endif /* POLARSSL_MD_H */ |