Crate kcapi_sys

Source

Structs§

__atomic_wide_counter__bindgen_ty_1
__fsid_t
__once_flag
__pthread_cond_s
__pthread_internal_list
__pthread_internal_slist
__pthread_mutex_s
__pthread_rwlock_arch_t
__sigset_t
fd_set
iovec
kcapi_handle
timespec
timeval

Constants§

BIG_ENDIAN
BYTE_ORDER
ECC_CURVE_NIST_P192
ECC_CURVE_NIST_P256
FD_SETSIZE
INT8_MAX
INT8_MIN
INT16_MAX
INT16_MIN
INT32_MAX
INT32_MIN
INTPTR_MAX
INTPTR_MIN
INT_FAST8_MAX
INT_FAST8_MIN
INT_FAST16_MAX
INT_FAST16_MIN
INT_FAST32_MAX
INT_FAST32_MIN
INT_LEAST8_MAX
INT_LEAST8_MIN
INT_LEAST16_MAX
INT_LEAST16_MIN
INT_LEAST32_MAX
INT_LEAST32_MIN
KCAPI_ACCESS_HEURISTIC
KCAPI_ACCESS_SENDMSG
KCAPI_ACCESS_VMSPLICE
KCAPI_INIT_AIO
LITTLE_ENDIAN
PDP_ENDIAN
PTRDIFF_MAX
PTRDIFF_MIN
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIZE_MAX
UINT8_MAX
UINT16_MAX
UINT32_MAX
UINTPTR_MAX
UINT_FAST8_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_LEAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
UIO_MAXIOV
WINT_MAX
WINT_MIN
_ATFILE_SOURCE
_BITS_BYTESWAP_H
_BITS_ENDIANNESS_H
_BITS_ENDIAN_H
_BITS_PTHREADTYPES_ARCH_H
_BITS_PTHREADTYPES_COMMON_H
_BITS_STDINT_INTN_H
_BITS_STDINT_UINTN_H
_BITS_TIME64_H
_BITS_TYPESIZES_H
_BITS_TYPES_H
_BITS_UINTN_IDENTITY_H
_BITS_UIO_LIM_H
_BITS_WCHAR_H
_DEFAULT_SOURCE
_ENDIAN_H
_FEATURES_H
_POSIX_C_SOURCE
_POSIX_SOURCE
_STDC_PREDEF_H
_STDINT_H
_STRUCT_TIMESPEC
_SYS_CDEFS_H
_SYS_SELECT_H
_SYS_TYPES_H
_SYS_UIO_H
_THREAD_MUTEX_INTERNAL_H
_THREAD_SHARED_TYPES_H
__BIG_ENDIAN
__BIT_TYPES_DEFINED__
__BYTE_ORDER
__FD_SETSIZE
__FLOAT_WORD_ORDER
__GLIBC_MINOR__
__GLIBC_USE_DEPRECATED_GETS
__GLIBC_USE_DEPRECATED_SCANF
__GLIBC_USE_IEC_60559_BFP_EXT
__GLIBC_USE_IEC_60559_BFP_EXT_C2X
__GLIBC_USE_IEC_60559_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X
__GLIBC_USE_IEC_60559_TYPES_EXT
__GLIBC_USE_ISOC2X
__GLIBC_USE_LIB_EXT2
__GLIBC__
__GNU_LIBRARY__
__HAVE_GENERIC_SELECTION
__INO_T_MATCHES_INO64_T
__IOV_MAX
__KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64
__LDOUBLE_REDIRECTS_TO_FLOAT128_ABI
__LITTLE_ENDIAN
__OFF_T_MATCHES_OFF64_T
__PDP_ENDIAN
__PTHREAD_MUTEX_HAVE_PREV
__RLIM_T_MATCHES_RLIM64_T
__SIZEOF_PTHREAD_ATTR_T
__SIZEOF_PTHREAD_BARRIERATTR_T
__SIZEOF_PTHREAD_BARRIER_T
__SIZEOF_PTHREAD_CONDATTR_T
__SIZEOF_PTHREAD_COND_T
__SIZEOF_PTHREAD_MUTEXATTR_T
__SIZEOF_PTHREAD_MUTEX_T
__SIZEOF_PTHREAD_RWLOCKATTR_T
__SIZEOF_PTHREAD_RWLOCK_T
__STATFS_MATCHES_STATFS64
__STDC_IEC_559_COMPLEX__
__STDC_IEC_559__
__STDC_IEC_60559_BFP__
__STDC_IEC_60559_COMPLEX__
__STDC_ISO_10646__
__SYSCALL_WORDSIZE
__TIMESIZE
__USE_ATFILE
__USE_FORTIFY_LEVEL
__USE_ISOC11
__USE_ISOC95
__USE_ISOC99
__USE_MISC
__USE_POSIX
__USE_POSIX2
__USE_POSIX199309
__USE_POSIX199506
__USE_POSIX_IMPLICITLY
__USE_XOPEN2K
__USE_XOPEN2K8
__WORDSIZE
__WORDSIZE_TIME64_COMPAT32
__clock_t_defined
__clockid_t_defined
__glibc_c99_flexarr_available
__have_pthread_attr_t
__iovec_defined
__sigset_t_defined
__time_t_defined
__timer_t_defined
__timeval_defined
kcapi_verbosity_KCAPI_LOG_DEBUG
kcapi_verbosity_KCAPI_LOG_ERR
kcapi_verbosity_KCAPI_LOG_NONE
kcapi_verbosity_KCAPI_LOG_VERBOSE
kcapi_verbosity_KCAPI_LOG_WARN

Functions§

kcapi_aead_authsize
kcapi_aead_authsize() - return the maximum size of the tag
kcapi_aead_blocksize
kcapi_aead_blocksize() - return size of one block of the cipher
kcapi_aead_ccm_nonce_to_iv
kcapi_aead_ccm_nonce_to_iv() - convert CCM nonce into IV
kcapi_aead_decrypt
kcapi_aead_decrypt() - synchronously decrypt AEAD data (one shot)
kcapi_aead_decrypt_aio
kcapi_aead_decrypt_aio() - asynchronously decrypt AEAD data (one shot)
kcapi_aead_destroy
kcapi_aead_destroy() - close the AEAD handle and release resources
kcapi_aead_encrypt
kcapi_aead_encrypt() - synchronously encrypt AEAD data (one shot)
kcapi_aead_encrypt_aio
kcapi_aead_encrypt_aio() - asynchronously encrypt AEAD data (one shot)
kcapi_aead_getdata_input
kcapi_aead_getdata_input() - get the pointers into input buffer
kcapi_aead_getdata_output
kcapi_aead_getdata_output() - get the pointers into output buffer
kcapi_aead_inbuflen_dec
kcapi_aead_inbuflen_dec() - return minimum decryption input buffer length
kcapi_aead_inbuflen_enc
kcapi_aead_inbuflen_enc() - return minimum encryption input buffer length
kcapi_aead_init
kcapi_aead_init() - initialization of cipher handle
kcapi_aead_ivsize
kcapi_aead_ivsize() - return size of IV required for cipher
kcapi_aead_outbuflen_dec
kcapi_aead_outbuflen_dec() - return minimum decryption output buffer length
kcapi_aead_outbuflen_enc
kcapi_aead_outbuflen_enc() - return minimum encryption output buffer length
kcapi_aead_setassoclen
kcapi_aead_setassoclen() - set authentication data size
kcapi_aead_setkey
kcapi_aead_setkey() - set the key for the AEAD handle
kcapi_aead_settaglen
kcapi_aead_settaglen() - set authentication tag size
kcapi_aead_stream_init_dec
kcapi_aead_stream_init_dec() - start a decryption operation (stream)
kcapi_aead_stream_init_enc
kcapi_aead_stream_init_enc() - start an encryption operation (stream)
kcapi_aead_stream_op
kcapi_aead_stream_op() - obtain processed data (stream)
kcapi_aead_stream_update
kcapi_aead_stream_update() - send more data for processing (stream)
kcapi_aead_stream_update_last
kcapi_aead_stream_update_last() - send last data for processing (stream)
kcapi_akcipher_decrypt
kcapi_akcipher_decrypt() - decrypt data
kcapi_akcipher_decrypt_aio
kcapi_akcipher_decrypt_aio() - decrypt data (asynchronous one shot)
kcapi_akcipher_destroy
kcapi_akcipher_destroy() - close the cipher handle and release resources
kcapi_akcipher_encrypt
kcapi_akcipher_encrypt() - encrypt data
kcapi_akcipher_encrypt_aio
kcapi_akcipher_encrypt_aio() - encrypt data (asynchronous one shot)
kcapi_akcipher_init
kcapi_akcipher_init() - initialize cipher handle
kcapi_akcipher_setkey
kcapi_akcipher_setkey() - set the private key for the cipher handle
kcapi_akcipher_setpubkey
kcapi_akcipher_setpubkey() - set the public key for the cipher handle
kcapi_akcipher_sign
kcapi_akcipher_sign() - signature generation
kcapi_akcipher_sign_aio
kcapi_akcipher_sign_aio() - sign data (asynchronous one shot)
kcapi_akcipher_stream_init_dec
kcapi_akcipher_stream_init_dec() - start an decryption operation (stream) @handle: [in] cipher handle @iov: [in] scatter/gather list with data to be decrypted. This is the pointer to the first iov entry if an array of iov entries is supplied. See sendmsg(2) for details on how iov is to be used. This pointer may be NULL if no data to be decrypted is available at the point of the call. @iovlen: [in] number of scatter/gather list elements. If iov is NULL, this value must be zero.
kcapi_akcipher_stream_init_enc
kcapi_akcipher_stream_init_enc() - start an encryption operation (stream)
kcapi_akcipher_stream_init_sgn
kcapi_akcipher_stream_init_sgn() - start an signing operation (stream)
kcapi_akcipher_stream_init_vfy
kcapi_akcipher_stream_init_vfy() - start an signature verification operation (stream)
kcapi_akcipher_stream_op
kcapi_akcipher_stream_op() - obtain processed data (stream)
kcapi_akcipher_stream_update
kcapi_akcipher_stream_update() - send more data for processing (stream)
kcapi_akcipher_stream_update_last
kcapi_akcipher_stream_update_last() - send last data for processing (stream)
kcapi_akcipher_verify
kcapi_akcipher_verify() - signature verification
kcapi_akcipher_verify_aio
kcapi_akcipher_verify_aio() - verify data (asynchronous one shot)
kcapi_cipher_blocksize
kcapi_cipher_blocksize() - return size of one block of the cipher
kcapi_cipher_dec_aes_cbc
kcapi_cipher_dec_aes_cbc - Convenience function for AES CBC decryption
kcapi_cipher_dec_aes_ctr
kcapi_cipher_dec_aes_ctr - Convenience function for AES CTR decryption
kcapi_cipher_dec_sm4_cbc
kcapi_cipher_dec_sm4_cbc - Convenience function for SM4 CBC decryption
kcapi_cipher_dec_sm4_ctr
kcapi_cipher_dec_sm4_ctr - Convenience function for SM4 CTR decryption
kcapi_cipher_decrypt
kcapi_cipher_decrypt() - decrypt data (synchronous one shot)
kcapi_cipher_decrypt_aio
kcapi_cipher_decrypt_aio() - decrypt data (asynchronous one shot)
kcapi_cipher_destroy
kcapi_cipher_destroy() - close the cipher handle and release resources
kcapi_cipher_enc_aes_cbc
kcapi_cipher_enc_aes_cbc - Convenience function for AES CBC encryption
kcapi_cipher_enc_aes_ctr
kcapi_cipher_enc_aes_ctr - Convenience function for AES CTR encryption
kcapi_cipher_enc_sm4_cbc
kcapi_cipher_enc_sm4_cbc - Convenience function for SM4 CBC encryption
kcapi_cipher_enc_sm4_ctr
kcapi_cipher_enc_sm4_ctr - Convenience function for SM4 CTR encryption
kcapi_cipher_encrypt
kcapi_cipher_encrypt() - encrypt data (synchronous one shot)
kcapi_cipher_encrypt_aio
kcapi_cipher_encrypt_aio() - encrypt data (asynchronous one shot)
kcapi_cipher_init
kcapi_cipher_init() - initialize cipher handle
kcapi_cipher_ivsize
kcapi_cipher_ivsize() - return size of IV required for cipher
kcapi_cipher_setkey
kcapi_cipher_setkey() - set the key for the cipher handle
kcapi_cipher_stream_init_dec
kcapi_cipher_stream_init_dec() - start a decryption operation (stream)
kcapi_cipher_stream_init_enc
kcapi_cipher_stream_init_enc() - start an encryption operation (stream)
kcapi_cipher_stream_op
kcapi_cipher_stream_op() - obtain processed data (stream)
kcapi_cipher_stream_update
kcapi_cipher_stream_update() - send more data for processing (stream)
kcapi_cipher_stream_update_last
kcapi_cipher_stream_update_last() - send last data for processing (stream)
kcapi_get_maxsplicesize
kcapi_get_maxsplicesize - Get maximum buffer size for splice
kcapi_handle_reinit
kcapi_handle_reinit() - re-initialize a new kernel interface
kcapi_hkdf
kcapi_hkdf() - Extract-and-Expand HKDF (RFC5869)
kcapi_kdf_ctr
kcapi_kdf_ctr() - Counter Mode Key Derivation Function
kcapi_kdf_dpi
kcapi_kdf_dpi() - Double Pipeline Mode Key Derivation Function
kcapi_kdf_fb
kcapi_kdf_fb() - Feedback Mode Key Derivation Function
kcapi_kpp_destroy
kcapi_kpp_destroy() - close the cipher handle and release resources
kcapi_kpp_dh_setparam_pkcs3
kcapi_kpp_dh_setparam_pkcs3 - set the PG parameters using PKCS3 format
kcapi_kpp_ecdh_setcurve
kcapi_kpp_ecdh_setcurve - set the ECC curve to be used for ECDH
kcapi_kpp_init
kcapi_kpp_init() - initialize cipher handle
kcapi_kpp_keygen
kcapi_kpp_keygen - generate a public key
kcapi_kpp_keygen_aio
kcapi_kpp_keygen_aio() - generate a public key (asynchronous one shot)
kcapi_kpp_setkey
kcapi_kpp_setkey - set the private key of the DH / ECDH operation
kcapi_kpp_ssgen
kcapi_kpp_ssgen - generate a shared secret
kcapi_kpp_ssgen_aio
kcapi_kpp_ssgen_aio() - generate a shared secret (asynchronous one shot)
kcapi_md_blocksize
kcapi_md_blocksize() - return size of one block of the message digest
kcapi_md_destroy
kcapi_md_destroy() - close the message digest handle and release resources
kcapi_md_digest
kcapi_md_digest() - calculate message digest on buffer (one-shot)
kcapi_md_digestsize
kcapi_md_digestsize() - return the size of the message digest
kcapi_md_final
kcapi_md_final() - message digest finalization function (stream)
kcapi_md_hmac_sha1
kcapi_md_hmac_sha1 - HMAC SHA-1 keyed message digest on one buffer
kcapi_md_hmac_sha224
kcapi_md_hmac_sha224 - HMAC SHA-224 keyed message digest on one buffer
kcapi_md_hmac_sha256
kcapi_md_hmac_sha256 - HMAC SHA-256 keyed message digest on one buffer
kcapi_md_hmac_sha384
kcapi_md_hmac_sha384 - HMAC SHA-384 keyed message digest on one buffer
kcapi_md_hmac_sha512
kcapi_md_hmac_sha512 - HMAC SHA-512 keyed message digest on one buffer
kcapi_md_hmac_sm3
kcapi_md_hmac_sm3 - HMAC SM3 keyed message digest on one buffer
kcapi_md_init
kcapi_md_init() - initialize cipher handle
kcapi_md_setkey
kcapi_md_setkey() - set the key for the message digest handle
kcapi_md_sha1
kcapi_md_sha1 - SHA-1 message digest on one buffer
kcapi_md_sha224
kcapi_md_sha224 - SHA-224 message digest on one buffer
kcapi_md_sha256
kcapi_md_sha256 - SHA-256 message digest on one buffer
kcapi_md_sha384
kcapi_md_sha384 - SHA-384 message digest on one buffer
kcapi_md_sha512
kcapi_md_sha512 - SHA-512 message digest on one buffer
kcapi_md_sm3
kcapi_md_sm3 - SM3 message digest on one buffer
kcapi_md_update
kcapi_md_update() - message digest update function (stream)
kcapi_memset_secure
kcapi_memset_secure() - memset() implementation that will not be optimized away by the compiler
kcapi_pad_iv
kcapi_pad_iv() - realign the IV as necessary for cipher
kcapi_pbkdf
kcapi_pbkdf() - Password-based Key Derivation Function
kcapi_pbkdf_iteration_count
kcapi_pbkdf_iteration_count() - Calculate numbers of iterations for a PBKDF
kcapi_rng_destroy
kcapi_rng_destroy() - close the RNG handle and release resources
kcapi_rng_generate
kcapi_rng_generate() - generate a random number
kcapi_rng_get_bytes
kcapi_rng_get_bytes - Convenience function to generate random bytes
kcapi_rng_init
kcapi_rng_init() - initialize cipher handle
kcapi_rng_seed
kcapi_rng_seed() - seed the RNG
kcapi_rng_seedsize
kcapi_rng_seedsize() - return required seed size of DRNG
kcapi_rng_setaddtl
kcapi_rng_setaddtl() - send additional data to the RNG
kcapi_rng_setentropy
kcapi_rng_setentropy() - set the initial entropy of the RNG
kcapi_set_maxsplicesize
kcapi_set_maxsplicesize - Set maximum buffer size for splice
kcapi_set_verbosity
kcapi_set_verbosity() - set the verbosity level of the library
kcapi_version
kcapi_version() - return machine-usable version number of kcapi library
kcapi_versionstring
kcapi_versionstring() - obtain version string of kcapi library
preadv
pselect
pwritev
readv
select
writev

Type Aliases§

__blkcnt64_t
__blkcnt_t
__blksize_t
__caddr_t
__clock_t
__clockid_t
__daddr_t
__dev_t
__fd_mask
__fsblkcnt64_t
__fsblkcnt_t
__fsfilcnt64_t
__fsfilcnt_t
__fsword_t
__gid_t
__id_t
__ino64_t
__ino_t
__int8_t
__int16_t
__int32_t
__int64_t
__int_least8_t
__int_least16_t
__int_least32_t
__int_least64_t
__intmax_t
__intptr_t
__key_t
__loff_t
__mode_t
__nlink_t
__off64_t
__off_t
__pid_t
__pthread_list_t
__pthread_slist_t
__quad_t
__rlim64_t
__rlim_t
__sig_atomic_t
__socklen_t
__ssize_t
__suseconds64_t
__suseconds_t
__syscall_slong_t
__syscall_ulong_t
__thrd_t
__time_t
__timer_t
__tss_t
__u_char
__u_int
__u_long
__u_quad_t
__u_short
__uid_t
__uint8_t
__uint16_t
__uint32_t
__uint64_t
__uint_least8_t
__uint_least16_t
__uint_least32_t
__uint_least64_t
__uintmax_t
__useconds_t
blkcnt_t
blksize_t
caddr_t
clock_t
clockid_t
daddr_t
dev_t
fd_mask
fsblkcnt_t
fsfilcnt_t
fsid_t
gid_t
id_t
ino_t
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
kcapi_verbosity
DOC: Common API
key_t
loff_t
mode_t
nlink_t
off_t
pid_t
pthread_key_t
pthread_once_t
pthread_spinlock_t
pthread_t
quad_t
register_t
sigset_t
size_t
ssize_t
suseconds_t
time_t
timer_t
u_char
u_int
u_int8_t
u_int16_t
u_int32_t
u_int64_t
u_long
u_quad_t
u_short
uid_t
uint
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t
ulong
ushort

Unions§

__atomic_wide_counter
pthread_attr_t
pthread_barrier_t
pthread_barrierattr_t
pthread_cond_t
pthread_condattr_t
pthread_mutex_t
pthread_mutexattr_t
pthread_rwlock_t
pthread_rwlockattr_t