My Project
Loading...
Searching...
No Matches
sakke.h
Go to the documentation of this file.
1
5int wc_InitSakkeKey(SakkeKey* key, void* heap, int devId);
9int wc_InitSakkeKey_ex(SakkeKey* key, int keySize, int curveId,
10 void* heap, int devId);
14void wc_FreeSakkeKey(SakkeKey* key);
15
19int wc_MakeSakkeKey(SakkeKey* key, WC_RNG* rng);
23int wc_MakeSakkePublicKey(SakkeKey* key, ecc_point* pub);
24
28int wc_MakeSakkeRsk(SakkeKey* key, const byte* id, word16 idSz,
29 ecc_point* rsk);
33int wc_ValidateSakkeRsk(SakkeKey* key, const byte* id, word16 idSz,
34 ecc_point* rsk, int* valid);
38int wc_GenerateSakkeRskTable(const SakkeKey* key,
39 const ecc_point* rsk, byte* table, word32* len);
40
41
45int wc_ExportSakkeKey(SakkeKey* key, byte* data, word32* sz);
49int wc_ImportSakkeKey(SakkeKey* key, const byte* data, word32 sz);
53int wc_ExportSakkePrivateKey(SakkeKey* key, byte* data, word32* sz);
57int wc_ImportSakkePrivateKey(SakkeKey* key, const byte* data,
58 word32 sz);
59
63int wc_EncodeSakkeRsk(const SakkeKey* key, ecc_point* rsk,
64 byte* out, word32* sz, int raw);
68int wc_DecodeSakkeRsk(const SakkeKey* key, const byte* data,
69 word32 sz, ecc_point* rsk);
70
74int wc_ImportSakkeRsk(SakkeKey* key, const byte* data, word32 sz);
75
79int wc_ExportSakkePublicKey(SakkeKey* key, byte* data,
80 word32* sz, int raw);
84int wc_ImportSakkePublicKey(SakkeKey* key, const byte* data,
85 word32 sz, int trusted);
86
90int wc_GetSakkeAuthSize(SakkeKey* key, word16* authSz);
94int wc_SetSakkeIdentity(SakkeKey* key, const byte* id, word16 idSz);
98int wc_MakeSakkePointI(SakkeKey* key, const byte* id, word16 idSz);
102int wc_GetSakkePointI(SakkeKey* key, byte* data, word32* sz);
106int wc_SetSakkePointI(SakkeKey* key, const byte* id, word16 idSz,
107 const byte* data, word32 sz);
111int wc_GenerateSakkePointITable(SakkeKey* key, byte* table,
112 word32* len);
116int wc_SetSakkePointITable(SakkeKey* key, byte* table, word32 len);
120int wc_ClearSakkePointITable(SakkeKey* key);
125 enum wc_HashType hashType, byte* ssv, word16 ssvSz, byte* auth,
126 word16* authSz);
130int wc_GenerateSakkeSSV(SakkeKey* key, WC_RNG* rng, byte* ssv,
131 word16* ssvSz);
135int wc_SetSakkeRsk(SakkeKey* key, const ecc_point* rsk, byte* table,
136 word32 len);
140int wc_DeriveSakkeSSV(SakkeKey* key, enum wc_HashType hashType,
141 byte* ssv, word16 ssvSz, const byte* auth,
142 word16 authSz);
143
int wc_ClearSakkePointITable(SakkeKey *key)
int wc_SetSakkePointITable(SakkeKey *key, byte *table, word32 len)
int wc_DeriveSakkeSSV(SakkeKey *key, enum wc_HashType hashType, byte *ssv, word16 ssvSz, const byte *auth, word16 authSz)
int wc_GenerateSakkeSSV(SakkeKey *key, WC_RNG *rng, byte *ssv, word16 *ssvSz)
int wc_GetSakkeAuthSize(SakkeKey *key, word16 *authSz)
int wc_GetSakkePointI(SakkeKey *key, byte *data, word32 *sz)
int wc_GenerateSakkePointITable(SakkeKey *key, byte *table, word32 *len)
int wc_MakeSakkePointI(SakkeKey *key, const byte *id, word16 idSz)
int wc_MakeSakkeEncapsulatedSSV(SakkeKey *key, enum wc_HashType hashType, byte *ssv, word16 ssvSz, byte *auth, word16 *authSz)
int wc_SetSakkePointI(SakkeKey *key, const byte *id, word16 idSz, const byte *data, word32 sz)
int wc_EncodeSakkeRsk(const SakkeKey *key, ecc_point *rsk, byte *out, word32 *sz, int raw)
int wc_GenerateSakkeRskTable(const SakkeKey *key, const ecc_point *rsk, byte *table, word32 *len)
int wc_DecodeSakkeRsk(const SakkeKey *key, const byte *data, word32 sz, ecc_point *rsk)
int wc_ValidateSakkeRsk(SakkeKey *key, const byte *id, word16 idSz, ecc_point *rsk, int *valid)
int wc_MakeSakkeRsk(SakkeKey *key, const byte *id, word16 idSz, ecc_point *rsk)
int wc_ImportSakkeRsk(SakkeKey *key, const byte *data, word32 sz)
int wc_SetSakkeRsk(SakkeKey *key, const ecc_point *rsk, byte *table, word32 len)
int wc_ExportSakkeKey(SakkeKey *key, byte *data, word32 *sz)
void wc_FreeSakkeKey(SakkeKey *key)
int wc_ExportSakkePrivateKey(SakkeKey *key, byte *data, word32 *sz)
int wc_InitSakkeKey_ex(SakkeKey *key, int keySize, int curveId, void *heap, int devId)
int wc_SetSakkeIdentity(SakkeKey *key, const byte *id, word16 idSz)
int wc_ImportSakkeKey(SakkeKey *key, const byte *data, word32 sz)
int wc_ImportSakkePrivateKey(SakkeKey *key, const byte *data, word32 sz)
int wc_ImportSakkePublicKey(SakkeKey *key, const byte *data, word32 sz, int trusted)
int wc_InitSakkeKey(SakkeKey *key, void *heap, int devId)
int wc_MakeSakkePublicKey(SakkeKey *key, ecc_point *pub)
int wc_MakeSakkeKey(SakkeKey *key, WC_RNG *rng)
int wc_ExportSakkePublicKey(SakkeKey *key, byte *data, word32 *sz, int raw)