SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
SharkSslPSAConsumerKeyWrap.h
Go to the documentation of this file.
1
37#ifndef SHARKSSL_PSA_CONSUMER_KEY_WRAP_H
38#define SHARKSSL_PSA_CONSUMER_KEY_WRAP_H
39
40#include "SharkSSL.h"
41
42#if (!SHARKSSL_PSA_CONSUMER)
43#error SharkSslPSAConsumerKeyWrap.h requires SHARKSSL_PSA_CONSUMER
44#endif
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
54 U8 *wrapped, U16 wrappedSize, U16 *wrappedLen);
55
60 const U8 *wrapped, U16 wrappedLen,
61 const psa_key_attributes_t *attributes, psa_key_id_t *key);
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif
TLS objects, certificate/session operations, and public-key interfaces.
SHARKSSL_API int SharkSslPSAKeyWrap_wrap(psa_key_id_t kek, psa_algorithm_t algorithm, psa_key_id_t key, U8 *wrapped, U16 wrappedSize, U16 *wrappedLen)
Wrap an exportable PSA key under a caller-owned AES key-encryption key.
SHARKSSL_API int SharkSslPSAKeyWrap_unwrap(psa_key_id_t kek, psa_algorithm_t algorithm, const U8 *wrapped, U16 wrappedLen, const psa_key_attributes_t *attributes, psa_key_id_t *key)
Unwrap to a new PSA key using caller-provided attributes.
uint32_t psa_key_id_t
Definition: crypto.h:60
uint32_t psa_algorithm_t
Definition: crypto.h:58
Attributes are value objects; setters do not allocate resources.
Definition: crypto.h:509