Man page - kcapi_hkdf(3)
Packages contas this manual
- kcapi_akcipher_setkey(3)
- kcapi_md_final(3)
- kcapi_akcipher_verify(3)
- kcapi_cipher_dec_sm4_cbc(3)
- kcapi_md_digest(3)
- kcapi_aead_settaglen(3)
- kcapi_akcipher_stream_init_sgn(3)
- kcapi_rng_get_bytes(3)
- kcapi_cipher_encrypt(3)
- kcapi_aead_stream_init_dec(3)
- kcapi_cipher_enc_aes_ctr(3)
- kcapi_akcipher_decrypt(3)
- kcapi_akcipher_stream_init_enc(3)
- kcapi_aead_inbuflen_enc(3)
- kcapi_md_hmac_sha512(3)
- kcapi_set_maxsplicesize(3)
- kcapi_kpp_ssgen(3)
- kcapi_aead_stream_update(3)
- kcapi_cipher_stream_init_enc(3)
- kcapi_aead_stream_init_enc(3)
- kcapi_md_init(3)
- kcapi_md_sha512(3)
- kcapi_kdf_fb(3)
- kcapi_md_setkey(3)
- kcapi_aead_outbuflen_enc(3)
- kcapi_aead_stream_update_last(3)
- kcapi_aead_ivsize(3)
- kcapi_aead_destroy(3)
- kcapi_aead_setassoclen(3)
- kcapi_md_update(3)
- kcapi_rng_seed(3)
- kcapi_pbkdf(3)
- kcapi_aead_decrypt(3)
- kcapi_md_sha224(3)
- kcapi_aead_decrypt_aio(3)
- kcapi_kpp_ssgen_aio(3)
- kcapi_hkdf(3)
- kcapi_cipher_stream_op(3)
- kcapi_md_sm3(3)
- kcapi_kpp_destroy(3)
- kcapi_md_sha384(3)
- kcapi_md_sha256(3)
- kcapi_cipher_decrypt_aio(3)
- kcapi_aead_setkey(3)
- kcapi_rng_init(3)
- kcapi_kdf_dpi(3)
- kcapi_md_hmac_sha384(3)
- kcapi_kpp_ecdh_setcurve(3)
- kcapi_kpp_init(3)
- kcapi_md_hmac_sha224(3)
- kcapi_aead_ccm_nonce_to_iv(3)
- kcapi_kpp_dh_setparam_pkcs3(3)
- kcapi_aead_encrypt(3)
- kcapi_rng_seedsize(3)
- kcapi_aead_getdata_input(3)
- kcapi_md_hmac_sha256(3)
- kcapi_akcipher_verify_aio(3)
- kcapi_akcipher_setpubkey(3)
- kcapi_cipher_decrypt(3)
- kcapi_cipher_enc_aes_cbc(3)
- kcapi_aead_stream_op(3)
- kcapi_md_hmac_sm3(3)
- kcapi_md_hmac_sha1(3)
- kcapi_kpp_keygen(3)
- kcapi_aead_blocksize(3)
- kcapi_set_verbosity(3)
- kcapi_versionstring(3)
- kcapi_get_maxsplicesize(3)
- kcapi_md_sha1(3)
- kcapi_aead_init(3)
- kcapi_cipher_dec_sm4_ctr(3)
- kcapi_md_digestsize(3)
- kcapi_akcipher_stream_init_dec(3)
- kcapi_akcipher_stream_update(3)
- kcapi_akcipher_sign(3)
- kcapi_kpp_setkey(3)
- kcapi_cipher_blocksize(3)
- kcapi_aead_encrypt_aio(3)
- kcapi_kpp_keygen_aio(3)
- kcapi_akcipher_encrypt_aio(3)
- kcapi_kdf_ctr(3)
- kcapi_pad_iv(3)
- kcapi_cipher_destroy(3)
- kcapi_cipher_dec_aes_ctr(3)
- kcapi_cipher_enc_sm4_cbc(3)
- kcapi_akcipher_destroy(3)
- kcapi_akcipher_decrypt_aio(3)
- kcapi_cipher_encrypt_aio(3)
- kcapi_akcipher_sign_aio(3)
- kcapi_cipher_stream_update_last(3)
- kcapi_rng_destroy(3)
- kcapi_akcipher_init(3)
- kcapi_cipher_init(3)
- kcapi_aead_getdata_output(3)
- kcapi_memset_secure(3)
- kcapi_handle_reinit(3)
- kcapi_cipher_stream_init_dec(3)
- kcapi_pbkdf_iteration_count(3)
- kcapi_aead_authsize(3)
- kcapi_cipher_dec_aes_cbc(3)
- kcapi_akcipher_stream_op(3)
- kcapi_aead_inbuflen_dec(3)
- kcapi_aead_outbuflen_dec(3)
- kcapi_rng_generate(3)
- kcapi_akcipher_stream_init_vfy(3)
- kcapi_akcipher_encrypt(3)
- kcapi_cipher_setkey(3)
- kcapi_cipher_enc_sm4_ctr(3)
- kcapi_version(3)
- kcapi_cipher_ivsize(3)
- kcapi_cipher_stream_update(3)
- kcapi_md_destroy(3)
Package: libkcapi-dev
apt-get install libkcapi-dev
apt-get install libkcapi-dev
Manuals in package:
Documentations in package:
Manual
| KCAPI_HKDF(3) | Programming Interface | KCAPI_HKDF(3) |
NAME
kcapi_hkdf - Extract-and-Expand HKDF (RFC5869)
SYNOPSIS
ssize_t kcapi_hkdf(const char * hashname, const uint8_t * ikm, size_t ikmlen, const uint8_t * salt, uint32_t saltlen, const uint8_t * info, size_t infolen, uint8_t * dst, size_t dlen);
ARGUMENTS
hashname
[in] kernel crypto API name of a keyed hash (e.g.
hmac(sha1))
ikm
[in] Input Keying Material (IKM) -- must be
provided
ikmlen
[in] IKM buffer length -- must be non-zero
salt
[in] salt buffer -- may be NULL
saltlen
[in] salt buffer length -- may be zero
info
[in] info buffer -- may be NULL
infolen
[in] info buffer length -- may be zero
dst
[out] Buffer to store the generated key in,
dlen
[in] Length of the dst buffer. This value defines the
number of bytes generated by the KDF.
DESCRIPTION
Perform the key-derivation function according to RFC5869. The input data is defined in sections 2.2 und 2.3 of RFC5869.
return 0 upon success; a negative errno-style error code if an error occurred
AUTHOR
Stephan Mueller <smueller@chronox.de>
Author.
COPYRIGHT
| October 2024 | libkcapi Manual 1.4.0 |