Libav
Functions | Variables
des.c File Reference
#include "libavutil/des.c"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/time.h"

Go to the source code of this file.

Functions

static uint64_t rand64 (void)
 
static int run_test (int cbc, int decrypt)
 
int main (void)
 

Variables

static const uint8_t test_key [] = { 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0 }
 
static const uint8_t plain [] = { 0xfe, 0xdc, 0xba, 0x98, 0x76, 0x54, 0x32, 0x10 }
 
static const uint8_t crypt [] = { 0x4a, 0xb6, 0x5b, 0x3d, 0x4b, 0x06, 0x15, 0x18 }
 
static uint8_t tmp [8]
 
static uint8_t large_buffer [10002][8]
 
static const uint8_t cbc_key []
 

Function Documentation

◆ rand64()

static uint64_t rand64 ( void  )
static

Definition at line 28 of file des.c.

Referenced by main().

◆ run_test()

static int run_test ( int  cbc,
int  decrypt 
)
static

Definition at line 46 of file des.c.

Referenced by main().

◆ main()

int main ( void  )

Definition at line 70 of file des.c.

Variable Documentation

◆ test_key

const uint8_t test_key[] = { 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0 }
static

Definition at line 35 of file des.c.

Referenced by main().

◆ plain

const uint8_t plain[] = { 0xfe, 0xdc, 0xba, 0x98, 0x76, 0x54, 0x32, 0x10 }
static

Definition at line 36 of file des.c.

Referenced by main().

◆ crypt

const uint8_t crypt[] = { 0x4a, 0xb6, 0x5b, 0x3d, 0x4b, 0x06, 0x15, 0x18 }
static

Definition at line 37 of file des.c.

Referenced by main(), test_xtea(), and xtea_crypt().

◆ tmp

uint8_t tmp[8]
static

Definition at line 38 of file des.c.

Referenced by aac_sync(), ac3_sync(), alac_stereo_decorrelation(), append_sws_flags(), apply_tns(), atomic_ptr_cas_gcc(), av_aes_init(), av_bswap32(), av_buffer_realloc(), av_cmp_q(), av_des_crypt_mac(), av_frame_make_writable(), av_frame_new_side_data(), av_lfg_init(), av_opt_set_dict(), av_packet_add_side_data(), av_stream_new_side_data(), avcodec_encode_audio2(), avcodec_open2(), avformat_open_input(), avpriv_find_start_code(), bilin_1d_fn(), bytestream2_get_levarint(), cat_header(), celt_decode_band(), channel_decorrelation(), check_bits_for_superframe(), combine_fft(), compress_alpha(), configure_filtergraph(), copy_chapters(), count_frame_header(), dca_subframe_footer(), decode_13(), decode_filter_coeffs(), decode_frame(), decode_frame_header(), decode_info_header(), decode_main_header(), decode_residuals(), decode_str(), decode_stream_header(), decode_subframe(), decode_syncpoint(), decompress_indices(), denoise_spatial(), denoise_temporal(), distance(), dss_sp_convert_coeffs(), dss_sp_gen_exc(), dss_sp_sf_synthesis(), dss_sp_shift_sq_add(), dss_sp_shift_sq_sub(), dss_sp_unpack_coeffs(), dss_sp_update_state(), duration_max(), encode_frame(), epic_free_pixel_cache(), extract_color(), f_func(), ff_ac3_bit_alloc_calc_mask(), ff_acelp_apply_order_2_transfer_function(), ff_acelp_high_pass_filter(), ff_add_cpb_side_data(), ff_celt_decode_frame(), ff_dca_convert_bitstream(), ff_h2645_packet_split(), ff_h264_decode_mb_cavlc(), ff_hevc_decode_short_term_rps(), ff_ivi_inverse_haar_4x4(), ff_ivi_inverse_haar_8x8(), ff_ivi_inverse_slant_4x4(), ff_ivi_inverse_slant_8x8(), ff_kbd_window_init(), ff_mkv_stereo3d_conv(), ff_nelly_get_sample_bits(), ff_oss_audio_open(), ff_read_packet(), ff_ref_fdct(), ff_ref_idct(), ff_reget_buffer(), ff_thread_release_buffer(), ff_update_duplicate_context(), ff_vorbis_ready_floor1_list(), ff_vp6_filter_diag4_c(), ff_wma_get_frame_len_bits(), ff_xvid_rate_control_init(), ff_yuv2rgb_init_tables_ppc(), ffio_free_dyn_buf(), ffio_read_varlen(), ffmmal_init_decoder(), fft15(), fill_coding_method_array(), fill_tone_level_array(), filter(), filter_8tap_1d_fn(), filter_frame(), find_and_decode_index(), flac_parse_block_header(), flush_fifo(), generate_noise(), get_asf_string(), get_bits(), get_cod(), get_exponent_dynamic(), get_packet_header(), get_qcd(), get_sbits(), get_tcp_server_response(), grow_array(), gxf_resync_media(), h264_slice_header_parse(), hl_decode_mb_444(), hls_prediction_unit(), idct6(), ifilter_send_frame(), imc_decode_level_coefficients(), imc_decode_level_coefficients_raw(), imdct15_half(), imdct36(), init_duplicate_context(), init_muxer(), isf_add_mean_and_past(), main(), matroska_parse_wavpack(), mmsh_open(), mov_read_header(), mpc_read_packet(), multiswap_dec(), multiswap_enc(), nut_read_packet(), open_in(), open_url(), parse_primary(), pcm_encode_frame(), piz_uncompress(), put_codebook_header(), put_ebml_uint(), put_hevc_epel_hv(), put_pixels8x8_overlapped(), put_residue_header(), qdm2_decode_init(), qdm2_get_vlc(), queue_pop(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), r3d_read_reos(), radix_sort(), read_from_fifo(), read_packet(), read_payload_length_info(), read_restart_header(), reorder_block(), rotate_luts(), rtp_parse_addr_list(), run_test(), save_bits(), show_bits(), shrink88(), srt_to_ass(), stabilize_lsps(), targa_decode_rle(), tgv_decode_inter(), truespeech_apply_twopoint_filter(), truespeech_correlate_filter(), truespeech_place_pulses(), udp_open(), ulti_decode_frame(), uninit(), unpack_SQVH(), update_context_from_user(), update_md5_sum(), vaapi_encode_h264_write_extra_header(), vaapi_encode_h264_write_identifier(), vaapi_encode_h264_write_sequence_header(), vaapi_encode_h264_write_slice_header(), vaapi_encode_h265_write_sequence_header(), vaapi_encode_h265_write_slice_header(), vc1_decode_frame(), vda_h264_decode_slice(), vda_old_h264_decode_slice(), vp6_build_huff_tree(), vp6_filter_diag2(), write_utf8(), xmlescape(), and xvid_encode_frame().

◆ large_buffer

uint8_t large_buffer[10002][8]
static

Definition at line 39 of file des.c.

Referenced by run_test().

◆ cbc_key

const uint8_t cbc_key[]
static
Initial value:
= {
0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef,
0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01,
0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01, 0x23
}

Definition at line 40 of file des.c.

Referenced by run_test().