logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

kcapi_aead_init - initialization of cipher handle

Arguments

handle
           [out] cipher handle filled during the call

       ciphername
           [in] kernel crypto API cipher name as specified in /proc/cryptoflags
           [in] flags specifying the type of cipher handle

Author

StephanMueller <smueller@chronox.de>
           Author.

Description

       This function initializes an AEAD cipher handle and establishes the connection to the kernel.

       On success, a pointer to kcapi_handle object is returned in *handle. Function kcapi_aead_destroy should
       be called afterwards to free resources.

       return 0 upon success; -ENOENT - algorithm not available; -EOPNOTSUPP - AF_ALG family not available;
       -EINVAL - accept syscall failed -ENOMEM - cipher handle cannot be allocated

Name

       kcapi_aead_init - initialization of cipher handle

Synopsis

intkcapi_aead_init(structkcapi_handle**handle,constchar*ciphername,uint32_tflags);

See Also