SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
SharkSslPSARSAKey Struct Reference

#include <SharkSslPSAConsumerRSA.h>

Data Fields

psa_key_id_t handle
 
psa_algorithm_t alg
 
U16 bits
 
U8 publicOnly
 
U8 exportable
 

Detailed Description

An RSA key owned by the external PSA provider.

Algorithm is either PSA_ALG_RSA_PKCS1V15_CRYPT, PSA_ALG_RSA_OAEP(hash), PSA_ALG_RSA_PKCS1V15_SIGN(hash), or PSA_ALG_RSA_PSS(hash) with standard salt length Private keys may be non-exportable; the public key can always be exported A signing key can verify with its private handle when the provider supports it Otherwise, verification uses a temporary public handle Initialize once, then call destructor before reusing this context

Field Documentation

◆ alg

psa_algorithm_t SharkSslPSARSAKey::alg

◆ bits

U16 SharkSslPSARSAKey::bits

◆ exportable

U8 SharkSslPSARSAKey::exportable

◆ handle

psa_key_id_t SharkSslPSARSAKey::handle

◆ publicOnly

U8 SharkSslPSARSAKey::publicOnly