PEM file export functions. More...
Go to the source code of this file.
Functions | |
error_t | pemExportCertificate (const uint8_t *cert, size_t certLen, char_t *output, size_t *written) |
Export an X.509 certificate to PEM format. More... | |
error_t | pemExportCrl (const uint8_t *crl, size_t crlLen, char_t *output, size_t *written) |
Export a certificate revocation list to PEM format. More... | |
error_t | pemExportCsr (const uint8_t *csr, size_t csrLen, char_t *output, size_t *written) |
Export a certification signing request to PEM format. More... | |
error_t | pemExportEcParameters (const EcCurve *curve, char_t *output, size_t *written) |
Export EC domain parameters to PEM format. More... | |
Detailed Description
PEM file export functions.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2025 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
- 2.5.2
Definition in file pem_export.h.
Function Documentation
◆ pemExportCertificate()
error_t pemExportCertificate | ( | const uint8_t * | cert, |
size_t | certLen, | ||
char_t * | output, | ||
size_t * | written | ||
) |
Export an X.509 certificate to PEM format.
- Parameters
-
[in] cert Pointer to the DER-encoded certificate [in] certLen Length of the DER-encoded certificate, in bytes [out] output Buffer where to store the PEM string (optional parameter) [out] written Length of the resulting PEM string
- Returns
- Error code
Definition at line 53 of file pem_export.c.
◆ pemExportCrl()
Export a certificate revocation list to PEM format.
- Parameters
-
[in] crl Pointer to the DER-encoded CRL [in] crlLen Length of the DER-encoded CRL, in bytes [out] output Buffer where to store the PEM string (optional parameter) [out] written Length of the resulting PEM string
- Returns
- Error code
Definition at line 86 of file pem_export.c.
◆ pemExportCsr()
Export a certification signing request to PEM format.
- Parameters
-
[in] csr Pointer to the DER-encoded CSR [in] csrLen Length of the DER-encoded CSR, in bytes [out] output Buffer where to store the PEM string (optional parameter) [out] written Length of the resulting PEM string
- Returns
- Error code
Definition at line 119 of file pem_export.c.
◆ pemExportEcParameters()
Export EC domain parameters to PEM format.
- Parameters
-
[in] curve Elliptic curve parameters [out] output Buffer where to store the PEM string (optional parameter) [out] written Length of the resulting PEM string
- Returns
- Error code
Definition at line 151 of file pem_export.c.