Home
last modified time | relevance | path

Searched refs:sha2_32t (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/u-boot/tools/rockchip/
H A Dsha2.h52 typedef unsigned int sha2_32t; typedef
55 typedef unsigned long sha2_32t; typedef
58 #error Please define sha2_32t as an unsigned 32 bit type in sha2.h
79 typedef uint32_t sha2_32t; typedef
108 sha2_32t count[2];
109 sha2_32t hash[8];
110 sha2_32t wbuf[16];
130 sha2_32t sha2_len;
H A Dsha2.c240 const sha2_32t k256[64] = {
261 const sha2_32t i256[8] = { n_u32(6a09e667), n_u32(bb67ae85), n_u32(3c6ef372),
269 memcpy(ctx->hash, i256, 8 * sizeof(sha2_32t)); in sha256_begin()
281 sha2_32t v[8], j; in sha256_compile()
283 memcpy(v, ctx->hash, 8 * sizeof(sha2_32t)); in sha256_compile()
320 sha2_32t pos = (sha2_32t)(ctx->count[0] & SHA256_MASK), in sha256_hash()
342 static sha2_32t m1[4] = { n_u32(00000000), n_u32(ff000000), n_u32(ffff0000),
346 static sha2_32t b1[4] = { n_u32(80000000), n_u32(00800000), n_u32(00008000),
352 sha2_32t i = (sha2_32t)(ctx->count[0] & SHA256_MASK); in sha256_end()
413 (((sha2_64t)(bswap_32((sha2_32t)(x)))) << 32 | \
[all …]