37#ifndef SHARKSSL_PSA_CONSUMER_KEY_WRAP_H
38#define SHARKSSL_PSA_CONSUMER_KEY_WRAP_H
42#if (!SHARKSSL_PSA_CONSUMER)
43#error SharkSslPSAConsumerKeyWrap.h requires SHARKSSL_PSA_CONSUMER
50 U8 *wrapped, U16 wrappedSize, U16 *wrappedLen);
56 const U8 *wrapped, U16 wrappedLen,
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