Lines Matching defs:algo
56 enum hash_algo algo = SHA256;
68 ret = hash_init(algo, &ctx);
74 ret = hash_update(algo, ctx, (uint8_t *)((uint8_t *)srk_buffer),
81 ret = hash_final(algo, ctx, hash, digest_size);
109 ret = hash_init(algo, &ctx);
115 ret = hash_update(algo, ctx, srktbl[i].pkey, srktbl[i].key_len);
121 ret = hash_final(algo, ctx, rotpk_hash_table[i], digest_size);
147 enum hash_algo algo = SHA256;
149 ret = hash_init(algo, &ctx);
156 ret = hash_update(algo, ctx, (uint8_t *)hdr, sizeof(struct csf_hdr));
162 ret = hash_update(algo, ctx,
170 ret = hash_update(algo, ctx, (uint8_t *)(img_addr), img_size);
176 ret = hash_final(algo, ctx, img_hash, digest_size);
299 enum sig_alg *algo)
314 ret = get_key(hdr, &key, &klen, algo);