|
FFmpeg
|
#include <string.h>#include "config.h"#include "attributes.h"#include "bswap.h"#include "error.h"#include "sha.h"#include "intreadwrite.h"#include "mem.h"Go to the source code of this file.
Data Structures | |
| struct | AVSHA |
| hash context More... | |
Macros | |
| #define | rol(value, bits) |
| #define | blk0(i) |
| #define | blk(i) |
| #define | R0(v, w, x, y, z, i) |
| #define | R1(v, w, x, y, z, i) |
| #define | R2(v, w, x, y, z, i) |
| #define | R3(v, w, x, y, z, i) |
| #define | R4(v, w, x, y, z, i) |
| #define | R1_0 |
| #define | R1_20 |
| #define | R1_40 |
| #define | R1_60 |
| #define | Ch(x, y, z) |
| #define | Maj(z, y, x) |
| #define | Sigma0_256(x) |
| #define | Sigma1_256(x) |
| #define | sigma0_256(x) |
| #define | sigma1_256(x) |
| #define | blk(i) |
| #define | ROUND256(a, b, c, d, e, f, g, h) |
| #define | ROUND256_0_TO_15(a, b, c, d, e, f, g, h) |
| #define | ROUND256_16_TO_63(a, b, c, d, e, f, g, h) |
| #define | R256_0 |
| #define | R256_16 |
Functions | |
| struct AVSHA * | av_sha_alloc (void) |
| Allocate an AVSHA context. | |
| static void | sha1_transform (uint32_t state[5], const uint8_t buffer[64]) |
| static void | sha256_transform (uint32_t *state, const uint8_t buffer[64]) |
| av_cold int | av_sha_init (AVSHA *ctx, int bits) |
| Initialize SHA-1 or SHA-2 hashing. | |
| void | av_sha_update (struct AVSHA *ctx, const uint8_t *data, size_t len) |
| Update hash value. | |
| void | av_sha_final (AVSHA *ctx, uint8_t *digest) |
| Finish hashing and output digest value. | |
Variables | |
| const int | av_sha_size = sizeof(AVSHA) |
| static const uint32_t | K256 [64] |
| #define blk0 | ( | i | ) |
Definition at line 54 of file sha.c.
Referenced by dct_unquantize_h263_intra_neon(), and sha256_transform().
| #define blk | ( | i | ) |
Definition at line 55 of file sha.c.
Referenced by ac3_apply_rematrixing(), ac3_compute_mantissa_size_c(), ac3_decode_frame(), ac3_exponent_min_c(), ac3_group_exponents(), ac3_output_frame(), ac3_quantize_mantissas(), aic_decode_slice(), allocate_buffers(), apply_channel_coupling(), apply_mdct(), argo_brp_read_header(), argo_brp_read_packet(), bink_decode_plane(), binkb_decode_plane(), bit_alloc(), bit_alloc_masking(), compute_exp_strategy(), compute_rematrixing_strategy(), count_exponent_bits(), count_frame_bits(), count_frame_bits_fixed(), count_mantissa_bits_init(), count_mantissa_bits_update_ch(), coupling_coordinates(), coupling_strategy(), decode_audio_block(), decode_band_structure(), decode_block(), decode_frame(), decode_transform_coeffs(), decode_transform_coeffs_ch(), dv_calc_mb_coordinates(), dv_init_enc_block(), dv_revise_cnos(), dv_set_class_number_hd(), dv_set_class_number_sd(), eac3_output_frame_header(), encode_exponents(), ff_ac3_compute_coupling_strategy(), ff_eac3_decode_transform_coeffs_aht_ch(), ff_eac3_parse_header(), ff_eac3_set_cpl_states(), ff_h264_idct8_add4_msa(), fic_idct(), idct2_1d(), idct_1d(), idct_1d(), idct_col(), idct_col(), idct_row(), idct_row(), ivi_decode_blocks(), ivi_process_empty_tile(), output_audio_block(), reset_block_bap(), sbc_analyze_audio(), sbc_calc_scalefactors(), sbc_calc_scalefactors_j(), sbc_pack_frame(), sbc_synthesize_audio(), sbc_synthesize_eight(), sbc_synthesize_four(), sbc_unpack_frame(), set_bandwidth(), sha256_transform(), spx_strategy(), and vb_decode_framedata().
| #define R1_0 |
Referenced by sha1_transform().
| #define R1_20 |
| #define R1_40 |
| #define R1_60 |
| #define Ch | ( | x, | |
| y, | |||
| z ) |
Definition at line 177 of file sha.c.
Referenced by sha256_transform().
| #define Maj | ( | z, | |
| y, | |||
| x ) |
Definition at line 178 of file sha.c.
Referenced by sha256_transform().
| #define Sigma0_256 | ( | x | ) |
| #define Sigma1_256 | ( | x | ) |
| #define sigma0_256 | ( | x | ) |
| #define sigma1_256 | ( | x | ) |
| #define blk | ( | i | ) |
| #define R256_0 |
Referenced by sha256_transform().
| #define R256_16 |
Referenced by sha256_transform().
|
static |
Definition at line 65 of file sha.c.
Referenced by av_sha_init().
|
static |
Definition at line 203 of file sha.c.
Referenced by av_sha_init().
|
static |
Definition at line 157 of file sha.c.
Referenced by sha256_transform().