PandA-2024.02
|
Go to the source code of this file.
Data Structures | |
struct | buffer_state |
Macros | |
#define | CHUNK_SIZE 64 |
#define | TOTAL_LEN_LEN 8 |
Functions | |
static uint32_t | right_rot (uint32_t value, unsigned int count) |
static void | init_buf_state (struct buffer_state *state, const void *input, size_t len) |
static int | calc_chunk (uint8_t chunk[CHUNK_SIZE], struct buffer_state *state) |
void | calc_sha_256 (uint8_t hash[32], const void *input, size_t len) |
Variables | |
static const uint32_t | k [] |
#define CHUNK_SIZE 64 |
Definition at line 6 of file sha-256.c.
Referenced by calc_chunk().
#define TOTAL_LEN_LEN 8 |
Definition at line 7 of file sha-256.c.
Referenced by calc_chunk().
|
static |
Definition at line 60 of file sha-256.c.
References CHUNK_SIZE, buffer_state::len, buffer_state::p, buffer_state::single_one_delivered, buffer_state::total_len, buffer_state::total_len_delivered, and TOTAL_LEN_LEN.
Referenced by calc_sha_256().
void calc_sha_256 | ( | uint8_t | hash[32], |
const void * | input, | ||
size_t | len | ||
) |
Definition at line 124 of file sha-256.c.
References calc_chunk(), h, init_buf_state(), k, buffer_state::p, and right_rot().
|
static |
Definition at line 50 of file sha-256.c.
References input, buffer_state::len, buffer_state::p, buffer_state::single_one_delivered, buffer_state::total_len, and buffer_state::total_len_delivered.
Referenced by calc_sha_256().
|
inlinestatic |
Definition at line 41 of file sha-256.c.
Referenced by calc_sha_256().
|
static |
Definition at line 22 of file sha-256.c.
Referenced by __attribute__(), add_directed_edge(), pragma_manager::addFunctionCallPragmas(), Autocorrelation(), bbgemm(), blowfish_main(), structural_manager::build_graph(), buildNeighborList(), dom_info< GraphObj >::calc_idoms(), calc_sha_256(), lut_transformation::CHECK_BIN_EXPR_INT_SIZE(), check_data(), CPF(), compatibility_based_register::create_compatibility_graph(), conflict_based_register::create_conflict_graph(), fsm_controller::create_state_machine(), DecodeHuffMCU(), Doolittle_LU_Decomposition(), TestbenchGeneration::Exec(), FFT(), port_o::find_isomorphic(), constant_o::find_isomorphic(), fixedpt_exp(), fused_nn_dense_add(), gemm(), TestbenchGeneration::generate_init_file(), get_uniform_fixed(), tree_node::GetString(), gsm_div(), helm_factor_impl(), helm_naive(), init_array(), values_scheme::InternalExec(), cdfc_module_binding::InternalExec(), main(), boost::maxclique_dsatur_coloring_helper< VertexListGraph, ColorMap, size_type, SET_container >::MaxCliqueRec(), merge(), mm(), HostProfiling::normalize(), firFixedClass< filter_len >::operator()(), FunctionCallTypeCleanup::ParametersTypeCleanup(), parse_string(), plot_test(), polybench_flush_cache(), print_array(), BehavioralHelper::PrintNode(), PseudoCasual(), qsort_r(), vertex_coloring_register::RegisterBinding(), chordal_coloring_register::RegisterBinding(), weighted_clique_register::RegisterBinding(), structural_manager::remove_module(), ShuffleVector(), stencil3d(), network_flow::successive_shortest_path_algorithm(), tree_node::tree_node(), Unit_Lower_Triangular_Solve(), update_knn(), Upper_Triangular_Solve(), and HDL_manager::write_module().