tls13_sign_generate.h File Reference

RSA/DSA/ECDSA/SM2/EdDSA signature generation (TLS 1.3) More...

#include "tls.h"

Go to the source code of this file.

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.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.4

Definition in file tls13_sign_generate.h.

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]contextPointer to the TLS context
[in]messagePointer to the message to be signed
[in]lengthLength of the message, in bytes
[out]signatureBuffer 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]contextPointer to the TLS context
[in]messagePointer to the message to be signed
[in]lengthLength of the message, in bytes
[out]signatureBuffer 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]contextPointer to the TLS context
[in]messagePointer to the message to be signed
[in]lengthLength of the message, in bytes
[out]signatureBuffer 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]contextPointer to the TLS context
[in]messagePointer to the message to be signed
[in]lengthLength of the message, in bytes
[out]signatureBuffer 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]contextPointer to the TLS context
[out]pBuffer where to store the digitally-signed element
[out]lengthLength 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]contextPointer to the TLS context
[in]messagePointer to the message to be signed
[in]lengthLength of the message, in bytes
[out]signatureBuffer where to store the digital signature
Returns
Error code

Definition at line 354 of file tls13_sign_generate.c.