29# define ZPC_HMAC_KEY_TYPE_PVSECRET 9
32 ZPC_HMAC_SECRET_TYPE_NOT_SET = -2,
33 ZPC_HMAC_SECRET_TYPE_INVALID = -1,
34 ZPC_HMAC_SECRET_HMAC_SHA_256 = 0x09,
35 ZPC_HMAC_SECRET_HMAC_SHA_512 = 0x0a,
36} zpc_hmacsecret_type_t;
39 ZPC_HMAC_HASHFUNC_NOT_SET = -2,
40 ZPC_HMAC_HASHFUNC_INVALID = -1,
41 ZPC_HMAC_HASHFUNC_SHA_224 = 0,
42 ZPC_HMAC_HASHFUNC_SHA_256,
43 ZPC_HMAC_HASHFUNC_SHA_384,
44 ZPC_HMAC_HASHFUNC_SHA_512,
54__attribute__((visibility(
"default")))
63__attribute__((visibility(
"default")))
74__attribute__((visibility(
"default")))
83__attribute__((visibility(
"default")))
93__attribute__((visibility(
"default")))
95 const
unsigned char *clrkey,
size_t keylen);
103__attribute__((visibility(
"default")))
111__attribute__((visibility(
"default")))
118__attribute__((visibility(
"default")))
int zpc_hmac_key_import_clear(struct zpc_hmac_key *key, const unsigned char *clrkey, size_t keylen)
int zpc_hmac_key_set_hash_function(struct zpc_hmac_key *key, zpc_hmac_hashfunc_t func)
int zpc_hmac_key_import(struct zpc_hmac_key *key, const unsigned char *origin, size_t originlen)
void zpc_hmac_key_free(struct zpc_hmac_key **key)
int zpc_hmac_key_export(struct zpc_hmac_key *key, unsigned char *origin, size_t *originlen)
int zpc_hmac_key_set_type(struct zpc_hmac_key *key, int type)
int zpc_hmac_key_alloc(struct zpc_hmac_key **key)
int zpc_hmac_key_generate(struct zpc_hmac_key *key)