/openbmc/u-boot/lib/libavb/ |
H A D | avb_crypto.c | 311 {.padding = NULL, .padding_len = 0, .hash_len = 0}, 315 .hash_len = AVB_SHA256_DIGEST_SIZE}, 319 .hash_len = AVB_SHA256_DIGEST_SIZE}, 323 .hash_len = AVB_SHA256_DIGEST_SIZE}, 327 .hash_len = AVB_SHA512_DIGEST_SIZE}, 331 .hash_len = AVB_SHA512_DIGEST_SIZE}, 335 .hash_len = AVB_SHA512_DIGEST_SIZE},
|
H A D | avb_crypto.h | 100 size_t hash_len; member
|
H A D | avb_vbmeta_image.c | 143 if (h.hash_size != algorithm->hash_len) { in avb_vbmeta_image_verify()
|
/openbmc/u-boot/lib/rsa/ |
H A D | rsa-verify.c | 62 const uint8_t *hash, int hash_len) in padding_pkcs_15_verify() argument 113 int hash_len = checksum->checksum_len; in mask_generation_function1() local 122 tmp = malloc(hash_len); in mask_generation_function1() 158 uint8_t *hash, int hash_len, in compute_hash_prime() argument 168 region[1].size = hash_len; in compute_hash_prime() 189 int h_len = hash_len; in padding_pss_verify() 205 hprime = malloc(hash_len); in padding_pss_verify() 255 (uint8_t *)hash, hash_len, in padding_pss_verify() 259 ret = memcmp(h, hprime, hash_len); in padding_pss_verify() 298 int hash_len; in rsa_verify_key() local [all …]
|
/openbmc/linux/certs/ |
H A D | blacklist.c | 146 static char *get_raw_hash(const u8 *hash, size_t hash_len, in get_raw_hash() argument 166 buffer = kmalloc(type_len + 1 + hash_len * 2 + 1, GFP_KERNEL); in get_raw_hash() 172 bin2hex(p, hash, hash_len); in get_raw_hash() 173 p += hash_len * 2; in get_raw_hash() 204 int mark_hash_blacklisted(const u8 *hash, size_t hash_len, in mark_hash_blacklisted() argument 210 buffer = get_raw_hash(hash, hash_len, hash_type); in mark_hash_blacklisted() 224 int is_hash_blacklisted(const u8 *hash, size_t hash_len, in is_hash_blacklisted() argument 231 buffer = get_raw_hash(hash, hash_len, hash_type); in is_hash_blacklisted() 246 int is_binary_blacklisted(const u8 *hash, size_t hash_len) in is_binary_blacklisted() argument 248 if (is_hash_blacklisted(hash, hash_len, BLACKLIST_HASH_BINARY) == in is_binary_blacklisted()
|
/openbmc/linux/include/keys/ |
H A D | system_keyring.h | 78 extern int mark_hash_blacklisted(const u8 *hash, size_t hash_len, 80 extern int is_hash_blacklisted(const u8 *hash, size_t hash_len, 82 extern int is_binary_blacklisted(const u8 *hash, size_t hash_len); 84 static inline int is_hash_blacklisted(const u8 *hash, size_t hash_len, in is_hash_blacklisted() argument 90 static inline int is_binary_blacklisted(const u8 *hash, size_t hash_len) in is_binary_blacklisted() argument
|
/openbmc/u-boot/include/u-boot/ |
H A D | rsa.h | 103 const uint8_t *hash, int hash_len); 108 const uint8_t *hash, int hash_len); 120 const uint8_t *hash, int hash_len) in padding_pkcs_15_verify() argument 128 const uint8_t *hash, int hash_len) in padding_pss_verify() argument
|
/openbmc/linux/tools/perf/util/ |
H A D | demangle-rust.c | 47 static const size_t hash_len = 16; variable 85 if (len <= hash_prefix_len + hash_len) in rust_is_mangled() 89 len_without_hash = len - (hash_prefix_len + hash_len); in rust_is_mangled() 112 for (end = str + hash_len; str < end; str++) in is_prefixed_hash() 193 end = sym + strlen(sym) - (hash_prefix_len + hash_len); in rust_demangle_sym()
|
/openbmc/linux/drivers/nvme/host/ |
H A D | auth.c | 35 size_t hash_len; member 188 chap->hash_len = 0; in nvme_auth_process_dhchap_challenge() 212 chap->hash_len = data->hl; in nvme_auth_process_dhchap_challenge() 297 size += 2 * chap->hash_len; in nvme_auth_set_dhchap_reply_data() 311 data->hl = chap->hash_len; in nvme_auth_set_dhchap_reply_data() 319 chap->hash_len); in nvme_auth_set_dhchap_reply_data() 323 memset(chap->c2, 0, chap->hash_len); in nvme_auth_set_dhchap_reply_data() 345 size += chap->hash_len; in nvme_auth_process_dhchap_success1() 352 if (data->hl != chap->hash_len) { in nvme_auth_process_dhchap_success1() 462 chap->hash_len); in nvme_auth_dhchap_setup_host_response() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-ima.c | 395 md->ima.active_table.hash_len = 0; in dm_ima_measure_on_device_resume() 407 md->ima.active_table.hash_len = md->ima.inactive_table.hash_len; in dm_ima_measure_on_device_resume() 409 md->ima.inactive_table.hash_len = 0; in dm_ima_measure_on_device_resume() 438 l += md->ima.active_table.hash_len; in dm_ima_measure_on_device_resume() 533 md->ima.active_table.hash_len); in dm_ima_measure_on_device_remove() 534 l += md->ima.active_table.hash_len; in dm_ima_measure_on_device_remove() 548 l += md->ima.inactive_table.hash_len; in dm_ima_measure_on_device_remove() 627 md->ima.inactive_table.hash_len) { in dm_ima_measure_on_table_clear() 636 md->ima.inactive_table.hash_len); in dm_ima_measure_on_table_clear() 668 md->ima.inactive_table.hash_len = 0; in dm_ima_measure_on_table_clear() [all …]
|
H A D | dm-ima.h | 46 unsigned int hash_len; member
|
/openbmc/openbmc/meta-security/meta-tpm/recipes-tpm1/pcr-extend/files/ |
H A D | fix_openssl11_build.patch | 12 sha1_file (FILE *file, unsigned int *hash_len) 41 - if (EVP_DigestFinal (&ctx, hash, hash_len) == 0) { 42 + if (EVP_DigestFinal (ctx, hash, hash_len) == 0) {
|
/openbmc/linux/fs/ubifs/ |
H A D | auth.c | 49 return crypto_shash_tfm_digest(c->hmac_tfm, hash, c->hash_len, hmac); in ubifs_hash_calc_hmac() 140 int len = min(c->hash_len, 20); in ubifs_bad_hash() 141 int cropped = len != c->hash_len; in ubifs_bad_hash() 310 c->hash_len = crypto_shash_digestsize(c->hash_tfm); in ubifs_init_authentication() 311 if (c->hash_len > UBIFS_HASH_ARR_SZ) { in ubifs_init_authentication() 313 c->auth_hash_name, c->hash_len, UBIFS_HASH_ARR_SZ); in ubifs_init_authentication()
|
H A D | misc.h | 188 return UBIFS_IDX_NODE_SZ + (UBIFS_BRANCH_SZ + c->key_len + c->hash_len) in ubifs_idx_node_sz() 204 (UBIFS_BRANCH_SZ + c->key_len + c->hash_len) * bnum); in ubifs_idx_branch()
|
/openbmc/qemu/block/ |
H A D | parallels-ext.c | 194 size_t hash_len = 0; in parallels_parse_format_extension() local 210 &hash, &hash_len, errp); in parallels_parse_format_extension() 215 if (hash_len != sizeof(eh.check_sum) || in parallels_parse_format_extension()
|
/openbmc/linux/drivers/nvme/target/ |
H A D | fabrics-cmd-auth.c | 357 int hash_len = nvme_auth_hmac_hash_len(ctrl->shash_id); in nvmet_auth_challenge() local 358 int data_size = sizeof(*d) + hash_len; in nvmet_auth_challenge() 373 data->hl = hash_len; in nvmet_auth_challenge() 396 int hash_len = nvme_auth_hmac_hash_len(ctrl->shash_id); in nvmet_auth_success1() local 403 data->hl = hash_len; in nvmet_auth_success1()
|
H A D | nvmet.h | 710 unsigned int hash_len); 712 unsigned int hash_len);
|
/openbmc/linux/drivers/crypto/ccree/ |
H A D | cc_hash.c | 98 unsigned int hash_len; member 155 ctx->hash_len); in cc_init_req() 159 ctx->hash_len); in cc_init_req() 396 ctx->hash_len); in cc_fin_hmac() 489 ctx->hash_len, NS_BIT); in cc_hash_digest() 508 ctx->hash_len, NS_BIT, 0); in cc_hash_digest() 546 ctx->hash_len, NS_BIT); in cc_restore_hash() 617 ctx->hash_len, NS_BIT, 1); in cc_hash_update() 681 ctx->hash_len, NS_BIT, 0); in cc_do_finup() 1515 out += ctx->hash_len; in cc_hash_export() [all …]
|
H A D | cc_aead.c | 58 unsigned int hash_len; member 199 ctx->hash_len = cc_get_aead_hash_len(tfm); in cc_aead_init() 322 set_din_const(&desc[idx], 0, ctx->hash_len); in hmac_setkey() 468 set_din_const(&desc[idx], 0, ctx->hash_len); in cc_get_plain_hmac_key() 1013 ctx->hash_len); in cc_set_hmac_desc() 1112 ctx->hash_len); in cc_proc_scheme_desc() 1142 ctx->hash_len); in cc_proc_scheme_desc()
|
/openbmc/u-boot/drivers/crypto/ |
H A D | aspeed_hace.c | 134 static int hash_trigger(struct aspeed_hash_ctx *ctx, int hash_len) in hash_trigger() argument 146 writel(hash_len, base + ASPEED_HACE_HASH_DATA_LEN); in hash_trigger() 152 1000 + (hash_len >> 3)); in hash_trigger()
|
/openbmc/linux/fs/smb/client/ |
H A D | cifsencrypt.c | 642 unsigned int hash_len; in CalcNTLMv2_response() local 645 hash_len = ses->auth_key.len - (CIFS_SESS_KEY_SIZE + in CalcNTLMv2_response() 674 ntlmv2->challenge.key, hash_len); in CalcNTLMv2_response()
|
/openbmc/qemu/contrib/elf2dmp/ |
H A D | pdb.h | 70 uint32_t hash_len; member
|
/openbmc/linux/fs/ |
H A D | dcache.c | 1914 q.hash_len = hashlen_string(parent, name); in d_alloc_name() 2288 u64 hashlen = name->hash_len; in __d_lookup_rcu_op_compare() 2354 u64 hashlen = name->hash_len; in __d_lookup_rcu() 2408 if (dentry->d_name.hash_len != hashlen) in __d_lookup_rcu() 2913 swap(dentry->d_name.hash_len, target->d_name.hash_len); in swap_names() 2928 dentry->d_name.hash_len = target->d_name.hash_len; in copy_name()
|
/openbmc/qemu/target/i386/ |
H A D | sev.c | 1878 size_t hash_len = HASH_SIZE; in build_kernel_loader_hashes() local 1887 ctx->cmdline_size, &hashp, &hash_len, errp) < 0) { in build_kernel_loader_hashes() 1890 assert(hash_len == HASH_SIZE); in build_kernel_loader_hashes() 1898 ctx->initrd_size, &hashp, &hash_len, errp) < 0) { in build_kernel_loader_hashes() 1901 assert(hash_len == HASH_SIZE); in build_kernel_loader_hashes() 1910 &hashp, &hash_len, errp) < 0) { in build_kernel_loader_hashes() 1913 assert(hash_len == HASH_SIZE); in build_kernel_loader_hashes()
|
/openbmc/linux/include/linux/ |
H A D | dcache.h | 54 u64 hash_len; member
|