8#ifndef ZPC_AES_XTS_KEY_H
9# define ZPC_AES_XTS_KEY_H
29# define ZPC_AES_XTS_KEY_TYPE_PVSECRET 9
32 ZPC_XTS_SECRET_TYPE_NOT_SET = -2,
33 ZPC_XTS_SECRET_TYPE_INVALID = -1,
34 ZPC_XTS_SECRET_AES_XTS_128 = 0x07,
35 ZPC_XTS_SECRET_AES_XTS_256 = 0x08,
36} zpc_xtssecret_type_t;
38struct zpc_aes_xts_key;
45__attribute__((visibility(
"default")))
53__attribute__((visibility(
"default")))
61__attribute__((visibility(
"default")))
70__attribute__((visibility(
"default")))
83__attribute__((visibility(
"default")))
85 const
unsigned char *clrkey);
93__attribute__((visibility(
"default")))
103__attribute__((visibility(
"default")))
110__attribute__((visibility(
"default")))
void zpc_aes_xts_key_free(struct zpc_aes_xts_key **key)
int zpc_aes_xts_key_export(struct zpc_aes_xts_key *key, unsigned char *seckey, size_t *seckeylen)
int zpc_aes_xts_key_generate(struct zpc_aes_xts_key *key)
int zpc_aes_xts_key_set_type(struct zpc_aes_xts_key *key, int type)
int zpc_aes_xts_key_alloc(struct zpc_aes_xts_key **key)
int zpc_aes_xts_key_import(struct zpc_aes_xts_key *key, const unsigned char *seckey, size_t seckeylen)
int zpc_aes_xts_key_import_clear(struct zpc_aes_xts_key *key, const unsigned char *clrkey)
int zpc_aes_xts_key_set_size(struct zpc_aes_xts_key *key, int size)