Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: MiniTLS-HTTPS-Example
MiniTLS Class Reference
#include <MiniTLS.h>
Public Member Functions | |
| MiniTLS () | |
| Create MiniTLS instance. | |
| void | init () |
| Initialize MiniTLS library This function will initialize the Pseudo Random Number Generator and the MiniTLS library. | |
| void | feedPRNG (uint8_t *buffer, size_t length) |
| Feed the Pseudo Random Number Generator with random seed data. | |
| minitls_err_t | addCertificate (const uint8_t *cert, size_t certSize, const uint8_t *pubKey, size_t pubKeySize) |
| Add a public certificate The certificate must be x509-formatted The key must be x963-formatted (ECC) or PKCS1-formatted (RSA) | |
Friends | |
| class | TLSSocket |
Detailed Description
MiniTLS library.
Definition at line 39 of file MiniTLS.h.
Constructor & Destructor Documentation
| MiniTLS | ( | ) |
Create MiniTLS instance.
Definition at line 43 of file MiniTLS.cpp.
Member Function Documentation
| minitls_err_t addCertificate | ( | const uint8_t * | cert, |
| size_t | certSize, | ||
| const uint8_t * | pubKey, | ||
| size_t | pubKeySize | ||
| ) |
Add a public certificate The certificate must be x509-formatted The key must be x963-formatted (ECC) or PKCS1-formatted (RSA)
- Parameters:
-
cert certificate certSize size of the certificate in bytes pubKey public key (can point within the certificate) pubKeySize public key's size
- Returns:
- MINITLS_OK on success, MINITLS_ERR_* error code otherwise
- Note:
- only one certificate supported at the moment
Definition at line 81 of file MiniTLS.cpp.
| void feedPRNG | ( | uint8_t * | buffer, |
| size_t | length | ||
| ) |
Feed the Pseudo Random Number Generator with random seed data.
- Parameters:
-
buffer data to feed length the buffer's length
Definition at line 66 of file MiniTLS.cpp.
| void init | ( | ) |
Initialize MiniTLS library This function will initialize the Pseudo Random Number Generator and the MiniTLS library.
Definition at line 56 of file MiniTLS.cpp.
Generated on Wed Jul 13 2022 00:22:55 by
1.7.2
