QSC Post Quantum Cryptographic Library 1.3.0.0 (C1)
A post quantum secure library written in Ansi C
Loading...
Searching...
No Matches
qsc_tls_signer_default_context Struct Reference

State bound to qsc_tls_certificate_sign_callback when using the default signer. More...

#include <tlssignerdefault.h>

Data Fields

qsc_tls_signature_scheme scheme
const uint8_t * privatekey
size_t privatekeylen

Detailed Description

State bound to qsc_tls_certificate_sign_callback when using the default signer.

The caller populates this struct and passes its address as the state parameter of a qsc_tls_certificate_interface. The pointed-to private key must outlive every handshake that uses this signer. Private-key lengths expected:

scheme privatekeylen qsc_tls_sig_ed25519 64 (QSC_EDDSA_PRIVATEKEY_SIZE) qsc_tls_sig_ecdsa_secp256r1_sha256 QSC_ECDSA_PRIVATEKEY_SIZE qsc_tls_sig_ecdsa_secp384r1_sha384 QSC_ECDSA_PRIVATEKEY_SIZE qsc_tls_sig_mldsa44/65/87 QSC_DILITHIUM_PRIVATEKEY_SIZE

Field Documentation

◆ privatekey

const uint8_t* privatekey

Caller-owned private-key bytes.

◆ privatekeylen

size_t privatekeylen

Length of privatekey in bytes.

◆ scheme

The TLS signature scheme this context signs under.


The documentation for this struct was generated from the following file: