| /optee_os/core/lib/libtomcrypt/ |
| H A D | shake.c | 14 struct crypto_hash_ctx ctx; 18 static struct shake_ctx *to_shake_ctx(struct crypto_hash_ctx *ctx) in to_shake_ctx() 23 static TEE_Result do_shake_init(struct crypto_hash_ctx *ctx, unsigned int num) in do_shake_init() 33 static TEE_Result do_sha3_update(struct crypto_hash_ctx *ctx, in do_sha3_update() 44 static TEE_Result do_shake_final(struct crypto_hash_ctx *ctx, in do_shake_final() 55 static TEE_Result do_shake_alloc_ctx(struct crypto_hash_ctx **ctx_ret, in do_shake_alloc_ctx() 69 static void do_sha3_free_ctx(struct crypto_hash_ctx *ctx) in do_sha3_free_ctx() 75 static void do_sha3_copy_state(struct crypto_hash_ctx *dst_ctx, in do_sha3_copy_state() 76 struct crypto_hash_ctx *src_ctx) in do_sha3_copy_state() 86 static TEE_Result do_shake128_init(struct crypto_hash_ctx *ctx) in do_shake128_init() [all …]
|
| H A D | hash.c | 22 struct crypto_hash_ctx ctx; 29 static struct ltc_hash_ctx *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx() 36 static TEE_Result ltc_hash_init(struct crypto_hash_ctx *ctx) in ltc_hash_init() 46 static TEE_Result ltc_hash_update(struct crypto_hash_ctx *ctx, in ltc_hash_update() 57 static TEE_Result ltc_hash_final(struct crypto_hash_ctx *ctx, uint8_t *digest, in ltc_hash_final() 86 static void ltc_hash_free_ctx(struct crypto_hash_ctx *ctx) in ltc_hash_free_ctx() 91 static void ltc_hash_copy_state(struct crypto_hash_ctx *dst_ctx, in ltc_hash_copy_state() 92 struct crypto_hash_ctx *src_ctx) in ltc_hash_copy_state() 109 static TEE_Result ltc_hash_alloc_ctx(struct crypto_hash_ctx **ctx_ret, in ltc_hash_alloc_ctx() 130 TEE_Result crypto_md5_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_md5_alloc_ctx() [all …]
|
| /optee_os/lib/libmbedtls/core/ |
| H A D | hash.c | 26 struct crypto_hash_ctx hash_ctx; 32 static struct mbed_hash_ctx *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx() 39 static TEE_Result mbed_hash_init(struct crypto_hash_ctx *ctx) in mbed_hash_init() 47 static TEE_Result mbed_hash_update(struct crypto_hash_ctx *ctx, in mbed_hash_update() 56 static TEE_Result mbed_hash_final(struct crypto_hash_ctx *ctx, uint8_t *digest, in mbed_hash_final() 85 static void mbed_hash_free_ctx(struct crypto_hash_ctx *ctx) in mbed_hash_free_ctx() 93 static void mbed_hash_copy_state(struct crypto_hash_ctx *dst_ctx, in mbed_hash_copy_state() 94 struct crypto_hash_ctx *src_ctx) in mbed_hash_copy_state() 111 static TEE_Result mbed_hash_alloc_ctx(struct crypto_hash_ctx **ctx_ret, in mbed_hash_alloc_ctx() 140 TEE_Result crypto_md5_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_md5_alloc_ctx() [all …]
|
| /optee_os/core/crypto/ |
| H A D | sm3-hash.c | 22 struct crypto_hash_ctx hash_ctx; 28 static struct sm3_hash_ctx *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx() 35 static TEE_Result op_sm3_hash_init(struct crypto_hash_ctx *ctx) in op_sm3_hash_init() 42 static TEE_Result op_sm3_hash_update(struct crypto_hash_ctx *ctx, in op_sm3_hash_update() 50 static TEE_Result op_sm3_hash_final(struct crypto_hash_ctx *ctx, in op_sm3_hash_final() 75 static void op_sm3_hash_free_ctx(struct crypto_hash_ctx *ctx) in op_sm3_hash_free_ctx() 83 static void op_sm3_hash_copy_state(struct crypto_hash_ctx *dst_ctx, in op_sm3_hash_copy_state() 84 struct crypto_hash_ctx *src_ctx) in op_sm3_hash_copy_state() 100 TEE_Result crypto_sm3_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sm3_alloc_ctx()
|
| H A D | crypto.c | 19 struct crypto_hash_ctx *c = NULL; in crypto_hash_alloc_ctx() 81 struct crypto_hash_ctx *c = ctx; in hash_ops()
|
| /optee_os/core/drivers/crypto/stm32/ |
| H A D | hash.c | 20 struct crypto_hash_ctx ch_ctx; 24 static struct stm32_hash_ctx *to_stm32_hash_ctx(struct crypto_hash_ctx *ctx) in to_stm32_hash_ctx() 36 static TEE_Result do_hash_init(struct crypto_hash_ctx *ctx) in do_hash_init() 50 static TEE_Result do_hash_update(struct crypto_hash_ctx *ctx, in do_hash_update() 65 static TEE_Result do_hash_final(struct crypto_hash_ctx *ctx, uint8_t *digest, in do_hash_final() 89 static void do_hash_free(struct crypto_hash_ctx *ctx) in do_hash_free() 103 static void do_hash_copy_state(struct crypto_hash_ctx *dst_ctx, in do_hash_copy_state() 104 struct crypto_hash_ctx *src_ctx) in do_hash_copy_state() 130 static TEE_Result stm32_hash_allocate(struct crypto_hash_ctx **ctx, in stm32_hash_allocate()
|
| /optee_os/core/include/crypto/ |
| H A D | crypto_impl.h | 17 struct crypto_hash_ctx { struct 22 TEE_Result (*init)(struct crypto_hash_ctx *ctx); argument 23 TEE_Result (*update)(struct crypto_hash_ctx *ctx, const uint8_t *data, 25 TEE_Result (*final)(struct crypto_hash_ctx *ctx, uint8_t *digest, 27 void (*free_ctx)(struct crypto_hash_ctx *ctx); 28 void (*copy_state)(struct crypto_hash_ctx *dst_ctx, 29 struct crypto_hash_ctx *src_ctx); 38 TEE_Result crypto_md5_alloc_ctx(struct crypto_hash_ctx **ctx); 44 TEE_Result crypto_sha1_alloc_ctx(struct crypto_hash_ctx **ctx); 50 TEE_Result crypto_sha224_alloc_ctx(struct crypto_hash_ctx **ctx); [all …]
|
| /optee_os/core/drivers/crypto/aspeed/ |
| H A D | hace_ast2600.c | 43 struct crypto_hash_ctx hash_ctx; 83 static TEE_Result ast2600_hace_process(struct crypto_hash_ctx *ctx, in ast2600_hace_process() 135 static TEE_Result ast2600_hace_init(struct crypto_hash_ctx *ctx) in ast2600_hace_init() 166 static TEE_Result ast2600_hace_update(struct crypto_hash_ctx *ctx, in ast2600_hace_update() 216 static TEE_Result ast2600_hace_final(struct crypto_hash_ctx *ctx, in ast2600_hace_final() 291 static void ast2600_hace_free(struct crypto_hash_ctx *ctx) in ast2600_hace_free() 302 static void ast2600_hace_copy_state(struct crypto_hash_ctx *dst_ctx, in ast2600_hace_copy_state() 303 struct crypto_hash_ctx *src_ctx) in ast2600_hace_copy_state() 336 static TEE_Result ast2600_hace_alloc(struct crypto_hash_ctx **pctx, in ast2600_hace_alloc()
|
| /optee_os/core/drivers/crypto/caam/hash/ |
| H A D | caam_hash.c | 89 struct crypto_hash_ctx hash_ctx; /* Crypto Hash API context */ 105 static struct crypto_hash *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx() 157 static TEE_Result do_hash_init(struct crypto_hash_ctx *ctx) in do_hash_init() 172 static TEE_Result do_hash_update(struct crypto_hash_ctx *ctx, in do_hash_update() 188 static TEE_Result do_hash_final(struct crypto_hash_ctx *ctx, uint8_t *digest, in do_hash_final() 202 static void do_hash_free(struct crypto_hash_ctx *ctx) in do_hash_free() 218 static void do_hash_copy_state(struct crypto_hash_ctx *dst_ctx, in do_hash_copy_state() 219 struct crypto_hash_ctx *src_ctx) in do_hash_copy_state() 244 static TEE_Result caam_hash_allocate(struct crypto_hash_ctx **ctx, in caam_hash_allocate()
|
| /optee_os/core/drivers/crypto/crypto_api/include/ |
| H A D | drvcrypt_hash.h | 17 typedef TEE_Result (*hw_hash_allocate)(struct crypto_hash_ctx **ctx,
|
| /optee_os/core/drivers/crypto/hisilicon/ |
| H A D | sec_hash.c | 60 static struct crypto_hash *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx() 302 static TEE_Result sec_hash_initialize(struct crypto_hash_ctx *ctx) in sec_hash_initialize() 370 static TEE_Result sec_hash_do_update(struct crypto_hash_ctx *ctx, in sec_hash_do_update() 419 static TEE_Result sec_hash_do_final(struct crypto_hash_ctx *ctx, in sec_hash_do_final() 440 static void sec_hash_ctx_free(struct crypto_hash_ctx *ctx) in sec_hash_ctx_free() 484 static void sec_hash_copy_state(struct crypto_hash_ctx *out_ctx, in sec_hash_copy_state() 485 struct crypto_hash_ctx *in_ctx) in sec_hash_copy_state() 599 static TEE_Result sec_hash_ctx_allocate(struct crypto_hash_ctx **ctx, in sec_hash_ctx_allocate()
|
| H A D | sec_hash.h | 52 struct crypto_hash_ctx hash_ctx; /* Crypto Hash API context */
|
| /optee_os/core/drivers/crypto/crypto_api/hash/ |
| H A D | hash.c | 12 TEE_Result drvcrypt_hash_alloc_ctx(struct crypto_hash_ctx **ctx, uint32_t algo) in drvcrypt_hash_alloc_ctx()
|