Home
last modified time | relevance | path

Searched refs:hash_len (Results 1 – 15 of 15) sorted by relevance

/rk3399_rockchip-uboot/lib/avb/libavb/
H A Davb_crypto.c330 {.padding = NULL, .padding_len = 0, .hash_len = 0},
334 .hash_len = AVB_SHA256_DIGEST_SIZE},
338 .hash_len = AVB_SHA256_DIGEST_SIZE},
342 .hash_len = AVB_SHA256_DIGEST_SIZE},
346 .hash_len = AVB_SHA512_DIGEST_SIZE},
350 .hash_len = AVB_SHA512_DIGEST_SIZE},
354 .hash_len = AVB_SHA512_DIGEST_SIZE},
H A Davb_vbmeta_image.c163 if (h.hash_size != algorithm->hash_len) { in avb_vbmeta_image_verify()
/rk3399_rockchip-uboot/include/u-boot/
H A Drsa.h104 const uint8_t *hash, int hash_len);
116 const uint8_t *hash, int hash_len);
128 const uint8_t *hash, int hash_len) in padding_pkcs_15_verify() argument
136 const uint8_t *hash, int hash_len) in padding_pss_verify() argument
/rk3399_rockchip-uboot/lib/rsa/
H A Drsa-verify.c171 const uint8_t *hash, int hash_len) in padding_pkcs_15_verify() argument
222 int hash_len = checksum->checksum_len; in mask_generation_function1() local
231 tmp = malloc(hash_len); in mask_generation_function1()
250 while ((i_output < output_len) && (i < hash_len)) { in mask_generation_function1()
267 uint8_t *hash, int hash_len, in compute_hash_prime() argument
277 region[1].size = hash_len; in compute_hash_prime()
293 const uint8_t *hash, int hash_len) in padding_pss_verify() argument
296 int masked_db_len = msg_len - hash_len - 1; in padding_pss_verify()
298 int h_len = hash_len; in padding_pss_verify()
302 int db_len = masked_db_len, salt_len = msg_len - hash_len - 2; in padding_pss_verify()
[all …]
/rk3399_rockchip-uboot/tools/rockchip/
H A Dloaderimage.c82 uint32_t hash_len; /* 20 or 32 , 0 is no hash */ member
306 hdr.hash_len = (SHA_DIGEST_SIZE > LOADER_HASH_SIZE) ? LOADER_HASH_SIZE in main()
315 SHA_update(&ctx, &hdr.hash_len, sizeof(hdr.hash_len)); in main()
317 memcpy(hdr.hash, sha, hdr.hash_len); in main()
324 hdr.hash_len = 32; /* sha256 */ in main()
334 sha256_update(&ctx, (void *)&hdr.hash_len, sizeof(hdr.hash_len)); in main()
336 memcpy(hdr.hash, hash, hdr.hash_len); in main()
/rk3399_rockchip-uboot/drivers/crypto/rockchip/
H A Dcrypto_ecc.c362 int rockchip_ecc_verify(uint32_t crypto_algo, uint8_t *hash, uint32_t hash_len, in rockchip_ecc_verify() argument
376 hash_len == 0 || in rockchip_ecc_verify()
377 hash_len > RK_ECP_MAX_BYTES || in rockchip_ecc_verify()
388 rk_mpa_alloc(&bn_hash, hash, BYTE2WORD(hash_len)); in rockchip_ecc_verify()
H A Dcrypto_ce.c1010 u8 *hash, u32 hash_len, u8 *sign) in rockchip_crypto_ec_verify() argument
1044 ret = rockchip_ecc_verify(ctx->algo, hash, hash_len, &point_P, &point_sign); in rockchip_crypto_ec_verify()
H A Dcrypto_v2.c1518 u8 *hash, u32 hash_len, u8 *sign) in rockchip_crypto_ec_verify() argument
1552 ret = rockchip_ecc_verify(ctx->algo, hash, hash_len, &point_P, &point_sign); in rockchip_crypto_ec_verify()
/rk3399_rockchip-uboot/include/android_avb/
H A Davb_crypto.h121 size_t hash_len; member
/rk3399_rockchip-uboot/include/
H A Dspl_rkfw.h96 unsigned int hash_len; /* 20 or 32 , 0 is no hash */ member
H A Dcrypto.h115 u8 *hash, u32 hash_len, u8 *sign);
245 int crypto_ec_verify(struct udevice *dev, ec_key *ctx, u8 *hash, u32 hash_len, u8 *sign);
H A Dimage.h1254 const uint8_t *hash, int hash_len);
/rk3399_rockchip-uboot/drivers/crypto/
H A Dcrypto-uclass.c294 int crypto_ec_verify(struct udevice *dev, ec_key *ctx, u8 *hash, u32 hash_len, u8 *sign) in crypto_ec_verify() argument
301 if (!ctx || !ctx->x || !ctx->y || !ctx->y || !hash || hash_len == 0 || !sign) in crypto_ec_verify()
304 return ops->ec_verify(dev, ctx, hash, hash_len, sign); in crypto_ec_verify()
/rk3399_rockchip-uboot/include/rockchip/
H A Dcrypto_ecc.h121 int rockchip_ecc_verify(uint32_t crypto_algo, uint8_t *hash, uint32_t hash_len,
/rk3399_rockchip-uboot/cmd/
H A Dcrypto.c28 u32 hash_len; member
96 .hash_len = sizeof(hash_val) \
106 .hash_len = sizeof(hash_val), \
494 test_data->hash_len); in test_hash_result()