/home/abui..._xts_key.h(3)
π NAME π
okay so bestie, welcome to the /home/abui..._xts_key.h(3) page from the Library Functions Manual β¨ this one is all about libzpc's AES full-xts key API, and we are gonna get you comfy with it, no cap π
/home/abuild/rpmbuild/BUILD/libzpc-legacy-1.5.0-build/libzpc-1.5.0/include/zpc/aes_xts_key.h β AES full-xts key API.
πΈ SYNOPSIS πΈ
π Macros
#define ZPC_AES_XTS_KEY_TYPE_PVSECRET 9
π¦ Enumerations
enum zpc_xtssecret_type_t { ZPC_XTS_SECRET_TYPE_NOT_SET = -2,
ZPC_XTS_SECRET_TYPE_INVALID = -1, ZPC_XTS_SECRET_AES_XTS_128 = 0x07,
ZPC_XTS_SECRET_AES_XTS_256 = 0x08 }
β¨ Functions
int zpc_aes_xts_key_alloc (struct zpc_aes_xts_key **key)
int zpc_aes_xts_key_set_size (struct zpc_aes_xts_key *key, int size)
int zpc_aes_xts_key_set_type (struct zpc_aes_xts_key *key, int type)
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_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)
void zpc_aes_xts_key_free (struct zpc_aes_xts_key **key)
π¦ Detailed Description π¦
AES full-xts key API.
Manage advanced Encryption Standard (AES) block cipher [9] keys to be used in a full-xts context.
Definition in file aes_xts_key.h.
π Macro Definition Documentation π
ZPC_AES_XTS_KEY_TYPE_PVSECRET
#define ZPC_AES_XTS_KEY_TYPE_PVSECRET 9
Definition at line 29 of file aes_xts_key.h.
π Enumeration Type Documentation π
enum zpc_xtssecret_type_t
Definition at line 31 of file aes_xts_key.h.
π Function Documentation π
π zpc_aes_xts_key_alloc
int zpc_aes_xts_key_alloc (struct zpc_aes_xts_key **key)
Allocate a shiny new AES full-xts key object with reference count 1 π«Ά
Parameters
keyβ AES-XTS key
Returns: 0 on success. Otherwise, a non-zero error code is returned.
π zpc_aes_xts_key_set_size
int zpc_aes_xts_key_set_size (struct zpc_aes_xts_key *key, int size)
Set the AES full-xts key size, bestie.
Parameters
keyβ AES-XTS keysizeβ128or256bit key size
Returns: 0 on success. Otherwise, a non-zero error code is returned.
π zpc_aes_xts_key_set_type
int zpc_aes_xts_key_set_type (struct zpc_aes_xts_key *key, int type)
Set the AES full-xts key type.
Parameters
keyβ AES-XTS keytypeβ currently onlyZPC_AES_XTS_KEY_TYPE_PVSECRET
Returns: 0 on success. Otherwise, a non-zero error code is returned.
π zpc_aes_xts_key_import
int zpc_aes_xts_key_import (struct zpc_aes_xts_key *key, const unsigned char *seckey, size_t seckeylen)
Import an AES-XTS protected key origin (secure key or pvsecret ID).
Parameters
keyβ AES full-xts keyseckeyβ AES full-xts protected key origin (secure-key or pvsecret ID)seckeylenβ AES full-xts protected key origin length [bytes]
Returns: 0 on success. Otherwise, a non-zero error code is returned.
π zpc_aes_xts_key_import_clear
int zpc_aes_xts_key_import_clear (struct zpc_aes_xts_key *key, const unsigned char *clrkey)
Import an AES-XTS clear-key.
Parameters
keyβ AES-XTS key. If the key object has no type set, a full-xts protected key is created from the given key material. If the type is set toZPC_AES_XTS_KEY_TYPE_PVSECRETthen the import is not possible.clrkeyβ AES XTS clear-key. The application must provide concatenated key material for two single AES keys of the specified size, i.e. either2 x 16 bytesor2 x 32 bytes.
Returns: 0 on success. Otherwise, a non-zero error code is returned.
π zpc_aes_xts_key_export
int zpc_aes_xts_key_export (struct zpc_aes_xts_key *key, unsigned char *seckey, size_t *seckeylen)
Export an AES-XTS protected key origin (secure key or pvsecret ID).
Parameters
keyβ AES full-xts keyseckeyβ AES full-xts protected key origin (secure-key or pvsecret ID)seckeylenβ secure AES full-xts protected key origin length [bytes]
Returns: 0 on success. Otherwise, a non-zero error code is returned.
π zpc_aes_xts_key_generate
int zpc_aes_xts_key_generate (struct zpc_aes_xts_key *key)
Generate an AES-XTS key. If the key object has no type set, a full-xts random protected key is created. If the type is set to ZPC_AES_XTS_KEY_TYPE_PVSECRET then generate is not possible.
Parameters
keyβ AES full-xts key
Returns: 0 on success. Otherwise, a non-zero error code is returned.
π zpc_aes_xts_key_free
void zpc_aes_xts_key_free (struct zpc_aes_xts_key **key)
Decrease the reference count of an AES full-xts key object and free it when the count reaches 0.
Parameters
keyβ AES full-xts key
βοΈ Author βοΈ
Generated automatically by Doxygen for libzpc from the source code.
okay bestie, that's the whole page π«Ά the footer vibes are libzpc, Version 1.4, and /home/abui..._xts_key.h(3) β source/version sign-off secured, and no date is printed on this one, periodt π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: libzpc-legacy-devel 1.5.0-160000.2.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms