2012-01-23 09:44:43 +00:00
|
|
|
/**
|
2011-01-06 12:28:03 +00:00
|
|
|
* @file
|
|
|
|
* Main page documentation file.
|
2015-08-06 08:59:26 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
|
|
|
|
*
|
|
|
|
* This file is part of mbed TLS (https://tls.mbed.org)
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2011-01-06 12:28:03 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2015-07-10 13:09:43 +00:00
|
|
|
* @mainpage mbed TLS v2.0.0 source code documentation
|
2013-09-10 14:16:50 +00:00
|
|
|
*
|
2015-01-22 16:11:05 +00:00
|
|
|
* This documentation describes the internal structure of mbed TLS. It was
|
2011-01-06 12:28:03 +00:00
|
|
|
* automatically generated from specially formatted comment blocks in
|
2015-01-22 16:11:05 +00:00
|
|
|
* mbed TLS's source code using Doxygen. (See
|
2011-01-06 12:28:03 +00:00
|
|
|
* http://www.stack.nl/~dimitri/doxygen/ for more information on Doxygen)
|
2013-09-10 14:16:50 +00:00
|
|
|
*
|
2015-01-22 16:11:05 +00:00
|
|
|
* mbed TLS has a simple setup: it provides the ingredients for an SSL/TLS
|
2013-09-10 14:16:50 +00:00
|
|
|
* implementation. These ingredients are listed as modules in the
|
|
|
|
* \ref mainpage_modules "Modules section". This "Modules section" introduces
|
|
|
|
* the high-level module concepts used throughout this documentation.\n
|
2015-01-22 16:11:05 +00:00
|
|
|
* Some examples of mbed TLS usage can be found in the \ref mainpage_examples
|
2011-01-06 12:28:03 +00:00
|
|
|
* "Examples section".
|
2013-09-10 14:16:50 +00:00
|
|
|
*
|
2011-01-06 12:28:03 +00:00
|
|
|
* @section mainpage_modules Modules
|
2013-09-10 14:16:50 +00:00
|
|
|
*
|
2015-01-22 16:11:05 +00:00
|
|
|
* mbed TLS supports SSLv3 up to TLSv1.2 communication by providing the
|
2011-01-06 12:28:03 +00:00
|
|
|
* following:
|
|
|
|
* - TCP/IP communication functions: listen, connect, accept, read/write.
|
|
|
|
* - SSL/TLS communication functions: init, handshake, read/write.
|
|
|
|
* - X.509 functions: CRT, CRL and key handling
|
|
|
|
* - Random number generation
|
|
|
|
* - Hashing
|
|
|
|
* - Encryption/decryption
|
|
|
|
*
|
2013-09-10 14:16:50 +00:00
|
|
|
* Above functions are split up neatly into logical interfaces. These can be
|
|
|
|
* used separately to provide any of the above functions or to mix-and-match
|
|
|
|
* into an SSL server/client solution that utilises a X.509 PKI. Examples of
|
|
|
|
* such implementations are amply provided with the source code.
|
|
|
|
*
|
2015-01-22 16:11:05 +00:00
|
|
|
* Note that mbed TLS does not provide a control channel or (multiple) session
|
2013-09-10 14:16:50 +00:00
|
|
|
* handling without additional work from the developer.
|
2011-01-06 12:28:03 +00:00
|
|
|
*
|
|
|
|
* @section mainpage_examples Examples
|
2013-09-10 14:16:50 +00:00
|
|
|
*
|
2011-01-06 12:28:03 +00:00
|
|
|
* Example server setup:
|
|
|
|
*
|
2013-09-10 14:16:50 +00:00
|
|
|
* \b Prerequisites:
|
2011-01-06 12:28:03 +00:00
|
|
|
* - X.509 certificate and private key
|
|
|
|
* - session handling functions
|
|
|
|
*
|
|
|
|
* \b Setup:
|
|
|
|
* - Load your certificate and your private RSA key (X.509 interface)
|
|
|
|
* - Setup the listening TCP socket (TCP/IP interface)
|
|
|
|
* - Accept incoming client connection (TCP/IP interface)
|
|
|
|
* - Initialise as an SSL-server (SSL/TLS interface)
|
|
|
|
* - Set parameters, e.g. authentication, ciphers, CA-chain, key exchange
|
|
|
|
* - Set callback functions RNG, IO, session handling
|
|
|
|
* - Perform an SSL-handshake (SSL/TLS interface)
|
|
|
|
* - Read/write data (SSL/TLS interface)
|
|
|
|
* - Close and cleanup (all interfaces)
|
|
|
|
*
|
|
|
|
* Example client setup:
|
|
|
|
*
|
|
|
|
* \b Prerequisites:
|
|
|
|
* - X.509 certificate and private key
|
|
|
|
* - X.509 trusted CA certificates
|
|
|
|
*
|
|
|
|
* \b Setup:
|
|
|
|
* - Load the trusted CA certificates (X.509 interface)
|
|
|
|
* - Load your certificate and your private RSA key (X.509 interface)
|
|
|
|
* - Setup a TCP/IP connection (TCP/IP interface)
|
|
|
|
* - Initialise as an SSL-client (SSL/TLS interface)
|
|
|
|
* - Set parameters, e.g. authentication mode, ciphers, CA-chain, session
|
|
|
|
* - Set callback functions RNG, IO
|
|
|
|
* - Perform an SSL-handshake (SSL/TLS interface)
|
|
|
|
* - Verify the server certificate (SSL/TLS interface)
|
|
|
|
* - Write/read data (SSL/TLS interface)
|
|
|
|
* - Close and cleanup (all interfaces)
|
|
|
|
*/
|