Home
last modified time | relevance | path

Searched refs:hash_type (Results 1 – 13 of 13) sorted by relevance

/openbmc/google-misc/subprojects/libcr51sign/src/
H A Dlibcr51sign_support.c45 int hash_init(const void* ctx, enum hash_type type) in hash_init()
49 hash_context->hash_type = type; in hash_init()
81 if (hash_context->hash_type == HASH_SHA2_256) in hash_update()
85 else if (hash_context->hash_type == HASH_SHA2_512) in hash_update()
110 if (hash_context->hash_type == HASH_SHA2_256) in hash_final()
114 else if (hash_context->hash_type == HASH_SHA2_512) in hash_final()
196 enum hash_type hash_type; in verify_signature() local
197 rv = get_hash_type_from_signature(sig_scheme, &hash_type); in verify_signature()
204 if (hash_type == HASH_SHA2_256) in verify_signature()
208 else if (hash_type == HASH_SHA2_512) in verify_signature()
H A Dlibcr51sign.c83 enum hash_type* type) in get_hash_type_from_signature()
102 static failure_reason is_hash_type_supported(enum hash_type type) in is_hash_type_supported()
116 static failure_reason get_hash_digest_size(enum hash_type type, uint32_t* size) in get_hash_digest_size()
133 static failure_reason get_hash_struct_size(enum hash_type type, uint32_t* size) in get_hash_struct_size()
368 rv = get_hash_digest_size(ctx->descriptor.hash_type, &digest_size); in validate_payload_regions()
387 rv = intf->hash_init(ctx, ctx->descriptor.hash_type); in validate_payload_regions()
663 enum hash_type hash_type; in validate_signature() local
670 rv = get_hash_type_from_signature(scheme, &hash_type); in validate_signature()
676 rv = intf->hash_init(ctx, hash_type); in validate_signature()
700 rv = get_hash_digest_size(hash_type, &digest_size); in validate_signature()
[all …]
/openbmc/google-misc/subprojects/libcr51sign/include/libcr51sign/
H A Dlibcr51sign_support.h33 enum hash_type hash_type; member
48 int hash_init(const void* ctx, enum hash_type type);
H A Dlibcr51sign.h135 int (*hash_init)(const void*, enum hash_type);
309 enum signature_scheme scheme, enum hash_type* type);
H A Dcr51_image_descriptor.h129 enum hash_type enum
246 uint8_t hash_type; member
/openbmc/u-boot/drivers/crypto/
H A Dace_sha.c28 unsigned char *pout, unsigned int hash_type) in ace_sha_hash_digest() argument
37 if (hash_type == ACE_SHA_TYPE_SHA1) in ace_sha_hash_digest()
58 reg = (hash_type == ACE_SHA_TYPE_SHA1) ? in ace_sha_hash_digest()
91 len = (hash_type == ACE_SHA_TYPE_SHA1) ? SHA1_SUM_LEN : SHA256_SUM_LEN; in ace_sha_hash_digest()
H A Dace_sha.h312 uchar * out_addr, uint hash_type);
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/iftop/iftop/
H A Diftop-1.0-gcc10.patch47 -hash_type* screen_hash;
48 -hash_type* service_hash;
49 +extern hash_type* screen_hash;
50 +extern hash_type* service_hash;
63 +hash_type* screen_hash;
64 +hash_type* service_hash;
66 extern hash_type* history;
/openbmc/u-boot/tools/
H A Dimx8image.c470 static void set_image_hash(boot_img_t *img, char *filename, uint32_t hash_type) in set_image_hash() argument
478 sprintf(sha_command, "sha%dsum /dev/null", hash_type); in set_image_hash()
483 img->size, filename, hash_type); in set_image_hash()
485 switch (hash_type) { in set_image_hash()
497 hash_type); in set_image_hash()
509 if (!fgets(hash, hash_type / 4 + 1, fp)) { in set_image_hash()
/openbmc/u-boot/cmd/
H A Dcros_ec.c157 if (hash.hash_type == EC_VBOOT_HASH_TYPE_SHA256) in do_cros_ec()
160 printf("type: %d\n", hash.hash_type); in do_cros_ec()
/openbmc/u-boot/drivers/misc/
H A Dcros_ec_sandbox.c385 resp->hash_type = EC_VBOOT_HASH_TYPE_SHA256; in process_cmd()
H A Dcros_ec.c530 p.hash_type = EC_VBOOT_HASH_TYPE_SHA256; in cros_ec_read_hash()
557 p.hash_type = EC_VBOOT_HASH_TYPE_SHA256; in cros_ec_invalidate_hash()
/openbmc/u-boot/include/
H A Dec_commands.h1903 uint8_t hash_type; /* enum ec_vboot_hash_type */ member
1913 uint8_t hash_type; /* enum ec_vboot_hash_type */ member