Allocate an AVTWOFISH context To free the struct: av_free(ptr)
* Encrypt or decrypt a buffer using a previously initialized context * * @param ctx an AVTWOFISH context * @param dst destination array, can be equal to src * @param src source array, can be equal to dst * @param count number of 16 byte blocks * @paran iv initialization vector for CBC mode, NULL for ECB mode * @param decrypt 0 for encryption, 1 for decryption
* Initialize an AVTWOFISH context. * * @param ctx an AVTWOFISH context * @param key a key of size ranging from 1 to 32 bytes used for encryption/decryption * @param key_bits number of keybits: 128, 192, 256 If less than the required, padded with zeroes to nearest valid value; return value is 0 if key_bits is 128/192/256, -1 if less than 0, 1 otherwise
@file @brief Public header for libavutil TWOFISH algorithm @defgroup lavu_twofish TWOFISH @ingroup lavu_crypto @{