/u-boot/board/gdsys/a38x/ |
A D | hre.c | 148 uint8_t digest[20]; in find_key() local 171 sha1_csum(buf, buf_len, digest); in find_key() 274 result->digest, 20); in access_hreg() 337 uint8_t digest[20]; in compute_extend() local 343 sha1_finish(&ctx, digest); in compute_extend() 344 memcpy(_dst, digest, min(n, sizeof(digest))); in compute_extend() 358 if (find_key(tpm, src_reg->digest, dst_reg->digest, &parent_handle)) in hre_op_loadkey() 361 src_reg->digest, &key_handle); in hre_op_loadkey() 423 if (src_reg->digest[i]) in hre_execute_op() 446 src_buf = src_reg->digest; in hre_execute_op() [all …]
|
A D | hre.h | 19 uint8_t digest[20]; member
|
/u-boot/lib/crypto/ |
A D | pkcs7_verify.c | 61 if (!sinfo->authattrs && sig->digest) in pkcs7_digest() 80 sig->digest = calloc(1, sig->digest_size); in pkcs7_digest() 81 if (!sig->digest) { in pkcs7_digest() 113 if (memcmp(sig->digest, sinfo->msgdigest, in pkcs7_digest() 126 memset(sig->digest, 0, sig->digest_size); in pkcs7_digest() 154 if (sig->digest) in pkcs7_digest() 172 if (!sig->digest) in pkcs7_digest() 183 sig->digest); in pkcs7_digest() 208 if (memcmp(sig->digest, sinfo->msgdigest, in pkcs7_digest() 231 sinfo->authattrs_len, sig->digest); in pkcs7_digest() [all …]
|
A D | x509_public_key.c | 79 sig->digest = calloc(1, sig->digest_size); in x509_get_sig_params() 80 if (!sig->digest) in x509_get_sig_params() 85 hash_calculate(sig->hash_algo, ®ion, 1, sig->digest); in x509_get_sig_params() 107 sig->digest = kmalloc(sig->digest_size, GFP_KERNEL); in x509_get_sig_params() 108 if (!sig->digest) in x509_get_sig_params() 117 ret = crypto_shash_digest(desc, cert->tbs, cert->tbs_size, sig->digest); in x509_get_sig_params() 121 ret = is_hash_blacklisted(sig->digest, sig->digest_size, "tbs"); in x509_get_sig_params() 124 sig->digest_size, sig->digest); in x509_get_sig_params()
|
A D | public_key.c | 80 free(sig->digest); in public_key_signature_free() 139 if (rsa_verify_with_pkey(&info, sig->digest, sig->s, sig->s_size)) in public_key_verify_signature() 400 sg_set_buf(&src_sg[1], sig->digest, sig->digest_size); in public_key_verify_signature()
|
A D | pkcs7.asn1 | 78 -- Explicit because easier to compute digest on
|
/u-boot/board/gdsys/p1022/ |
A D | controlcenterd-id.c | 88 uint8_t digest[20]; member 313 uint8_t digest[20]; in find_key() local 336 sha1_csum(buf, buf_len, digest); in find_key() 512 result->digest, 20); in access_hreg() 581 uint8_t digest[20]; in compute_extend() local 587 sha1_finish(&ctx, digest); in compute_extend() 588 memcpy(_dst, digest, min(n, sizeof(digest))); in compute_extend() 602 if (find_key(tpm, src_reg->digest, dst_reg->digest, &parent_handle)) in hre_op_loadkey() 667 if (src_reg->digest[i]) in hre_execute_op() 690 src_buf = src_reg->digest; in hre_execute_op() [all …]
|
/u-boot/include/u-boot/ |
A D | sha512.h | 23 void sha512_finish(sha512_context * ctx, uint8_t digest[SHA512_SUM_LEN]); 32 void sha384_finish(sha512_context * ctx, uint8_t digest[SHA384_SUM_LEN]);
|
A D | sha256.h | 20 void sha256_finish(sha256_context * ctx, uint8_t digest[SHA256_SUM_LEN]);
|
/u-boot/lib/ |
A D | sha256.c | 230 void sha256_finish(sha256_context * ctx, uint8_t digest[32]) in sha256_finish() 249 PUT_UINT32_BE(ctx->state[0], digest, 0); in sha256_finish() 250 PUT_UINT32_BE(ctx->state[1], digest, 4); in sha256_finish() 251 PUT_UINT32_BE(ctx->state[2], digest, 8); in sha256_finish() 252 PUT_UINT32_BE(ctx->state[3], digest, 12); in sha256_finish() 253 PUT_UINT32_BE(ctx->state[4], digest, 16); in sha256_finish() 254 PUT_UINT32_BE(ctx->state[5], digest, 20); in sha256_finish() 255 PUT_UINT32_BE(ctx->state[6], digest, 24); in sha256_finish() 256 PUT_UINT32_BE(ctx->state[7], digest, 28); in sha256_finish()
|
A D | sha512.c | 278 void sha384_finish(sha512_context * ctx, uint8_t digest[SHA384_SUM_LEN]) in sha384_finish() 284 PUT_UINT64_BE(ctx->state[i], digest, i * 8); in sha384_finish() 342 void sha512_finish(sha512_context * ctx, uint8_t digest[SHA512_SUM_LEN]) in sha512_finish() 348 PUT_UINT64_BE(ctx->state[i], digest, i * 8); in sha512_finish()
|
A D | tpm-v2.c | 84 const u8 *digest, u32 digest_len) in tpm2_pcr_extend() argument 114 offset, digest, digest_len); in tpm2_pcr_extend()
|
A D | md5.c | 124 MD5Final(unsigned char digest[16], struct MD5Context *ctx) in MD5Final() 161 memmove(digest, ctx->buf, 16); in MD5Final()
|
/u-boot/tools/ |
A D | mxsimage.c | 180 uint8_t digest[32]; member 432 sb_aes_crypt(ictx, ictx->digest, ictx->digest, sizeof(ictx->digest)); in sb_encrypt_image() 1401 sizeof(hdr->digest)); in sb_postfill_image_header() 1658 unsigned char digest[20]; in sb_verify_image_header() local 1679 sizeof(hdr->digest)); in sb_verify_image_header() 1686 if (memcmp(digest, hdr->digest, 20)) in sb_verify_image_header() 2026 uint8_t digest[32]; in sb_verify_image_end() local 2033 size = fread(digest, 1, sizeof(digest), fp); in sb_verify_image_end() 2051 sb_aes_crypt(ictx, digest, digest, sizeof(digest)); in sb_verify_image_end() 2054 ret = memcmp(digest, ictx->digest, 20) ? -EINVAL : 0; in sb_verify_image_end() [all …]
|
A D | mxsimage.h | 31 uint8_t digest[20]; member
|
/u-boot/lib/libavb/ |
A D | avb_cmdline.h | 69 const uint8_t* digest,
|
A D | avb_cmdline.c | 413 const uint8_t* digest, in avb_add_root_digest_substitution() argument 445 out_cmdline_subst->values[list_index] = avb_bin2hex(digest, digest_size); in avb_add_root_digest_substitution()
|
/u-boot/lib/efi_loader/ |
A D | efi_tcg2.c | 128 len += offsetof(struct tpmt_ha, digest); in tcg_event_final_size() 153 (u8 *)&digest_list->digests[i].digest, in tcg2_pcr_extend() 206 u8 *digest = (u8 *)&digest_list->digests[i].digest; in tcg2_agile_log_append() local 209 pos += offsetof(struct tpmt_ha, digest); in tcg2_agile_log_append() 210 memcpy(log + pos, digest, alg_to_len(hash_alg)); in tcg2_agile_log_append() 561 memcpy(&digest_list->digests[i].digest, final, (u32)alg_to_len(hash_alg)); in tcg2_create_digest() 1034 memset(&event_header->digest, 0, sizeof(event_header->digest)); in efi_init_event_log()
|
/u-boot/include/ |
A D | tpm-v2.h | 118 u8 digest[TPM2_SHA1_DIGEST_SIZE]; member 142 union tmpu_ha digest; member 403 const u8 *digest, u32 digest_len);
|
/u-boot/drivers/crypto/fsl/ |
A D | jobdesc.h | 31 const uint8_t *msg, uint32_t msgsz, uint8_t *digest,
|
A D | jobdesc.c | 178 const uint8_t *msg, uint32_t msgsz, uint8_t *digest, in inline_cnstr_jobdesc_hash() argument 187 dma_addr_out = virt_to_phys((void *)digest); in inline_cnstr_jobdesc_hash()
|
/u-boot/include/crypto/ |
A D | public_key.h | 46 u8 *digest; member
|
/u-boot/cmd/ |
A D | tpm-v2.c | 101 void *digest = map_sysmem(simple_strtoul(argv[2], NULL, 0), 0); in do_tpm2_pcr_extend() local 119 rc = tpm2_pcr_extend(dev, index, TPM2_ALG_SHA256, digest, in do_tpm2_pcr_extend() 122 unmap_sysmem(digest); in do_tpm2_pcr_extend()
|
/u-boot/board/freescale/common/ |
A D | fsl_validate.c | 630 u8 *padding, *digest; in construct_img_encoded_hash_second() local 640 digest = &representative[1] + len - 32; in construct_img_encoded_hash_second() 641 hash_id = digest - sizeof(hash_identifier); in construct_img_encoded_hash_second() 655 digest[i] = hash_val[i]; in construct_img_encoded_hash_second()
|
/u-boot/test/py/ |
A D | u_boot_utils.py | 27 return h.digest()
|