50 * @param key a key of size ranging from 1 to 32 bytes used for encryption/decryption
51 * @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
52 */
53intav_twofish_init(struct AVTWOFISH *ctx, const uint8_t *key, int key_bits);
54
55/**
56 * Encrypt or decrypt a buffer using a previously initialized context
57 *
58 * @param ctx an AVTWOFISH context
59 * @param dst destination array, can be equal to src
60 * @param src source array, can be equal to dst
61 * @param count number of 16 byte blocks
62 * @param iv initialization vector for CBC mode, NULL for ECB mode
63 * @param decrypt 0 for encryption, 1 for decryption
64 */
65voidav_twofish_crypt(struct AVTWOFISH *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t* iv, int decrypt);