Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 1 | /** |
| 2 | * @file |
| 3 | * Hashing module documentation file. |
Manuel Pégourié-Gonnard | 8119dad | 2015-08-06 10:59:26 +0200 | [diff] [blame^] | 4 | * |
| 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 Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 22 | */ |
| 23 | |
| 24 | /** |
| 25 | * @addtogroup hashing_module Hashing module |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 26 | * |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 27 | * The Hashing module provides one-way hashing functions. Such functions can be |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 28 | * used for creating a hash message authentication code (HMAC) when sending a |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 29 | * message. Such a HMAC can be used in combination with a private key |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 30 | * 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é-Gonnard | abb6744 | 2015-03-25 16:29:51 +0100 | [diff] [blame] | 33 | * \c md_setup()) |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 34 | * |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 35 | * The following hashing-algorithms are provided: |
Manuel Pégourié-Gonnard | d4b9173 | 2015-03-25 16:25:23 +0100 | [diff] [blame] | 36 | * - MD2, MD4, MD5 128-bit one-way hash functions by Ron Rivest. |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 37 | * - SHA-1, SHA-256, SHA-384/512 160-bit or more one-way hash functions by |
Manuel Pégourié-Gonnard | d4b9173 | 2015-03-25 16:25:23 +0100 | [diff] [blame] | 38 | * NIST and NSA. |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 39 | * |
| 40 | * This module provides one-way hashing which can be used for authentication. |
| 41 | */ |