blob: 045b060a390bceeeb43b412a7a7b7dd4d309c93b [file] [log] [blame]
Paul Bakker37ca75d2011-01-06 12:28:03 +00001/**
2 * @file
3 * Hashing module documentation file.
Manuel Pégourié-Gonnard8119dad2015-08-06 10:59:26 +02004 *
5 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
6 *
7 * This file is part of mbed TLS (https://tls.mbed.org)
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Paul Bakker37ca75d2011-01-06 12:28:03 +000022 */
23
24/**
25 * @addtogroup hashing_module Hashing module
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020026 *
Paul Bakker37ca75d2011-01-06 12:28:03 +000027 * The Hashing module provides one-way hashing functions. Such functions can be
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020028 * used for creating a hash message authentication code (HMAC) when sending a
Paul Bakker37ca75d2011-01-06 12:28:03 +000029 * message. Such a HMAC can be used in combination with a private key
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020030 * for authentication, which is a message integrity control.
31 *
32 * All hash algorithms can be accessed via the generic MD layer (see
Manuel Pégourié-Gonnardabb67442015-03-25 16:29:51 +010033 * \c md_setup())
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020034 *
Paul Bakker37ca75d2011-01-06 12:28:03 +000035 * The following hashing-algorithms are provided:
Manuel Pégourié-Gonnardd4b91732015-03-25 16:25:23 +010036 * - MD2, MD4, MD5 128-bit one-way hash functions by Ron Rivest.
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020037 * - SHA-1, SHA-256, SHA-384/512 160-bit or more one-way hash functions by
Manuel Pégourié-Gonnardd4b91732015-03-25 16:25:23 +010038 * NIST and NSA.
Paul Bakker37ca75d2011-01-06 12:28:03 +000039 *
40 * This module provides one-way hashing which can be used for authentication.
41 */