29# define ZPC_AES_KEY_TYPE_CCA_DATA 1
30# define ZPC_AES_KEY_TYPE_CCA_CIPHER 2
31# define ZPC_AES_KEY_TYPE_EP11 3
32# define ZPC_AES_KEY_TYPE_PVSECRET 9
34# define ZPC_AES_KEY_REENCIPHER_OLD_TO_CURRENT 1
35# define ZPC_AES_KEY_REENCIPHER_CURRENT_TO_NEW 2
38 ZPC_AES_SECRET_TYPE_NOT_SET = -2,
39 ZPC_AES_SECRET_TYPE_INVALID = -1,
40 ZPC_AES_SECRET_AES_128 = 0x04,
41 ZPC_AES_SECRET_AES_192 = 0x05,
42 ZPC_AES_SECRET_AES_256 = 0x06,
43} zpc_aessecret_type_t;
52__attribute__((visibility(
"default")))
60__attribute__((visibility(
"default")))
69__attribute__((visibility(
"default")))
77__attribute__((visibility(
"default")))
86__attribute__((visibility(
"default")))
95__attribute__((visibility(
"default")))
104__attribute__((visibility(
"default")))
113__attribute__((visibility(
"default")))
115 const
unsigned char *clrkey);
123__attribute__((visibility(
"default")))
131__attribute__((visibility(
"default")))
142__attribute__((visibility(
"default")))
149__attribute__((visibility(
"default")))
int zpc_aes_key_alloc(struct zpc_aes_key **key)
int zpc_aes_key_set_mkvp(struct zpc_aes_key *key, const char *mkvp)
int zpc_aes_key_export(struct zpc_aes_key *key, unsigned char *seckey, size_t *seckeylen)
int zpc_aes_key_set_apqns(struct zpc_aes_key *key, const char *apqns[])
int zpc_aes_key_generate(struct zpc_aes_key *key)
int zpc_aes_key_import(struct zpc_aes_key *key, const unsigned char *seckey, size_t seckeylen)
int zpc_aes_key_import_clear(struct zpc_aes_key *key, const unsigned char *clrkey)
void zpc_aes_key_free(struct zpc_aes_key **key)
int zpc_aes_key_set_flags(struct zpc_aes_key *key, unsigned int flags)
int zpc_aes_key_set_size(struct zpc_aes_key *key, int size)
int zpc_aes_key_reencipher(struct zpc_aes_key *key, int reenc)
int zpc_aes_key_set_type(struct zpc_aes_key *key, int type)