|
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) |
|
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.
◆ wc_ExportSakkeKey()
int wc_ExportSakkeKey |
( |
SakkeKey * |
key, |
|
|
byte * |
data, |
|
|
word32 * |
sz |
|
) |
| |
◆ wc_ExportSakkePrivateKey()
int wc_ExportSakkePrivateKey |
( |
SakkeKey * |
key, |
|
|
byte * |
data, |
|
|
word32 * |
sz |
|
) |
| |
◆ wc_ExportSakkePublicKey()
int wc_ExportSakkePublicKey |
( |
SakkeKey * |
key, |
|
|
byte * |
data, |
|
|
word32 * |
sz, |
|
|
int |
raw |
|
) |
| |
◆ wc_FreeSakkeKey()
void wc_FreeSakkeKey |
( |
SakkeKey * |
key | ) |
|
◆ wc_ImportSakkeKey()
int wc_ImportSakkeKey |
( |
SakkeKey * |
key, |
|
|
const byte * |
data, |
|
|
word32 |
sz |
|
) |
| |
◆ wc_ImportSakkePrivateKey()
int wc_ImportSakkePrivateKey |
( |
SakkeKey * |
key, |
|
|
const byte * |
data, |
|
|
word32 |
sz |
|
) |
| |
◆ wc_ImportSakkePublicKey()
int wc_ImportSakkePublicKey |
( |
SakkeKey * |
key, |
|
|
const byte * |
data, |
|
|
word32 |
sz, |
|
|
int |
trusted |
|
) |
| |
◆ wc_InitSakkeKey()
int wc_InitSakkeKey |
( |
SakkeKey * |
key, |
|
|
void * |
heap, |
|
|
int |
devId |
|
) |
| |
◆ wc_InitSakkeKey_ex()
int wc_InitSakkeKey_ex |
( |
SakkeKey * |
key, |
|
|
int |
keySize, |
|
|
int |
curveId, |
|
|
void * |
heap, |
|
|
int |
devId |
|
) |
| |
◆ wc_MakeSakkeKey()
int wc_MakeSakkeKey |
( |
SakkeKey * |
key, |
|
|
WC_RNG * |
rng |
|
) |
| |
◆ wc_MakeSakkePublicKey()
int wc_MakeSakkePublicKey |
( |
SakkeKey * |
key, |
|
|
ecc_point * |
pub |
|
) |
| |
◆ wc_SetSakkeIdentity()
int wc_SetSakkeIdentity |
( |
SakkeKey * |
key, |
|
|
const byte * |
id, |
|
|
word16 |
idSz |
|
) |
| |