Home
last modified time | relevance | path

Searched refs:SHA256_BLOCK_SIZE (Results 1 – 4 of 4) sorted by relevance

/rk3399_rockchip-uboot/drivers/mmc/
H A Drpmb.c43 #define SHA256_BLOCK_SIZE 64 macro
155 unsigned char k_ipad[SHA256_BLOCK_SIZE]; in rpmb_hmac()
156 unsigned char k_opad[SHA256_BLOCK_SIZE]; in rpmb_hmac()
174 for ( ; i < SHA256_BLOCK_SIZE; i++) { in rpmb_hmac()
178 sha256_update(&ctx, k_ipad, SHA256_BLOCK_SIZE); in rpmb_hmac()
186 sha256_update(&ctx, k_opad, SHA256_BLOCK_SIZE); in rpmb_hmac()
/rk3399_rockchip-uboot/drivers/ufs/
H A Dufs-rockchip-rpmb.c33 #define SHA256_BLOCK_SIZE 64 macro
159 unsigned char k_ipad[SHA256_BLOCK_SIZE]; in ufs_rpmb_hmac()
160 unsigned char k_opad[SHA256_BLOCK_SIZE]; in ufs_rpmb_hmac()
178 for ( ; i < SHA256_BLOCK_SIZE; i++) { in ufs_rpmb_hmac()
182 sha256_update(&ctx, k_ipad, SHA256_BLOCK_SIZE); in ufs_rpmb_hmac()
193 sha256_update(&ctx, k_opad, SHA256_BLOCK_SIZE); in ufs_rpmb_hmac()
/rk3399_rockchip-uboot/tools/rockchip/
H A Dsha2.c198 #define SHA256_MASK (SHA256_BLOCK_SIZE - 1)
321 space = SHA256_BLOCK_SIZE - pos; in sha256_hash()
331 space = SHA256_BLOCK_SIZE; in sha256_hash()
333 bsw_32(ctx->wbuf, SHA256_BLOCK_SIZE >> 2); in sha256_hash()
366 if (i > SHA256_BLOCK_SIZE - 9) { in sha256_end()
H A Dsha2.h95 #define SHA256_BLOCK_SIZE 64 macro