FFmpeg
|
Go to the source code of this file.
Data Structures | |
struct | AVTWOFISH |
Macros | |
#define | LR(x, n) ((x) << (n) | (x) >> (32 - (n))) |
#define | RR(x, n) ((x) >> (n) | (x) << (32 - (n))) |
Functions | |
struct AVTWOFISH * | av_twofish_alloc (void) |
Allocate an AVTWOFISH context To free the struct: av_free(ptr) More... | |
static uint8_t | gfmul (uint8_t a, uint8_t b) |
static uint32_t | tf_RS (uint32_t k0, uint32_t k1) |
static void | tf_h0 (uint8_t y[4], uint32_t L[4], int k) |
static uint32_t | tf_h (uint32_t X, uint32_t L[4], int k) |
static uint32_t | MDS_mul (AVTWOFISH *cs, uint32_t X) |
static void | precomputeMDS (AVTWOFISH *cs) |
static void | twofish_encrypt (AVTWOFISH *cs, uint8_t *dst, const uint8_t *src) |
static void | twofish_decrypt (AVTWOFISH *cs, uint8_t *dst, const uint8_t *src, uint8_t *iv) |
av_cold int | av_twofish_init (AVTWOFISH *cs, const uint8_t *key, int key_bits) |
Initialize an AVTWOFISH context. More... | |
void | av_twofish_crypt (AVTWOFISH *cs, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt) |
Encrypt or decrypt a buffer using a previously initialized context. More... | |
Variables | |
static const uint8_t | MD1 [256] |
static const uint8_t | MD2 [256] |
static const uint8_t | q0 [256] |
static const uint8_t | q1 [256] |
const int | av_twofish_size = sizeof(AVTWOFISH) |
Definition at line 26 of file twofish.c.
Referenced by av_twofish_init(), twofish_decrypt(), and twofish_encrypt().
Definition at line 27 of file twofish.c.
Referenced by twofish_decrypt(), and twofish_encrypt().
|
static |
Definition at line 137 of file twofish.c.
Referenced by av_twofish_init().
Definition at line 149 of file twofish.c.
Referenced by precomputeMDS(), and tf_h().
|
static |
Definition at line 173 of file twofish.c.
Referenced by av_twofish_init().
|
static |
Definition at line 187 of file twofish.c.
Referenced by twofish_decrypt(), and twofish_encrypt().
Definition at line 192 of file twofish.c.
Referenced by av_twofish_init().
Definition at line 206 of file twofish.c.
Referenced by av_twofish_crypt().
|
static |
Definition at line 234 of file twofish.c.
Referenced by av_twofish_crypt().
|
static |
Definition at line 39 of file twofish.c.
Referenced by precomputeMDS(), and tf_h().
|
static |
Definition at line 58 of file twofish.c.
Referenced by precomputeMDS(), and tf_h().
|
static |
Definition at line 77 of file twofish.c.
Referenced by avc_h_loop_filter_luma_mbaff_msa(), avc_loopfilter_cb_or_cr_inter_edge_hor_msa(), avc_loopfilter_cb_or_cr_inter_edge_ver_msa(), avc_loopfilter_luma_inter_edge_hor_msa(), avc_loopfilter_luma_inter_edge_ver_msa(), avc_loopfilter_luma_intra_edge_hor_msa(), avc_loopfilter_luma_intra_edge_ver_msa(), filter_common(), filter_mbedge(), h264_loop_filter_chroma(), h264_loop_filter_chroma_intra(), h264_loop_filter_luma(), h264_loop_filter_luma_intra(), hev(), hevc_loop_filter_chroma(), hevc_loop_filter_luma(), loop_filter(), loop_filter_c2(), loop_filter_l1(), loop_filter_l2(), rv40_strong_loop_filter(), search_for_quantizers_anmr(), tf_h0(), vp7_simple_limit(), and vp8_simple_limit().
|
static |
Definition at line 96 of file twofish.c.
Referenced by avc_loopfilter_luma_inter_edge_hor_msa(), avc_loopfilter_luma_inter_edge_ver_msa(), avc_loopfilter_luma_intra_edge_hor_msa(), avc_loopfilter_luma_intra_edge_ver_msa(), encode_frame(), ff_dh_compute_shared_secret_key(), ff_dh_generate_public_key(), ff_vc1_pred_dc(), filter_common(), filter_mbedge(), h264_loop_filter_chroma(), h264_loop_filter_chroma_intra(), h264_loop_filter_luma(), h264_loop_filter_luma_intra(), hev(), hevc_loop_filter_chroma(), hevc_loop_filter_luma(), loop_filter(), rv40_strong_loop_filter(), search_for_quantizers_anmr(), tf_h0(), vc1_decode_i_block_adv(), vc1_decode_intra_block(), and vp8_simple_limit().