Setup SAKKE Key
Functions
Name | |
---|---|
int | wc_InitSakkeKey(SakkeKey * key, void * heap, int devId) |
int | wc_InitSakkeKey_ex(SakkeKey * key, int keySize, int curveId, void * heap, int devId) |
void | wc_FreeSakkeKey(SakkeKey * key) |
int | wc_MakeSakkeKey(SakkeKey * key, WC_RNG * rng) |
int | wc_MakeSakkePublicKey(SakkeKey * key, ecc_point * pub) |
int | wc_ExportSakkeKey(SakkeKey * key, byte * data, word32 * sz) |
int | wc_ImportSakkeKey(SakkeKey * key, const byte * data, word32 sz) |
int | wc_ExportSakkePrivateKey(SakkeKey * key, byte * data, word32 * sz) |
int | wc_ImportSakkePrivateKey(SakkeKey * key, const byte * data, word32 sz) |
int | wc_ExportSakkePublicKey(SakkeKey * key, byte * data, word32 * sz, int raw) |
int | wc_ImportSakkePublicKey(SakkeKey * key, const byte * data, word32 sz, int trusted) |
int | wc_SetSakkeIdentity(SakkeKey * key, const byte * id, word16 idSz) |
Detailed Description
Operations for establishing a SAKKE key.
Initialization SAKKE Key before use (wc_InitSakkeKey() or wc_InitSakkeKey_ex()).
Either make a new key (wc_MakeSakkeKey()) or import an existing key (wc_ImportSakkeKey()).
Export the key (wc_ExportSakkeKey()) after making a new key for future use.
If only the private part of the KMS SAKKE Key is available, make the public key (wc_MakeSakkePublicKey()).
Export the private key (wc_ExportSakkePrivateKey()) from KMS from storage.
Import the private key (wc_ImportSakkePrivateKey()) into KMS from storage.
Export the public key (wc_ExportSakkePublicKey()) from KMS to pass to client.
Import the public key (wc_ImportSakkePublicKey()) into client.
Set the identity to use (wc_SetSakkeIdentity()) into client.
Free the SAKKE Key (wc_FreeSakkeKey()) when finished.
Functions Documentation
function wc_InitSakkeKey
int wc_InitSakkeKey(
SakkeKey * key,
void * heap,
int devId
)
function wc_InitSakkeKey_ex
int wc_InitSakkeKey_ex(
SakkeKey * key,
int keySize,
int curveId,
void * heap,
int devId
)
function wc_FreeSakkeKey
void wc_FreeSakkeKey(
SakkeKey * key
)
function wc_MakeSakkeKey
int wc_MakeSakkeKey(
SakkeKey * key,
WC_RNG * rng
)
function wc_MakeSakkePublicKey
int wc_MakeSakkePublicKey(
SakkeKey * key,
ecc_point * pub
)
function wc_ExportSakkeKey
int wc_ExportSakkeKey(
SakkeKey * key,
byte * data,
word32 * sz
)
function wc_ImportSakkeKey
int wc_ImportSakkeKey(
SakkeKey * key,
const byte * data,
word32 sz
)
function wc_ExportSakkePrivateKey
int wc_ExportSakkePrivateKey(
SakkeKey * key,
byte * data,
word32 * sz
)
function wc_ImportSakkePrivateKey
int wc_ImportSakkePrivateKey(
SakkeKey * key,
const byte * data,
word32 sz
)
function wc_ExportSakkePublicKey
int wc_ExportSakkePublicKey(
SakkeKey * key,
byte * data,
word32 * sz,
int raw
)
function wc_ImportSakkePublicKey
int wc_ImportSakkePublicKey(
SakkeKey * key,
const byte * data,
word32 sz,
int trusted
)
function wc_SetSakkeIdentity
int wc_SetSakkeIdentity(
SakkeKey * key,
const byte * id,
word16 idSz
)
Updated on 2024-11-22 at 01:12:39 +0000