Searched refs:algo (Results 1 – 7 of 7) sorted by relevance
/trusted-firmware-a-latest/drivers/nxp/crypto/caam/src/auth/ |
D | hash.c | 42 int hash_init(enum hash_algo algo, void **ctx) in hash_init() argument 47 glbl_ctx.algo = algo; in hash_init() 64 int hash_update(enum hash_algo algo, void *context, void *data_ptr, in hash_update() argument 76 if (ctx->algo != algo) { in hash_update() 111 int hash_final(enum hash_algo algo, void *context, void *hash_ptr, in hash_final() argument 123 if (ctx->algo != algo) { in hash_final()
|
D | nxp_crypto.c | 82 enum hash_algo algo = SHA256; in verify_hash() local 88 ret = hash_init(algo, &ctx); in verify_hash() 94 ret = hash_update(algo, ctx, data_ptr, data_len); in verify_hash() 100 ret = hash_final(algo, ctx, hash, digest_size); in verify_hash()
|
/trusted-firmware-a-latest/drivers/nxp/auth/csf_hdr_parser/ |
D | csf_hdr_parser.c | 56 enum hash_algo algo = SHA256; in deploy_rotpk_hash_table() local 68 ret = hash_init(algo, &ctx); in deploy_rotpk_hash_table() 74 ret = hash_update(algo, ctx, (uint8_t *)((uint8_t *)srk_buffer), in deploy_rotpk_hash_table() 81 ret = hash_final(algo, ctx, hash, digest_size); in deploy_rotpk_hash_table() 109 ret = hash_init(algo, &ctx); in deploy_rotpk_hash_table() 115 ret = hash_update(algo, ctx, srktbl[i].pkey, srktbl[i].key_len); in deploy_rotpk_hash_table() 121 ret = hash_final(algo, ctx, rotpk_hash_table[i], digest_size); in deploy_rotpk_hash_table() 147 enum hash_algo algo = SHA256; in calc_img_hash() local 149 ret = hash_init(algo, &ctx); in calc_img_hash() 156 ret = hash_update(algo, ctx, (uint8_t *)hdr, sizeof(struct csf_hdr)); in calc_img_hash() [all …]
|
/trusted-firmware-a-latest/include/drivers/nxp/crypto/caam/ |
D | hash.h | 75 enum hash_algo algo; member 79 int hash_init(enum hash_algo algo, void **ctx); 80 int hash_update(enum hash_algo algo, void *context, void *data_ptr, 82 int hash_final(enum hash_algo algo, void *context, void *hash_ptr,
|
/trusted-firmware-a-latest/include/drivers/nxp/auth/csf_hdr_parser/ |
D | csf_hdr.h | 150 enum sig_alg *algo);
|
/trusted-firmware-a-latest/drivers/auth/mbedtls/ |
D | mbedtls_crypto.c | 241 static inline mbedtls_md_type_t md_type(enum crypto_md_algo algo) in md_type() argument 243 switch (algo) { in md_type()
|
D | mbedtls_psa_crypto.c | 511 static inline mbedtls_md_type_t md_type(enum crypto_md_algo algo) in md_type() argument 513 switch (algo) { in md_type()
|