/u-boot/common/ |
A D | hash.c | 215 static struct hash_algo hash_algo[] = { variable 318 hash_algo[i].name += gd->reloc_off; in reloc_update() 320 hash_algo[i].hash_init += gd->reloc_off; in reloc_update() 321 hash_algo[i].hash_update += gd->reloc_off; in reloc_update() 336 *algop = &hash_algo[i]; in hash_lookup_algo() 346 struct hash_algo **algop) in hash_progressive_lookup_algo() 354 if (hash_algo[i].hash_init) { in hash_progressive_lookup_algo() 355 *algop = &hash_algo[i]; in hash_progressive_lookup_algo() 368 struct hash_algo *algo; in hash_parse_string() 389 struct hash_algo *algo; in hash_block() [all …]
|
/u-boot/include/ |
A D | hash.h | 26 struct hash_algo { struct 50 int (*hash_init)(struct hash_algo *algo, void **ctxp); argument 63 int (*hash_update)(struct hash_algo *algo, void *ctx, const void *buf, argument 77 int (*hash_finish)(struct hash_algo *algo, void *ctx, void *dest_buf, argument 132 int hash_lookup_algo(const char *algo_name, struct hash_algo **algop); 146 struct hash_algo **algop);
|
A D | hw_sha.h | 44 int hw_sha_init(struct hash_algo *algo, void **ctxp); 58 int hw_sha_update(struct hash_algo *algo, void *ctx, const void *buf, 72 int hw_sha_finish(struct hash_algo *algo, void *ctx, void *dest_buf,
|
/u-boot/lib/crypto/ |
A D | pkcs7_verify.c | 64 if (!sinfo->sig->hash_algo) in pkcs7_digest() 66 if (!strcmp(sinfo->sig->hash_algo, "sha256")) in pkcs7_digest() 68 else if (!strcmp(sinfo->sig->hash_algo, "sha1")) in pkcs7_digest() 90 hash_calculate(sinfo->sig->hash_algo, regions, 1, sig->digest); in pkcs7_digest() 134 hash_calculate(sinfo->sig->hash_algo, regions, 2, sig->digest); in pkcs7_digest() 151 kenter(",%u,%s", sinfo->index, sinfo->sig->hash_algo); in pkcs7_digest() 157 if (!sinfo->sig->hash_algo) in pkcs7_digest() 163 tfm = crypto_alloc_shash(sinfo->sig->hash_algo, 0, 0); in pkcs7_digest() 246 enum hash_algo *hash_algo) in pkcs7_get_digest() argument 265 if (!strcmp(hash_algo_name[i], sinfo->sig->hash_algo)) { in pkcs7_get_digest() [all …]
|
A D | x509_public_key.c | 58 if (!sig->hash_algo) { in x509_get_sig_params() 70 if (!sig->hash_algo) in x509_get_sig_params() 72 if (!strcmp(sig->hash_algo, "sha256")) in x509_get_sig_params() 74 else if (!strcmp(sig->hash_algo, "sha1")) in x509_get_sig_params() 85 hash_calculate(sig->hash_algo, ®ion, 1, sig->digest); in x509_get_sig_params() 94 tfm = crypto_alloc_shash(sig->hash_algo, 0, 0); in x509_get_sig_params() 229 cert->sig->pkey_algo, cert->sig->hash_algo); in x509_key_preparse()
|
A D | public_key.c | 122 if (!strcmp(sig->hash_algo, "sha1")) { in public_key_verify_signature() 125 } else if (!strcmp(sig->hash_algo, "sha256")) { in public_key_verify_signature() 129 pr_warn("unknown msg digest algo: %s\n", sig->hash_algo); in public_key_verify_signature() 162 const char *hash_algo, in software_key_determine_akcipher() argument 173 if (!hash_algo) in software_key_determine_akcipher() 180 pkey->pkey_algo, hash_algo); in software_key_determine_akcipher() 211 params->hash_algo, in software_key_query() 276 params->hash_algo, in software_key_eds_op() 366 sig->hash_algo, in public_key_verify_signature()
|
A D | pkcs7_parser.c | 243 ctx->sinfo->sig->hash_algo = "md4"; in pkcs7_sig_note_digest_algo() 246 ctx->sinfo->sig->hash_algo = "md5"; in pkcs7_sig_note_digest_algo() 249 ctx->sinfo->sig->hash_algo = "sha1"; in pkcs7_sig_note_digest_algo() 252 ctx->sinfo->sig->hash_algo = "sha256"; in pkcs7_sig_note_digest_algo() 255 ctx->sinfo->sig->hash_algo = "sha384"; in pkcs7_sig_note_digest_algo() 258 ctx->sinfo->sig->hash_algo = "sha512"; in pkcs7_sig_note_digest_algo() 261 ctx->sinfo->sig->hash_algo = "sha224"; in pkcs7_sig_note_digest_algo()
|
A D | x509_cert_parser.c | 218 ctx->cert->sig->hash_algo = "md4"; in x509_note_pkey_algo() 222 ctx->cert->sig->hash_algo = "sha1"; in x509_note_pkey_algo() 226 ctx->cert->sig->hash_algo = "sha256"; in x509_note_pkey_algo() 230 ctx->cert->sig->hash_algo = "sha384"; in x509_note_pkey_algo() 234 ctx->cert->sig->hash_algo = "sha512"; in x509_note_pkey_algo() 238 ctx->cert->sig->hash_algo = "sha224"; in x509_note_pkey_algo() 242 ctx->cert->sig->hash_algo = "streebog256"; in x509_note_pkey_algo() 246 ctx->cert->sig->hash_algo = "streebog512"; in x509_note_pkey_algo()
|
A D | asymmetric_type.c | 588 .hash_algo = params->hash_algo, in asymmetric_key_verify_signature()
|
/u-boot/drivers/crypto/fsl/ |
A D | fsl_hash.c | 48 static enum caam_hash_algos get_hash_type(struct hash_algo *algo) in get_hash_type() 218 int hw_sha_init(struct hash_algo *algo, void **ctxp) in hw_sha_init() 223 int hw_sha_update(struct hash_algo *algo, void *ctx, const void *buf, in hw_sha_update() 229 int hw_sha_finish(struct hash_algo *algo, void *ctx, void *dest_buf, in hw_sha_finish()
|
/u-boot/test/dm/ |
A D | of_extra.c | 32 ut_asserteq(FMAP_HASH_SHA256, entry.hash_algo); in dm_test_ofnode_read_fmap_entry()
|
/u-boot/include/dm/ |
A D | of_extra.h | 30 enum fmap_hash_t hash_algo; /* Hash algorithm */ member
|
/u-boot/lib/rsa/ |
A D | rsa-checksum.c | 22 struct hash_algo *algo; in hash_calculate()
|
/u-boot/include/crypto/ |
A D | public_key.h | 49 const char *hash_algo; member
|
/u-boot/drivers/core/ |
A D | of_extra.c | 46 entry->hash_algo = prop ? FMAP_HASH_SHA256 : FMAP_HASH_NONE; in ofnode_read_fmap_entry()
|
/u-boot/board/freescale/common/ |
A D | fsl_validate.c | 489 struct hash_algo *algo; in calc_img_key_hash() 537 struct hash_algo *algo; in calc_esbchdr_esbc_hash()
|
/u-boot/drivers/dfu/ |
A D | dfu.c | 24 static struct hash_algo *dfu_hash_algo;
|
/u-boot/lib/efi_loader/ |
A D | efi_signature.c | 455 sinfo->sig->hash_algo, sinfo->sig->pkey_algo); in efi_signature_verify()
|
/u-boot/tools/buildman/ |
A D | README | 808 hash_algo 16 - -16 816 hash_algo 16 - -16 824 hash_algo 16 - -16 853 hash_algo 16 - -16
|