Home
last modified time | relevance | path

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

12345678910

/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/linux/drivers/video/fbdev/savage/
Dsavagefb-i2c.c
/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/linux/drivers/gpu/drm/gma500/
Dintel_i2c.c
/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/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";
/openbmc/linux/drivers/video/fbdev/i810/
Di810-i2c.c
/openbmc/linux/include/linux/
Dgenalloc.h
/openbmc/linux/lib/raid6/test/
Dtest.c
/openbmc/linux/drivers/video/fbdev/nvidia/
Dnv_i2c.c
/openbmc/linux/drivers/video/fbdev/aty/
Dradeon_i2c.c
/openbmc/linux/drivers/video/fbdev/riva/
Drivafb-i2c.c
/openbmc/linux/drivers/crypto/virtio/
Dvirtio_crypto_mgr.c
/openbmc/linux/drivers/i2c/algos/
DMakefile
/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/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
Dbus.c
/openbmc/linux/drivers/i2c/busses/
Di2c-nforce2-s4985.c
Di2c-amd756-s4882.c
/openbmc/linux/drivers/crypto/intel/keembay/
Docs-hcu.h
/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
/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,

12345678910