| /u-boot/test/py/tests/vboot/ |
| A D | hash-images.its | 18 algo = "crc16-ccitt"; 21 algo = "crc32"; 24 algo = "md5"; 27 algo = "sha1"; 30 algo = "sha256"; 33 algo = "sha384"; 36 algo = "sha512"; 50 algo = "crc32"; 53 algo = "md5"; 56 algo = "sha1"; [all …]
|
| /u-boot/common/ |
| A D | hash.c | 65 if (size < algo->digest_size) in hash_finish_sha1() 92 if (size < algo->digest_size) in hash_finish_sha256() 119 if (size < algo->digest_size) in hash_finish_sha384() 146 if (size < algo->digest_size) in hash_finish_sha512() 173 if (size < algo->digest_size) in hash_finish_crc16_ccitt() 200 if (size < algo->digest_size) in hash_finish_crc32() 396 struct hash_algo *algo; in hash_parse_string() local 417 struct hash_algo *algo; in hash_block() local 431 algo->hash_func_ws(data, len, output, algo->chunk_size); in hash_block() 571 struct hash_algo *algo; local [all …]
|
| /u-boot/lib/ |
| A D | hash-checksum.c | 23 struct hash_algo *algo; in hash_calculate() local 29 ret = hash_progressive_lookup_algo(name, &algo); in hash_calculate() 33 ret = algo->hash_init(algo, &ctx); in hash_calculate() 38 ret = algo->hash_update(algo, ctx, region[i].data, in hash_calculate() 44 ret = algo->hash_update(algo, ctx, region[i].data, region[i].size, 1); in hash_calculate() 47 ret = algo->hash_finish(algo, ctx, checksum, algo->digest_size); in hash_calculate()
|
| /u-boot/drivers/crypto/hash/ |
| A D | hash-uclass.c | 48 ssize_t hash_algo_digest_size(enum HASH_ALGO algo) in hash_algo_digest_size() argument 50 if (algo >= HASH_ALGO_NUM) in hash_algo_digest_size() 53 return hash_info[algo].digest_size; in hash_algo_digest_size() 56 const char *hash_algo_name(enum HASH_ALGO algo) in hash_algo_name() argument 58 if (algo >= HASH_ALGO_NUM) in hash_algo_name() 61 return hash_info[algo].name; in hash_algo_name() 64 int hash_digest(struct udevice *dev, enum HASH_ALGO algo, in hash_digest() argument 73 return ops->hash_digest(dev, algo, ibuf, ilen, obuf); in hash_digest() 76 int hash_digest_wd(struct udevice *dev, enum HASH_ALGO algo, in hash_digest_wd() argument 85 return ops->hash_digest_wd(dev, algo, ibuf, ilen, obuf, chunk_sz); in hash_digest_wd() [all …]
|
| A D | hash_sw.c | 132 enum HASH_ALGO algo; member 194 static int sw_hash_init(struct udevice *dev, enum HASH_ALGO algo, void **ctxp) in sw_hash_init() argument 197 struct sw_hash_impl *hash_impl = &sw_hash_impl[algo]; in sw_hash_init() 199 hash_ctx = malloc(sizeof(hash_ctx->algo) + hash_impl->ctx_alloc_sz); in sw_hash_init() 203 hash_ctx->algo = algo; in sw_hash_init() 215 struct sw_hash_impl *hash_impl = &sw_hash_impl[hash_ctx->algo]; in sw_hash_update() 225 struct sw_hash_impl *hash_impl = &sw_hash_impl[hash_ctx->algo]; in sw_hash_finish() 234 static int sw_hash_digest_wd(struct udevice *dev, enum HASH_ALGO algo, in sw_hash_digest_wd() argument 243 rc = sw_hash_init(dev, algo, &ctx); in sw_hash_digest_wd() 276 static int sw_hash_digest(struct udevice *dev, enum HASH_ALGO algo, in sw_hash_digest() argument [all …]
|
| /u-boot/include/u-boot/ |
| A D | hash.h | 24 ssize_t hash_algo_digest_size(enum HASH_ALGO algo); 25 const char *hash_algo_name(enum HASH_ALGO algo); 28 int hash_digest(struct udevice *dev, enum HASH_ALGO algo, 31 int hash_digest_wd(struct udevice *dev, enum HASH_ALGO algo, 34 int hash_init(struct udevice *dev, enum HASH_ALGO algo, void **ctxp); 46 int (*hash_init)(struct udevice *dev, enum HASH_ALGO algo, void **ctxp); 51 int (*hash_digest)(struct udevice *dev, enum HASH_ALGO algo, 56 int (*hash_digest_wd)(struct udevice *dev, enum HASH_ALGO algo,
|
| /u-boot/tools/binman/test/ |
| A D | 165_section_ignore_hash_signature.dts | 14 algo = "sha256"; 17 algo = "sha256,rsa2048"; 25 algo = "sha1"; 28 algo = "sha256"; 31 algo = "sha1,rsa2048"; 35 algo = "sha256,rsa2048";
|
| A D | 161_fit.dts | 26 algo = "crc32"; 29 algo = "sha1"; 40 algo = "crc32"; 43 algo = "sha1";
|
| A D | 162_fit_external.dts | 27 algo = "crc32"; 30 algo = "sha1"; 41 algo = "crc32"; 44 algo = "sha1";
|
| /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() argument 50 if (!strcmp(algo->name, driver_hash[SHA1].name)) in get_hash_type() 183 unsigned char *pout, enum caam_hash_algos algo) in caam_hash() argument 199 driver_hash[algo].alg_type, in caam_hash() 200 driver_hash[algo].digestsize, in caam_hash() 205 size = ALIGN(driver_hash[algo].digestsize, ARCH_DMA_MINALIGN); in caam_hash() 210 size = ALIGN(driver_hash[algo].digestsize, ARCH_DMA_MINALIGN); in caam_hash() 232 int hw_sha_init(struct hash_algo *algo, void **ctxp) in hw_sha_init() argument 234 return caam_hash_init(ctxp, get_hash_type(algo)); in hw_sha_init() 243 int hw_sha_finish(struct hash_algo *algo, void *ctx, void *dest_buf, in hw_sha_finish() argument [all …]
|
| /u-boot/doc/usage/fit/ |
| A D | multi.rst | 25 algo = "md5"; 28 algo = "sha1"; 42 algo = "sha1"; 56 algo = "md5"; 70 algo = "sha1"; 84 algo = "crc32"; 95 algo = "crc32"; 107 algo = "sha1";
|
| A D | kernel_fdts_compressed.rst | 28 algo = "crc32"; 31 algo = "sha1"; 41 algo = "crc32"; 44 algo = "sha1"; 54 algo = "crc32"; 57 algo = "sha1";
|
| A D | kernel_fdt.rst | 25 algo = "crc32"; 28 algo = "sha1"; 38 algo = "crc32"; 41 algo = "sha1";
|
| /u-boot/board/st/stm32mp1/ |
| A D | fit_copro_kernel_dtb.its | 35 algo = "sha1"; 49 algo = "sha1"; 60 algo = "sha1"; 71 algo = "sha1"; 85 algo = "sha1"; 94 algo = "sha1"; 104 algo = "sha1"; 113 algo = "sha1";
|
| A D | fit_kernel_dtb.its | 34 algo = "sha1"; 45 algo = "sha1"; 56 algo = "sha1"; 69 algo = "sha1"; 78 algo = "sha1";
|
| /u-boot/arch/arm/mach-stm32mp/ |
| A D | ecdsa_romapi.c | 53 int algo; in romapi_ecdsa_verify() local 59 algo = ecdsa_key_algo(pubkey->curve_name); in romapi_ecdsa_verify() 60 if (algo < 0) in romapi_ecdsa_verify() 61 return algo; in romapi_ecdsa_verify() 72 rom_ret = rom.ecdsa_verify_signature(hash, raw_key, signature, algo); in romapi_ecdsa_verify()
|
| /u-boot/lib/ecdsa/ |
| A D | ecdsa-verify.c | 60 const struct checksum_algo *algo = info->checksum; in ecdsa_verify_hash() local 72 return ops->verify(dev, &key, hash, algo->checksum_len, in ecdsa_verify_hash() 86 ret = ops->verify(dev, &key, hash, algo->checksum_len, in ecdsa_verify_hash() 101 const struct checksum_algo *algo = info->checksum; in ecdsa_verify() local 102 uint8_t hash[algo->checksum_len]; in ecdsa_verify() 112 ret = algo->calculate(algo->name, region, region_count, hash); in ecdsa_verify()
|
| /u-boot/board/broadcom/bcmns3/fit/ |
| A D | multi.its | 22 algo = "sha1"; 25 algo = "sha1,rsa2048"; 37 algo = "sha1"; 40 algo = "sha1,rsa2048"; 53 algo = "sha1,rsa2048";
|
| /u-boot/board/freescale/common/ |
| A D | fsl_validate.c | 492 struct hash_algo *algo; in calc_img_key_hash() local 503 ret = algo->hash_init(algo, &ctx); in calc_img_key_hash() 509 ret = algo->hash_update(algo, ctx, in calc_img_key_hash() 516 ret = algo->hash_update(algo, ctx, in calc_img_key_hash() 521 ret = algo->hash_finish(algo, ctx, hash_val, algo->digest_size); in calc_img_key_hash() 550 ret = algo->hash_init(algo, &ctx); in calc_esbchdr_esbc_hash() 556 ret = algo->hash_update(algo, ctx, in calc_esbchdr_esbc_hash() 568 ret = algo->hash_update(algo, ctx, in calc_esbchdr_esbc_hash() 581 ret = algo->hash_update(algo, ctx, in calc_esbchdr_esbc_hash() 593 ret = algo->hash_update(algo, ctx, in calc_esbchdr_esbc_hash() [all …]
|
| /u-boot/arch/arm/dts/ |
| A D | socfpga_soc64_fit-u-boot.dtsi | 36 algo = "crc32"; 52 algo = "crc32"; 64 algo = "crc32"; 77 algo = "crc32"; 105 algo = "crc32"; 118 algo = "crc32"; 130 algo = "crc32";
|
| /u-boot/test/py/tests/ |
| A D | test_fit_auto_signed.py | 72 algo = self.__fdt_get_string(f'{node}/hash', 'algo') 73 assert algo == "crc32\n", "Missing expected crc32 image hash!" 90 algo = self.__fdt_get_string(f'{node}/signature', 'algo') 91 assert algo == sign_algo + "\n", "Missing expected signature algo!" 107 algo = self.__fdt_get_string(f'{node}/hash', 'algo') 108 assert algo == "sha1\n", "Missing expected sha1 image hash!" 117 algo = self.__fdt_get_string(f'{node}/signature', 'algo') 118 assert algo == sign_algo + "\n", "Missing expected signature algo!"
|
| /u-boot/drivers/crypto/aspeed/ |
| A D | aspeed_hace.c | 44 enum HASH_ALGO algo; member 114 static int aspeed_hace_init(struct udevice *dev, enum HASH_ALGO algo, void **ctxp) in aspeed_hace_init() argument 124 hace_ctx->algo = algo; in aspeed_hace_init() 127 switch (algo) { in aspeed_hace_init() 153 debug("Unsupported hash algorithm '%s'\n", hash_algo_name(algo)); in aspeed_hace_init() 229 switch (hace_ctx->algo) { in aspeed_hace_finish() 270 memcpy(obuf, hace_ctx->digest, hash_algo_digest_size(hace_ctx->algo)); in aspeed_hace_finish() 278 static int aspeed_hace_digest_wd(struct udevice *dev, enum HASH_ALGO algo, in aspeed_hace_digest_wd() argument 287 rc = aspeed_hace_init(dev, algo, &ctx); in aspeed_hace_digest_wd() 320 static int aspeed_hace_digest(struct udevice *dev, enum HASH_ALGO algo, in aspeed_hace_digest() argument [all …]
|
| /u-boot/include/ |
| 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 | hash.h | 54 int (*hash_init)(struct hash_algo *algo, void **ctxp); 67 int (*hash_update)(struct hash_algo *algo, void *ctx, const void *buf, 81 int (*hash_finish)(struct hash_algo *algo, void *ctx, void *dest_buf,
|
| /u-boot/drivers/watchdog/ |
| A D | gpio_wdt.c | 55 const char *algo = dev_read_string(dev, "hw_algo"); in dm_probe() local 57 if (!algo) in dm_probe() 59 if (!strcmp(algo, "toggle")) in dm_probe() 61 else if (!strcmp(algo, "level")) in dm_probe()
|