Paul Bakker | 3c18a83 | 2012-01-23 09:44:43 +0000 | [diff] [blame] | 1 | /** |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 2 | * @file |
| 3 | * Main page 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 | /** |
Paul Bakker | 4cb87f4 | 2015-07-10 14:09:43 +0100 | [diff] [blame] | 25 | * @mainpage mbed TLS v2.0.0 source code documentation |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 26 | * |
Manuel Pégourié-Gonnard | b4fe3cb | 2015-01-22 16:11:05 +0000 | [diff] [blame] | 27 | * This documentation describes the internal structure of mbed TLS. It was |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 28 | * automatically generated from specially formatted comment blocks in |
Manuel Pégourié-Gonnard | b4fe3cb | 2015-01-22 16:11:05 +0000 | [diff] [blame] | 29 | * mbed TLS's source code using Doxygen. (See |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 30 | * http://www.stack.nl/~dimitri/doxygen/ for more information on Doxygen) |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 31 | * |
Manuel Pégourié-Gonnard | b4fe3cb | 2015-01-22 16:11:05 +0000 | [diff] [blame] | 32 | * mbed TLS has a simple setup: it provides the ingredients for an SSL/TLS |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 33 | * implementation. These ingredients are listed as modules in the |
| 34 | * \ref mainpage_modules "Modules section". This "Modules section" introduces |
| 35 | * the high-level module concepts used throughout this documentation.\n |
Manuel Pégourié-Gonnard | b4fe3cb | 2015-01-22 16:11:05 +0000 | [diff] [blame] | 36 | * Some examples of mbed TLS usage can be found in the \ref mainpage_examples |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 37 | * "Examples section". |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 38 | * |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 39 | * @section mainpage_modules Modules |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 40 | * |
Manuel Pégourié-Gonnard | b4fe3cb | 2015-01-22 16:11:05 +0000 | [diff] [blame] | 41 | * mbed TLS supports SSLv3 up to TLSv1.2 communication by providing the |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 42 | * following: |
| 43 | * - TCP/IP communication functions: listen, connect, accept, read/write. |
| 44 | * - SSL/TLS communication functions: init, handshake, read/write. |
| 45 | * - X.509 functions: CRT, CRL and key handling |
| 46 | * - Random number generation |
| 47 | * - Hashing |
| 48 | * - Encryption/decryption |
| 49 | * |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 50 | * Above functions are split up neatly into logical interfaces. These can be |
| 51 | * used separately to provide any of the above functions or to mix-and-match |
| 52 | * into an SSL server/client solution that utilises a X.509 PKI. Examples of |
| 53 | * such implementations are amply provided with the source code. |
| 54 | * |
Manuel Pégourié-Gonnard | b4fe3cb | 2015-01-22 16:11:05 +0000 | [diff] [blame] | 55 | * Note that mbed TLS does not provide a control channel or (multiple) session |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 56 | * handling without additional work from the developer. |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 57 | * |
| 58 | * @section mainpage_examples Examples |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 59 | * |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 60 | * Example server setup: |
| 61 | * |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 62 | * \b Prerequisites: |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 63 | * - X.509 certificate and private key |
| 64 | * - session handling functions |
| 65 | * |
| 66 | * \b Setup: |
| 67 | * - Load your certificate and your private RSA key (X.509 interface) |
| 68 | * - Setup the listening TCP socket (TCP/IP interface) |
| 69 | * - Accept incoming client connection (TCP/IP interface) |
| 70 | * - Initialise as an SSL-server (SSL/TLS interface) |
| 71 | * - Set parameters, e.g. authentication, ciphers, CA-chain, key exchange |
| 72 | * - Set callback functions RNG, IO, session handling |
| 73 | * - Perform an SSL-handshake (SSL/TLS interface) |
| 74 | * - Read/write data (SSL/TLS interface) |
| 75 | * - Close and cleanup (all interfaces) |
| 76 | * |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 77 | * Example client setup: |
| 78 | * |
| 79 | * \b Prerequisites: |
| 80 | * - X.509 certificate and private key |
| 81 | * - X.509 trusted CA certificates |
| 82 | * |
| 83 | * \b Setup: |
| 84 | * - Load the trusted CA certificates (X.509 interface) |
| 85 | * - Load your certificate and your private RSA key (X.509 interface) |
| 86 | * - Setup a TCP/IP connection (TCP/IP interface) |
| 87 | * - Initialise as an SSL-client (SSL/TLS interface) |
| 88 | * - Set parameters, e.g. authentication mode, ciphers, CA-chain, session |
| 89 | * - Set callback functions RNG, IO |
| 90 | * - Perform an SSL-handshake (SSL/TLS interface) |
| 91 | * - Verify the server certificate (SSL/TLS interface) |
| 92 | * - Write/read data (SSL/TLS interface) |
| 93 | * - Close and cleanup (all interfaces) |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 94 | */ |