Home
last modified time | relevance | path

Searched refs:algo (Results 1 – 25 of 68) sorted by relevance

123

/openbmc/u-boot/common/
H A Dhash.c34 static int hash_init_sha1(struct hash_algo *algo, void **ctxp) in hash_init_sha1() argument
42 static int hash_update_sha1(struct hash_algo *algo, void *ctx, const void *buf, in hash_update_sha1() argument
49 static int hash_finish_sha1(struct hash_algo *algo, void *ctx, void *dest_buf, in hash_finish_sha1() argument
52 if (size < algo->digest_size) in hash_finish_sha1()
62 static int hash_init_sha256(struct hash_algo *algo, void **ctxp) in hash_init_sha256() argument
70 static int hash_update_sha256(struct hash_algo *algo, void *ctx, in hash_update_sha256() argument
77 static int hash_finish_sha256(struct hash_algo *algo, void *ctx, void in hash_finish_sha256() argument
80 if (size < algo->digest_size) in hash_finish_sha256()
90 static int hash_init_sha384(struct hash_algo *algo, void **ctxp) in hash_init_sha384() argument
98 static int hash_update_sha384(struct hash_algo *algo, void *ctx, in hash_update_sha384() argument
[all …]
/openbmc/u-boot/lib/rsa/
H A Drsa-checksum.c22 struct hash_algo *algo; in hash_calculate() local
28 ret = hash_progressive_lookup_algo(name, &algo); in hash_calculate()
32 ret = algo->hash_init(algo, &ctx); in hash_calculate()
37 ret = algo->hash_update(algo, ctx, region[i].data, in hash_calculate()
43 ret = algo->hash_update(algo, ctx, region[i].data, region[i].size, 1); in hash_calculate()
46 ret = algo->hash_finish(algo, ctx, checksum, algo->digest_size); in hash_calculate()
/openbmc/u-boot/drivers/crypto/fsl/
H A Dfsl_hash.c45 static enum caam_hash_algos get_hash_type(struct hash_algo *algo) in get_hash_type() argument
47 if (!strcmp(algo->name, driver_hash[SHA1].name)) in get_hash_type()
162 unsigned char *pout, enum caam_hash_algos algo) in caam_hash() argument
184 driver_hash[algo].alg_type, in caam_hash()
185 driver_hash[algo].digestsize, in caam_hash()
193 size = ALIGN(driver_hash[algo].digestsize, ARCH_DMA_MINALIGN); in caam_hash()
215 int hw_sha_init(struct hash_algo *algo, void **ctxp) in hw_sha_init() argument
217 return caam_hash_init(ctxp, get_hash_type(algo)); in hw_sha_init()
220 int hw_sha_update(struct hash_algo *algo, void *ctx, const void *buf, in hw_sha_update() argument
223 return caam_hash_update(ctx, buf, size, is_last, get_hash_type(algo)); in hw_sha_update()
[all …]
/openbmc/qemu/backends/
H A Dcryptodev-builtin.c138 int algo; in cryptodev_builtin_get_aes_algo() local
141 algo = QCRYPTO_CIPHER_ALGO_AES_128; in cryptodev_builtin_get_aes_algo()
143 algo = QCRYPTO_CIPHER_ALGO_AES_192; in cryptodev_builtin_get_aes_algo()
146 algo = QCRYPTO_CIPHER_ALGO_AES_128; in cryptodev_builtin_get_aes_algo()
148 algo = QCRYPTO_CIPHER_ALGO_AES_256; in cryptodev_builtin_get_aes_algo()
152 algo = QCRYPTO_CIPHER_ALGO_AES_256; in cryptodev_builtin_get_aes_algo()
160 return algo; in cryptodev_builtin_get_aes_algo()
221 int algo; in cryptodev_builtin_create_cipher_session() local
242 algo = cryptodev_builtin_get_aes_algo(sess_info->key_len, in cryptodev_builtin_create_cipher_session()
244 if (algo < 0) { in cryptodev_builtin_create_cipher_session()
[all …]
/openbmc/u-boot/doc/uImage.FIT/
H A Dmulti.its22 algo = "md5";
25 algo = "sha1";
39 algo = "sha1";
53 algo = "md5";
67 algo = "sha1";
81 algo = "crc32";
92 algo = "crc32";
104 algo = "sha1";
H A Dkernel_fdt.its22 algo = "crc32";
25 algo = "sha1";
35 algo = "crc32";
38 algo = "sha1";
H A Dupdate3.its19 algo = "sha1";
29 algo = "sha1";
40 algo = "sha1";
H A Dsign-configs.its18 algo = "sha1";
29 algo = "sha1";
39 algo = "sha1,rsa2048";
H A Dmulti-with-loadables.its23 algo = "md5";
35 algo = "md5";
47 algo = "md5";
61 algo = "md5";
H A Dkernel.its22 algo = "crc32";
25 algo = "sha1";
60 algo = "sha1";
74 algo = "sha1";
H A Dmulti-with-fpga.its21 algo = "md5";
33 algo = "md5";
47 algo = "md5";
H A Dhowto.txt98 Hash algo: crc32
100 Hash algo: sha1
143 Hash algo: crc32
145 Hash algo: sha1
165 Hash algo: crc32
167 Hash algo: sha1
208 Hash algo: crc32
210 Hash algo: sha1
218 Hash algo: crc32
220 Hash algo: sha1
[all …]
/openbmc/u-boot/board/freescale/common/
H A Dfsl_validate.c487 struct hash_algo *algo; in calc_img_key_hash() local
494 ret = hash_progressive_lookup_algo(algo_name, &algo); in calc_img_key_hash()
498 ret = algo->hash_init(algo, &ctx); in calc_img_key_hash()
505 ret = algo->hash_update(algo, ctx, in calc_img_key_hash()
512 ret = algo->hash_update(algo, ctx, in calc_img_key_hash()
518 ret = algo->hash_finish(algo, ctx, hash_val, algo->digest_size); in calc_img_key_hash()
535 struct hash_algo *algo; in calc_esbchdr_esbc_hash() local
542 ret = hash_progressive_lookup_algo(algo_name, &algo); in calc_esbchdr_esbc_hash()
546 ret = algo->hash_init(algo, &ctx); in calc_esbchdr_esbc_hash()
552 ret = algo->hash_update(algo, ctx, in calc_esbchdr_esbc_hash()
[all …]
/openbmc/u-boot/tools/binman/
H A Dstate.py234 algo = hash_node.props.get('algo')
235 if not algo:
237 if algo.value == 'sha256':
240 return "Unknown hash algorithm '%s'" % algo
247 algo = hash_node.props.get('algo').value
248 if algo == 'sha256':
/openbmc/u-boot/include/
H A Dhw_sha.h70 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,
H A Dhash.h48 int (*hash_init)(struct hash_algo *algo, void **ctxp);
61 int (*hash_update)(struct hash_algo *algo, void *ctx, const void *buf,
75 int (*hash_finish)(struct hash_algo *algo, void *ctx, void *dest_buf,
/openbmc/u-boot/test/py/tests/vboot/
H A Dsign-configs-sha1.its18 algo = "sha1";
29 algo = "sha1";
39 algo = "sha1,rsa2048";
H A Dsign-configs-sha256.its18 algo = "sha256";
29 algo = "sha256";
39 algo = "sha256,rsa2048";
H A Dsign-configs-sha256-pss.its18 algo = "sha256";
29 algo = "sha256";
39 algo = "sha256,rsa2048";
H A Dsign-configs-sha1-pss.its18 algo = "sha1";
29 algo = "sha1";
39 algo = "sha1,rsa2048";
/openbmc/u-boot/drivers/crypto/
H A Daspeed_hace_v1.c158 int hw_sha_init(struct hash_algo *algo, void **ctxp) in hw_sha_init() argument
163 if (!strcmp(algo->name, "sha1")) { in hw_sha_init()
166 else if (!strcmp(algo->name, "sha256")) { in hw_sha_init()
169 else if (!strcmp(algo->name, "sha512")) { in hw_sha_init()
190 ctx->digest_size = algo->digest_size; in hw_sha_init()
196 int hw_sha_update(struct hash_algo *algo, void *hash_ctx, const void *buf, in hw_sha_update() argument
219 int hw_sha_finish(struct hash_algo *algo, void *hash_ctx, void *dest_buf, int size) in hw_sha_finish() argument
H A Daspeed_hace.c156 int hw_sha_init(struct hash_algo *algo, void **ctxp) in hw_sha_init() argument
166 if (!strcmp(algo->name, "sha1")) { in hw_sha_init()
170 } else if (!strcmp(algo->name, "sha256")) { in hw_sha_init()
174 } else if (!strcmp(algo->name, "sha384")) { in hw_sha_init()
178 } else if (!strcmp(algo->name, "sha512")) { in hw_sha_init()
193 ctx->digest_size = algo->digest_size; in hw_sha_init()
202 int hw_sha_update(struct hash_algo *algo, void *hash_ctx, const void *buf, in hw_sha_update() argument
248 int hw_sha_finish(struct hash_algo *algo, void *hash_ctx, void *dest_buf, int size) in hw_sha_finish() argument
/openbmc/qemu/include/standard-headers/linux/
H A Dvirtio_crypto.h66 uint32_t algo; member
88 uint32_t algo; member
125 uint32_t algo; member
153 uint32_t algo; member
171 uint32_t algo; member
222 uint32_t algo; member
339 uint32_t algo; member
/openbmc/qemu/hw/misc/
H A Daspeed_hace.c79 QCryptoHashAlgo algo; member
137 return hash_algo_map[i].algo; in hash_algo_lookup()
354 static void hash_execute_non_acc_mode(AspeedHACEState *s, int algo, in hash_execute_non_acc_mode() argument
361 if (qcrypto_hash_bytesv(algo, iov, iov_idx, &digest_buf, in hash_execute_non_acc_mode()
373 static void hash_execute_acc_mode(AspeedHACEState *s, int algo, in hash_execute_acc_mode() argument
384 s->hash_ctx = qcrypto_hash_new(algo, &local_err); in hash_execute_acc_mode()
419 static void do_hash_operation(AspeedHACEState *s, int algo, bool sg_mode, in do_hash_operation() argument
446 hash_execute_acc_mode(s, algo, iov, iov_idx, acc_final_request); in do_hash_operation()
448 hash_execute_non_acc_mode(s, algo, iov, iov_idx); in do_hash_operation()
505 int algo; in aspeed_hace_write() local
[all …]
/openbmc/u-boot/doc/chromium/
H A Dchromebook_jerry.its18 algo = "sha1";
29 algo = "sha1";

123