SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
SharkSslPSAStorage.h
Go to the documentation of this file.
1
38#ifndef SHARKSSL_PSA_STORAGE_H
39#define SHARKSSL_PSA_STORAGE_H
40
41#include "psa/crypto.h"
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
73{
74 void *context;
76 uint8_t *material, size_t *length,
77 psa_key_id_t id, size_t capacity);
78 psa_status_t (*create)(void *context, const psa_key_attributes_t *attributes,
79 const uint8_t *material, size_t length);
82
90
91#ifdef __cplusplus
92}
93#endif
94#endif
psa_status_t SharkSslPSAKeyStorage_set(const SharkSslPSAKeyStorage *o)
Register storage, or pass NULL to unregister.
struct SharkSslPSAKeyStorage SharkSslPSAKeyStorage
Platform storage for local persistent keys.
See Choose a SharkSSL API for build scope and the owning API layer.
int32_t psa_status_t
SharkSSL PSA Crypto API 1.4.1/1.5.0 configurable subset.
Definition: crypto.h:57
uint32_t psa_key_id_t
Definition: crypto.h:60
Platform storage for local persistent keys.
Definition: SharkSslPSAStorage.h:73
void * context
Definition: SharkSslPSAStorage.h:74
psa_status_t(* remove)(void *context, psa_key_id_t id)
Definition: SharkSslPSAStorage.h:80
psa_status_t(* create)(void *context, const psa_key_attributes_t *attributes, const uint8_t *material, size_t length)
Definition: SharkSslPSAStorage.h:78
psa_status_t(* read)(void *context, psa_key_attributes_t *attributes, uint8_t *material, size_t *length, psa_key_id_t id, size_t capacity)
Definition: SharkSslPSAStorage.h:75
Attributes are value objects; setters do not allocate resources.
Definition: crypto.h:509