ffmpeg.libavutil.twofish

Undocumented in source.

Members

Functions

av_twofish_alloc
AVTWOFISH* av_twofish_alloc()

Allocate an AVTWOFISH context To free the struct: av_free(ptr)

av_twofish_crypt
void av_twofish_crypt(AVTWOFISH* ctx, ubyte* dst, const(ubyte)* src, int count, ubyte* iv, int decrypt)

* 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

av_twofish_init
int av_twofish_init(AVTWOFISH* ctx, const(ubyte)* key, int key_bits)

* 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

Static variables

av_twofish_size
int av_twofish_size;

@file @brief Public header for libavutil TWOFISH algorithm @defgroup lavu_twofish TWOFISH @ingroup lavu_crypto @{

Structs

AVTWOFISH
struct AVTWOFISH
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta