Sese Framework  x.y.z
A cross-platform framework
载入中...
搜索中...
未找到
SHA1Util.cpp 文件参考

函数

static uint32_t rol (const uint32_t VALUE, const size_t BITS)
 
static uint32_t blk (const uint32_t block[BLOCK_INTS], const size_t I)
 
static void R0 (const uint32_t block[BLOCK_INTS], const uint32_t V, uint32_t &w, const uint32_t X, const uint32_t Y, uint32_t &z, const size_t I)
 
static void R1 (uint32_t block[BLOCK_INTS], const uint32_t V, uint32_t &w, const uint32_t X, const uint32_t Y, uint32_t &z, const size_t I)
 
static void R2 (uint32_t block[BLOCK_INTS], const uint32_t V, uint32_t &w, const uint32_t X, const uint32_t Y, uint32_t &z, const size_t I)
 
static void R3 (uint32_t block[BLOCK_INTS], const uint32_t V, uint32_t &w, const uint32_t X, const uint32_t Y, uint32_t &z, const size_t I)
 
static void R4 (uint32_t block[BLOCK_INTS], const uint32_t V, uint32_t &w, const uint32_t X, const uint32_t Y, uint32_t &z, const size_t I)
 
static void transform (SHA1Context *ctx, uint32_t *block)
 
static void buffer_to_block (const uint8_t *buffer, uint32_t block[BLOCK_INTS])
 
char toChar (unsigned char ch, bool is_cap)
 

变量

static const size_t BLOCK_INTS = 16
 

函数说明

◆ blk()

static uint32_t blk ( const uint32_t block[BLOCK_INTS],
const size_t I )
inlinestatic

引用了 rol().

被这些函数引用 R1(), R2(), R3() , 以及 R4().

◆ buffer_to_block()

static void buffer_to_block ( const uint8_t * buffer,
uint32_t block[BLOCK_INTS] )
inlinestatic

引用了 BLOCK_INTS.

被这些函数引用 sese::SHA1Util::encode().

◆ R0()

static void R0 ( const uint32_t block[BLOCK_INTS],
const uint32_t V,
uint32_t & w,
const uint32_t X,
const uint32_t Y,
uint32_t & z,
const size_t I )
inlinestatic

引用了 rol().

被这些函数引用 transform().

◆ R1()

static void R1 ( uint32_t block[BLOCK_INTS],
const uint32_t V,
uint32_t & w,
const uint32_t X,
const uint32_t Y,
uint32_t & z,
const size_t I )
inlinestatic

引用了 blk() , 以及 rol().

被这些函数引用 transform().

◆ R2()

static void R2 ( uint32_t block[BLOCK_INTS],
const uint32_t V,
uint32_t & w,
const uint32_t X,
const uint32_t Y,
uint32_t & z,
const size_t I )
inlinestatic

引用了 blk() , 以及 rol().

被这些函数引用 transform().

◆ R3()

static void R3 ( uint32_t block[BLOCK_INTS],
const uint32_t V,
uint32_t & w,
const uint32_t X,
const uint32_t Y,
uint32_t & z,
const size_t I )
inlinestatic

引用了 blk() , 以及 rol().

被这些函数引用 transform().

◆ R4()

static void R4 ( uint32_t block[BLOCK_INTS],
const uint32_t V,
uint32_t & w,
const uint32_t X,
const uint32_t Y,
uint32_t & z,
const size_t I )
inlinestatic

引用了 blk() , 以及 rol().

被这些函数引用 transform().

◆ rol()

static uint32_t rol ( const uint32_t VALUE,
const size_t BITS )
inlinestatic

被这些函数引用 blk(), R0(), R1(), R2(), R3() , 以及 R4().

◆ toChar()

char toChar ( unsigned char ch,
bool is_cap )
inline

被这些函数引用 sese::SHA1Util::encode() , 以及 sese::MemoryViewer::peer().

◆ transform()

static void transform ( SHA1Context * ctx,
uint32_t * block )
inlinestatic

引用了 a, b, c, d, e, sese::SHA1Context::h, R0(), R1(), R2(), R3() , 以及 R4().

被这些函数引用 sese::SHA1Util::encode().

变量说明

◆ BLOCK_INTS

const size_t BLOCK_INTS = 16
static

被这些函数引用 buffer_to_block().