RSA/DSA/ECDSA/SM2/EdDSA signature generation (TLS 1.3) More...
#include "tls.h"
#include "tls_sign_generate.h"
#include "tls_transcript_hash.h"
#include "tls_misc.h"
#include "tls13_sign_generate.h"
#include "pkix/pem_import.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL TLS_TRACE_LEVEL |
Functions | |
error_t | tls13GenerateSignature (TlsContext *context, uint8_t *p, size_t *length) |
Digital signature generation (TLS 1.3) More... | |
error_t | tls13GenerateRsaPssSignature (TlsContext *context, const uint8_t *message, size_t length, Tls13DigitalSignature *signature) |
RSA-PSS signature generation (TLS 1.3) More... | |
error_t | tls13GenerateEcdsaSignature (TlsContext *context, const uint8_t *message, size_t length, Tls13DigitalSignature *signature) |
ECDSA signature generation (TLS 1.3) More... | |
error_t | tls13GenerateSm2Signature (TlsContext *context, const uint8_t *message, size_t length, Tls13DigitalSignature *signature) |
SM2 signature generation (TLS 1.3) More... | |
error_t | tls13GenerateEd25519Signature (TlsContext *context, const uint8_t *message, size_t length, Tls13DigitalSignature *signature) |
Ed25519 signature generation (TLS 1.3) More... | |
error_t | tls13GenerateEd448Signature (TlsContext *context, const uint8_t *message, size_t length, Tls13DigitalSignature *signature) |
Ed448 signature generation (TLS 1.3) More... | |
Detailed Description
RSA/DSA/ECDSA/SM2/EdDSA signature generation (TLS 1.3)
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneSSL 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.4.4
Definition in file tls13_sign_generate.c.
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL TLS_TRACE_LEVEL |
Definition at line 32 of file tls13_sign_generate.c.
Function Documentation
◆ tls13GenerateEcdsaSignature()
error_t tls13GenerateEcdsaSignature | ( | TlsContext * | context, |
const uint8_t * | message, | ||
size_t | length, | ||
Tls13DigitalSignature * | signature | ||
) |
ECDSA signature generation (TLS 1.3)
- Parameters
-
[in] context Pointer to the TLS context [in] message Pointer to the message to be signed [in] length Length of the message, in bytes [out] signature Buffer where to store the digital signature
- Returns
- Error code
Definition at line 278 of file tls13_sign_generate.c.
◆ tls13GenerateEd25519Signature()
error_t tls13GenerateEd25519Signature | ( | TlsContext * | context, |
const uint8_t * | message, | ||
size_t | length, | ||
Tls13DigitalSignature * | signature | ||
) |
Ed25519 signature generation (TLS 1.3)
- Parameters
-
[in] context Pointer to the TLS context [in] message Pointer to the message to be signed [in] length Length of the message, in bytes [out] signature Buffer where to store the digital signature
- Returns
- Error code
Definition at line 427 of file tls13_sign_generate.c.
◆ tls13GenerateEd448Signature()
error_t tls13GenerateEd448Signature | ( | TlsContext * | context, |
const uint8_t * | message, | ||
size_t | length, | ||
Tls13DigitalSignature * | signature | ||
) |
Ed448 signature generation (TLS 1.3)
- Parameters
-
[in] context Pointer to the TLS context [in] message Pointer to the message to be signed [in] length Length of the message, in bytes [out] signature Buffer where to store the digital signature
- Returns
- Error code
Definition at line 470 of file tls13_sign_generate.c.
◆ tls13GenerateRsaPssSignature()
error_t tls13GenerateRsaPssSignature | ( | TlsContext * | context, |
const uint8_t * | message, | ||
size_t | length, | ||
Tls13DigitalSignature * | signature | ||
) |
RSA-PSS signature generation (TLS 1.3)
- Parameters
-
[in] context Pointer to the TLS context [in] message Pointer to the message to be signed [in] length Length of the message, in bytes [out] signature Buffer where to store the digital signature
- Returns
- Error code
Definition at line 201 of file tls13_sign_generate.c.
◆ tls13GenerateSignature()
error_t tls13GenerateSignature | ( | TlsContext * | context, |
uint8_t * | p, | ||
size_t * | length | ||
) |
Digital signature generation (TLS 1.3)
- Parameters
-
[in] context Pointer to the TLS context [out] p Buffer where to store the digitally-signed element [out] length Length of the digitally-signed element
- Returns
- Error code
Definition at line 55 of file tls13_sign_generate.c.
◆ tls13GenerateSm2Signature()
error_t tls13GenerateSm2Signature | ( | TlsContext * | context, |
const uint8_t * | message, | ||
size_t | length, | ||
Tls13DigitalSignature * | signature | ||
) |
SM2 signature generation (TLS 1.3)
- Parameters
-
[in] context Pointer to the TLS context [in] message Pointer to the message to be signed [in] length Length of the message, in bytes [out] signature Buffer where to store the digital signature
- Returns
- Error code
Definition at line 354 of file tls13_sign_generate.c.