qcrypto_cipher_request()
Request a cipher
Synopsis:
#include <qcrypto/qcrypto.h>int qcrypto_cipher_request(const char *name,
                           const char *tag,
                           uint32_t flags,
                           qcrypto_ctx_t **ctx)Arguments:
- name
 - The algorithm name (for example, 
aes-128-cbc). - tag
 - The tag value that identifies the plugin in the 
qcryptolibrary configuration file to retrieve the algorithm from; or NULL, to use the default tag (__progname). - flags
 - Zero, or flags that control the behavior of the request. The only flag currently defined is:
QCRYPTO_REQUEST_TAG_IS_PLUGIN- The tag value specifies the name of the plugin to retrieve the algorithm from, instead of a tag to match against when searching for the plugin.
 - ctx
 - A context pointer that is filled with the algorithm context on success.
 
Library:
libqcryptoDescription:
This function requests the specified algorithm from qcrypto.
Returns:
QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred. 
Page updated: 
