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.
pem.h File Reference
PEM (Privacy-Enhanced Mail) More...
Go to the source code of this file.
Functions | |
error_t | pemReadDhParameters (const char_t *input, size_t length, DhParameters *params) |
Decode a PEM file containing Diffie-Hellman parameters. | |
error_t | pemReadRsaPrivateKey (const char_t *input, size_t length, RsaPrivateKey *key) |
Decode a PEM file containing a RSA private key. | |
error_t | pemReadDsaPrivateKey (const char_t *input, size_t length, DsaPrivateKey *key) |
Decode a PEM file containing a DSA private key. | |
error_t | pemReadEcParameters (const char_t *input, size_t length, EcDomainParameters *params) |
Decode a PEM file containing EC domain parameters. | |
error_t | pemReadEcPrivateKey (const char_t *input, size_t length, Mpi *key) |
Decode a PEM file containing an EC private key. | |
error_t | pemReadCertificate (const char_t **input, size_t *inputLength, uint8_t **output, size_t *outputSize, size_t *outputLength) |
Decode a PEM file containing a certificate. | |
int_t | pemSearchTag (const char_t *s, size_t sLen, const char_t *tag, size_t tagLen) |
Search a string for a given tag. |
Detailed Description
PEM (Privacy-Enhanced Mail)
License
Copyright (C) 2010-2017 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneCrypto Open.
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.
- Version:
- 1.7.6
Definition in file pem.h.
Function Documentation
error_t pemReadCertificate | ( | const char_t ** | input, |
size_t * | inputLength, | ||
uint8_t ** | output, | ||
size_t * | outputSize, | ||
size_t * | outputLength | ||
) |
Decode a PEM file containing a certificate.
- Parameters:
-
[in,out] input Pointer to the PEM structure [in,out] inputLength Length of the PEM structure [in,out] output Pointer to the DER encoded certificate [in,out] outputSize Size of the memory block that holds the DER certificate [out] outputLength Length of the DER encoded certificate
- Returns:
- Error code
error_t pemReadDhParameters | ( | const char_t * | input, |
size_t | length, | ||
DhParameters * | params | ||
) |
error_t pemReadDsaPrivateKey | ( | const char_t * | input, |
size_t | length, | ||
DsaPrivateKey * | key | ||
) |
error_t pemReadEcParameters | ( | const char_t * | input, |
size_t | length, | ||
EcDomainParameters * | params | ||
) |
error_t pemReadRsaPrivateKey | ( | const char_t * | input, |
size_t | length, | ||
RsaPrivateKey * | key | ||
) |
int_t pemSearchTag | ( | const char_t * | s, |
size_t | sLen, | ||
const char_t * | tag, | ||
size_t | tagLen | ||
) |
Search a string for a given tag.
- Parameters:
-
[in] s String to search [in] sLen Length of the string to search [in] tag String containing the tag to search for [in] tagLen Length of the tag
- Returns:
- The index of the first occurrence of the tag in the string, or -1 if the tag does not appear in the string
Generated on Tue Jul 12 2022 17:10:21 by
