| /u-boot/common/ |
| A D | hash.c | 213 static struct hash_algo hash_algo[] = { variable 346 hash_algo[i].name += gd->reloc_off; in reloc_update() 348 hash_algo[i].hash_init += gd->reloc_off; in reloc_update() 349 hash_algo[i].hash_update += gd->reloc_off; in reloc_update() 364 *algop = &hash_algo[i]; in hash_lookup_algo() 374 struct hash_algo **algop) in hash_progressive_lookup_algo() 382 if (hash_algo[i].hash_init) { in hash_progressive_lookup_algo() 383 *algop = &hash_algo[i]; in hash_progressive_lookup_algo() 396 struct hash_algo *algo; in hash_parse_string() 417 struct hash_algo *algo; in hash_block() [all …]
|
| /u-boot/include/ |
| A D | hash.h | 30 struct hash_algo { struct 54 int (*hash_init)(struct hash_algo *algo, void **ctxp); argument 67 int (*hash_update)(struct hash_algo *algo, void *ctx, const void *buf, argument 81 int (*hash_finish)(struct hash_algo *algo, void *ctx, void *dest_buf, argument 136 int hash_lookup_algo(const char *algo_name, struct hash_algo **algop); 150 struct hash_algo **algop);
|
| A D | hw_sha.h | 70 int hw_sha_init(struct hash_algo *algo, void **ctxp); 84 int hw_sha_update(struct hash_algo *algo, void *ctx, const void *buf, 98 int hw_sha_finish(struct hash_algo *algo, void *ctx, void *dest_buf,
|
| A D | efi_loader.h | 988 void **hash, const char *hash_algo, int *len);
|
| /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, "sha384")) in pkcs7_digest() 70 else if (!strcmp(sinfo->sig->hash_algo, "sha512")) in pkcs7_digest() 72 else if (!strcmp(sinfo->sig->hash_algo, "sha1")) in pkcs7_digest() 155 kenter(",%u,%s", sinfo->index, sinfo->sig->hash_algo); in pkcs7_digest() 161 if (!sinfo->sig->hash_algo) in pkcs7_digest() 167 tfm = crypto_alloc_shash(sinfo->sig->hash_algo, 0, 0); in pkcs7_digest() 250 enum hash_algo *hash_algo) in pkcs7_get_digest() argument 269 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, "sha384")) in x509_get_sig_params() 76 else if (!strcmp(sig->hash_algo, "sha512")) in x509_get_sig_params() 78 else if (!strcmp(sig->hash_algo, "sha1")) in x509_get_sig_params() 89 hash_calculate(sig->hash_algo, ®ion, 1, sig->digest); in x509_get_sig_params() 98 tfm = crypto_alloc_shash(sig->hash_algo, 0, 0); in x509_get_sig_params() 233 cert->sig->pkey_algo, cert->sig->hash_algo); in x509_key_preparse()
|
| A D | public_key.c | 118 ret = snprintf(algo, sizeof(algo), "%s,%s%d", sig->hash_algo, in public_key_verify_signature() 159 const char *hash_algo, in software_key_determine_akcipher() argument 170 if (!hash_algo) in software_key_determine_akcipher() 177 pkey->pkey_algo, hash_algo); in software_key_determine_akcipher() 208 params->hash_algo, in software_key_query() 273 params->hash_algo, in software_key_eds_op() 363 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/lib/efi_loader/ |
| A D | efi_signature.c | 129 void **hash, const char *hash_algo, int *len) in efi_hash_regions() argument 133 if (!hash_algo) in efi_hash_regions() 136 hash_len = algo_to_len(hash_algo); in efi_hash_regions() 148 ret = hash_calculate(hash_algo, regs, count, *hash); in efi_hash_regions() 217 const char *hash_algo = NULL; in efi_signature_lookup_digest() local 233 hash_algo = guid_to_sha_str(&efi_guid_sha256); in efi_signature_lookup_digest() 289 const char *hash_algo = NULL; in efi_lookup_certificate() local 305 hash_algo = guid_to_sha_str(&efi_guid_sha256); in efi_lookup_certificate() 432 const char *hash_algo = NULL; in efi_signature_check_revocation() local 441 hash_algo = guid_to_sha_str(&siglist->sig_type); in efi_signature_check_revocation() [all …]
|
| /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() 232 int hw_sha_init(struct hash_algo *algo, void **ctxp) in hw_sha_init() 237 int hw_sha_update(struct hash_algo *algo, void *ctx, const void *buf, in hw_sha_update() 243 int hw_sha_finish(struct hash_algo *algo, void *ctx, void *dest_buf, in hw_sha_finish()
|
| /u-boot/include/dm/ |
| A D | of_extra.h | 34 enum fmap_hash_t hash_algo; /* Hash algorithm */ member
|
| /u-boot/lib/ |
| A D | hash-checksum.c | 23 struct hash_algo *algo; in hash_calculate()
|
| /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/crypto/ |
| A D | public_key.h | 49 const char *hash_algo; member
|
| /u-boot/drivers/crypto/nuvoton/ |
| A D | npcm_sha.c | 190 int hw_sha_init(struct hash_algo *algo, void **ctxp) in hw_sha_init() 218 int hw_sha_update(struct hash_algo *algo, void *ctx, const void *buf, in hw_sha_update() 235 int hw_sha_finish(struct hash_algo *algo, void *ctx, void *dest_buf, int size) in hw_sha_finish()
|
| /u-boot/drivers/core/ |
| A D | of_extra.c | 48 entry->hash_algo = prop ? FMAP_HASH_SHA256 : FMAP_HASH_NONE; in ofnode_read_fmap_entry()
|
| /u-boot/boot/ |
| A D | image-fit.c | 1258 enum HASH_ALGO hash_algo; in calculate_hash() local 1267 hash_algo = hash_algo_lookup_by_name(name); in calculate_hash() 1268 if (hash_algo == HASH_ALGO_INVALID) { in calculate_hash() 1273 rc = hash_digest_wd(dev, hash_algo, data, data_len, value, CHUNKSZ); in calculate_hash() 1279 *value_len = hash_algo_digest_size(hash_algo); in calculate_hash() 1281 struct hash_algo *algo; in calculate_hash()
|
| /u-boot/tools/ |
| A D | fit_image.c | 217 const char *hash_algo = "crc32"; in fit_add_hash_or_sign() local 233 hash_algo = "sha1"; in fit_add_hash_or_sign() 247 fdt_property_string(fdt, FIT_ALGO_PROP, hash_algo); in fit_add_hash_or_sign()
|
| /u-boot/board/freescale/common/ |
| A D | fsl_validate.c | 492 struct hash_algo *algo; in calc_img_key_hash() 539 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/tools/buildman/ |
| A D | README.rst | 822 hash_algo 16 - -16 830 hash_algo 16 - -16 838 hash_algo 16 - -16 867 hash_algo 16 - -16
|
| A D | buildman.rst | 822 hash_algo 16 - -16 830 hash_algo 16 - -16 838 hash_algo 16 - -16 867 hash_algo 16 - -16
|
| /u-boot/doc/build/ |
| A D | buildman.rst | 822 hash_algo 16 - -16 830 hash_algo 16 - -16 838 hash_algo 16 - -16 867 hash_algo 16 - -16
|