Home
last modified time | relevance | path

Searched refs:crypto_hash_ctx (Results 1 – 9 of 9) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/
A Dhash.c22 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()
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()
130 TEE_Result crypto_md5_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_md5_alloc_ctx()
137 TEE_Result crypto_sha1_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha1_alloc_ctx()
144 TEE_Result crypto_sha224_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha224_alloc_ctx()
[all …]
/optee_os-3.20.0/core/crypto/
A Dsm3-hash.c22 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()
A Dcrypto.c20 struct crypto_hash_ctx *c = NULL; in crypto_hash_alloc_ctx()
64 struct crypto_hash_ctx *c = ctx; in hash_ops()
/optee_os-3.20.0/lib/libmbedtls/core/
A Dhash.c26 struct crypto_hash_ctx 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()
84 static void mbed_hash_free_ctx(struct crypto_hash_ctx *ctx) in mbed_hash_free_ctx()
92 static void mbed_hash_copy_state(struct crypto_hash_ctx *dst_ctx, in mbed_hash_copy_state()
93 struct crypto_hash_ctx *src_ctx) in mbed_hash_copy_state()
139 TEE_Result crypto_md5_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_md5_alloc_ctx()
146 TEE_Result crypto_sha1_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha1_alloc_ctx()
153 TEE_Result crypto_sha224_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha224_alloc_ctx()
160 TEE_Result crypto_sha256_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha256_alloc_ctx()
[all …]
/optee_os-3.20.0/core/include/crypto/
A Dcrypto_impl.h17 struct crypto_hash_ctx { struct
22 TEE_Result (*init)(struct crypto_hash_ctx *ctx); argument
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);
56 TEE_Result crypto_sha256_alloc_ctx(struct crypto_hash_ctx **ctx);
[all …]
/optee_os-3.20.0/core/drivers/crypto/aspeed/
A Dhace_ast2600.c43 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-3.20.0/core/drivers/crypto/crypto_api/include/
A Ddrvcrypt_hash.h17 typedef TEE_Result (*hw_hash_allocate)(struct crypto_hash_ctx **ctx,
/optee_os-3.20.0/core/drivers/crypto/crypto_api/hash/
A Dhash.c13 TEE_Result drvcrypt_hash_alloc_ctx(struct crypto_hash_ctx **ctx, uint32_t algo) in drvcrypt_hash_alloc_ctx()
/optee_os-3.20.0/core/drivers/crypto/caam/hash/
A Dcaam_hash.c89 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()

Completed in 12 milliseconds