Allocate an AVCAST5 context To free the struct: av_free(ptr)
* Encrypt or decrypt a buffer using a previously initialized context, ECB mode only * * @param ctx an AVCAST5 context * @param dst destination array, can be equal to src * @param src source array, can be equal to dst * @param count number of 8 byte blocks * @param decrypt 0 for encryption, 1 for decryption
* Encrypt or decrypt a buffer using a previously initialized context * * @param ctx an AVCAST5 context * @param dst destination array, can be equal to src * @param src source array, can be equal to dst * @param count number of 8 byte blocks * @param iv initialization vector for CBC mode, NULL for ECB mode * @param decrypt 0 for encryption, 1 for decryption
* Initialize an AVCAST5 context. * * @param ctx an AVCAST5 context * @param key a key of 5,6,...16 bytes used for encryption/decryption * @param key_bits number of keybits: possible are 40,48,...,128 * @return 0 on success, less than 0 on failure
@file @brief Public header for libavutil CAST5 algorithm @defgroup lavu_cast5 CAST5 @ingroup lavu_crypto @{