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(), ff_loop_filter_h_44_16_msa(), ff_loop_filter_h_48_16_msa(), ff_loop_filter_h_4_8_msa(), ff_loop_filter_h_84_16_msa(), ff_loop_filter_h_88_16_msa(), ff_loop_filter_h_8_8_msa(), ff_loop_filter_v_16_8_msa(), ff_loop_filter_v_44_16_msa(), ff_loop_filter_v_48_16_msa(), ff_loop_filter_v_4_8_msa(), ff_loop_filter_v_84_16_msa(), ff_loop_filter_v_88_16_msa(), ff_loop_filter_v_8_8_msa(), ff_vp8_h_loop_filter16_inner_msa(), ff_vp8_h_loop_filter16_msa(), ff_vp8_h_loop_filter8uv_inner_msa(), ff_vp8_h_loop_filter8uv_msa(), ff_vp8_h_loop_filter_simple_msa(), ff_vp8_v_loop_filter16_inner_msa(), ff_vp8_v_loop_filter16_msa(), ff_vp8_v_loop_filter8uv_inner_msa(), ff_vp8_v_loop_filter8uv_msa(), ff_vp8_v_loop_filter_simple_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(), hevc_loopfilter_chroma_hor_msa(), hevc_loopfilter_chroma_ver_msa(), hevc_loopfilter_luma_hor_msa(), loop_filter(), loop_filter_c2(), loop_filter_l1(), loop_filter_l2(), randomize_loopfilter_buffers(), rv40_strong_loop_filter(), search_for_quantizers_anmr(), tf_h0(), vp7_simple_limit(), vp8_filter_common_is4tap(), vp8_filter_common_isnot4tap(), vp8_h_loop_filter8_mmi(), vp8_normal_limit(), vp8_simple_limit(), vp8_v_loop_filter8_mmi(), vp9_hz_lpf_t16_16w(), vp9_hz_lpf_t4_and_t8_16w(), vp9_transpose_16x16(), vp9_transpose_16x8_to_8x16(), vp9_transpose_8x16_to_16x8(), vp9_vt_lpf_t16_16w(), vp9_vt_lpf_t16_8w(), vp9_vt_lpf_t4_and_t8_16w(), and vp9_vt_lpf_t4_and_t8_8w().
|
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(), bessel(), encode_frame(), ff_dh_compute_shared_secret_key(), ff_dh_generate_public_key(), ff_loop_filter_h_44_16_msa(), ff_loop_filter_h_48_16_msa(), ff_loop_filter_h_4_8_msa(), ff_loop_filter_h_84_16_msa(), ff_loop_filter_h_88_16_msa(), ff_loop_filter_h_8_8_msa(), ff_loop_filter_v_16_8_msa(), ff_loop_filter_v_44_16_msa(), ff_loop_filter_v_48_16_msa(), ff_loop_filter_v_4_8_msa(), ff_loop_filter_v_84_16_msa(), ff_loop_filter_v_88_16_msa(), ff_loop_filter_v_8_8_msa(), ff_vc1_pred_dc(), ff_vp8_h_loop_filter16_inner_msa(), ff_vp8_h_loop_filter16_msa(), ff_vp8_h_loop_filter8uv_inner_msa(), ff_vp8_h_loop_filter8uv_msa(), ff_vp8_h_loop_filter_simple_msa(), ff_vp8_v_loop_filter16_inner_msa(), ff_vp8_v_loop_filter16_msa(), ff_vp8_v_loop_filter8uv_inner_msa(), ff_vp8_v_loop_filter8uv_msa(), ff_vp8_v_loop_filter_simple_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(), hevc_loopfilter_chroma_hor_msa(), hevc_loopfilter_chroma_ver_msa(), hevc_loopfilter_luma_hor_msa(), loop_filter(), randomize_loopfilter_buffers(), rv40_strong_loop_filter(), search_for_quantizers_anmr(), tf_h0(), vc1_decode_i_block_adv(), vc1_decode_intra_block(), vp8_filter_common_is4tap(), vp8_filter_common_isnot4tap(), vp8_h_loop_filter8_mmi(), vp8_normal_limit(), vp8_simple_limit(), vp8_v_loop_filter8_mmi(), vp9_hz_lpf_t16_16w(), vp9_hz_lpf_t4_and_t8_16w(), vp9_transpose_16x16(), vp9_transpose_16x8_to_8x16(), vp9_transpose_8x16_to_16x8(), vp9_vt_lpf_t16_16w(), vp9_vt_lpf_t16_8w(), vp9_vt_lpf_t4_and_t8_16w(), and vp9_vt_lpf_t4_and_t8_8w().