Home
last modified time | relevance | path

Searched defs:ctx (Results 1 – 25 of 213) sorted by relevance

123456789

/optee_os/core/lib/libtomcrypt/
H A Dhmac.c17 struct crypto_mac_ctx ctx; member
24 static struct ltc_hmac_ctx *to_hmac_ctx(struct crypto_mac_ctx *ctx) in to_hmac_ctx()
31 static TEE_Result ltc_hmac_init(struct crypto_mac_ctx *ctx, const uint8_t *key, in ltc_hmac_init()
42 static TEE_Result ltc_hmac_update(struct crypto_mac_ctx *ctx, in ltc_hmac_update()
51 static TEE_Result ltc_hmac_final(struct crypto_mac_ctx *ctx, uint8_t *digest, in ltc_hmac_final()
62 static void ltc_hmac_free_ctx(struct crypto_mac_ctx *ctx) in ltc_hmac_free_ctx()
88 struct ltc_hmac_ctx *ctx = NULL; in ltc_hmac_alloc_ctx() local
105 TEE_Result crypto_hmac_md5_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_md5_alloc_ctx()
112 TEE_Result crypto_hmac_sha1_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sha1_alloc_ctx()
119 TEE_Result crypto_hmac_sha224_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sha224_alloc_ctx()
[all …]
H A Dhash.c22 struct crypto_hash_ctx ctx; member
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()
112 struct ltc_hash_ctx *ctx = NULL; in ltc_hash_alloc_ctx() local
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 …]
H A Dshake.c14 struct crypto_hash_ctx ctx; member
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()
58 struct shake_ctx *ctx = calloc(1, sizeof(*ctx)); in do_shake_alloc_ctx() local
69 static void do_sha3_free_ctx(struct crypto_hash_ctx *ctx) in do_sha3_free_ctx()
86 static TEE_Result do_shake128_init(struct crypto_hash_ctx *ctx) in do_shake128_init()
99 TEE_Result crypto_shake128_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_shake128_alloc_ctx()
106 static TEE_Result do_shake256_init(struct crypto_hash_ctx *ctx) in do_shake256_init()
[all …]
H A Dcbc.c17 struct crypto_cipher_ctx ctx; member
27 static struct ltc_cbc_ctx *to_cbc_ctx(struct crypto_cipher_ctx *ctx) in to_cbc_ctx()
34 static TEE_Result ltc_cbc_init(struct crypto_cipher_ctx *ctx, in ltc_cbc_init()
62 static TEE_Result ltc_cbc_update(struct crypto_cipher_ctx *ctx, in ltc_cbc_update()
74 static void ltc_cbc_final(struct crypto_cipher_ctx *ctx) in ltc_cbc_final()
79 static void ltc_cbc_free_ctx(struct crypto_cipher_ctx *ctx) in ltc_cbc_free_ctx()
124 TEE_Result crypto_aes_cbc_alloc_ctx(struct crypto_cipher_ctx **ctx) in crypto_aes_cbc_alloc_ctx()
131 TEE_Result crypto_des_cbc_alloc_ctx(struct crypto_cipher_ctx **ctx) in crypto_des_cbc_alloc_ctx()
136 TEE_Result crypto_des3_cbc_alloc_ctx(struct crypto_cipher_ctx **ctx) in crypto_des3_cbc_alloc_ctx()
H A Decb.c17 struct crypto_cipher_ctx ctx; member
27 static struct ltc_ecb_ctx *to_ecb_ctx(struct crypto_cipher_ctx *ctx) in to_ecb_ctx()
34 static TEE_Result ltc_ecb_init(struct crypto_cipher_ctx *ctx, in ltc_ecb_init()
60 static TEE_Result ltc_ecb_update(struct crypto_cipher_ctx *ctx, in ltc_ecb_update()
72 static void ltc_ecb_final(struct crypto_cipher_ctx *ctx) in ltc_ecb_final()
77 static void ltc_ecb_free_ctx(struct crypto_cipher_ctx *ctx) in ltc_ecb_free_ctx()
122 TEE_Result crypto_aes_ecb_alloc_ctx(struct crypto_cipher_ctx **ctx) in crypto_aes_ecb_alloc_ctx()
129 TEE_Result crypto_des_ecb_alloc_ctx(struct crypto_cipher_ctx **ctx) in crypto_des_ecb_alloc_ctx()
134 TEE_Result crypto_des3_ecb_alloc_ctx(struct crypto_cipher_ctx **ctx) in crypto_des3_ecb_alloc_ctx()
H A Dcmac.c18 struct crypto_mac_ctx ctx; member
25 static struct ltc_omac_ctx *to_omac_ctx(struct crypto_mac_ctx *ctx) in to_omac_ctx()
32 static TEE_Result ltc_omac_init(struct crypto_mac_ctx *ctx, const uint8_t *key, in ltc_omac_init()
43 static TEE_Result ltc_omac_update(struct crypto_mac_ctx *ctx, in ltc_omac_update()
52 static TEE_Result ltc_omac_final(struct crypto_mac_ctx *ctx, uint8_t *digest, in ltc_omac_final()
63 static void ltc_omac_free_ctx(struct crypto_mac_ctx *ctx) in ltc_omac_free_ctx()
89 struct ltc_omac_ctx *ctx = NULL; in crypto_common_cmac_alloc_ctx() local
/optee_os/lib/libmbedtls/core/
H A Dhash.c32 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()
140 TEE_Result crypto_md5_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_md5_alloc_ctx()
147 TEE_Result crypto_sha1_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha1_alloc_ctx()
154 TEE_Result crypto_sha224_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha224_alloc_ctx()
161 TEE_Result crypto_sha256_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha256_alloc_ctx()
168 TEE_Result crypto_sha384_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha384_alloc_ctx()
[all …]
H A Dhmac.c26 static struct mbed_hmac_ctx *to_hmac_ctx(struct crypto_mac_ctx *ctx) in to_hmac_ctx()
33 static TEE_Result mbed_hmac_init(struct crypto_mac_ctx *ctx, in mbed_hmac_init()
42 static TEE_Result mbed_hmac_update(struct crypto_mac_ctx *ctx, in mbed_hmac_update()
51 static TEE_Result mbed_hmac_final(struct crypto_mac_ctx *ctx, uint8_t *digest, in mbed_hmac_final()
80 static void mbed_hmac_free_ctx(struct crypto_mac_ctx *ctx) in mbed_hmac_free_ctx()
135 TEE_Result crypto_hmac_md5_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_md5_alloc_ctx()
142 TEE_Result crypto_hmac_sha1_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sha1_alloc_ctx()
149 TEE_Result crypto_hmac_sha224_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sha224_alloc_ctx()
156 TEE_Result crypto_hmac_sha256_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sha256_alloc_ctx()
163 TEE_Result crypto_hmac_sha384_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sha384_alloc_ctx()
[all …]
H A Daes.c17 void mbedtls_aes_init(mbedtls_aes_context *ctx) in mbedtls_aes_init()
23 void mbedtls_aes_free( mbedtls_aes_context *ctx ) in mbedtls_aes_free()
29 int mbedtls_aes_setkey_enc(mbedtls_aes_context *ctx, const unsigned char *key, in mbedtls_aes_setkey_enc()
44 int mbedtls_aes_setkey_dec(mbedtls_aes_context *ctx, const unsigned char *key, in mbedtls_aes_setkey_dec()
H A Daes_ecb.c22 struct crypto_cipher_ctx ctx; member
29 static struct mbed_aes_ecb_ctx *to_aes_ecb_ctx(struct crypto_cipher_ctx *ctx) in to_aes_ecb_ctx()
36 static TEE_Result mbed_aes_ecb_init(struct crypto_cipher_ctx *ctx, in mbed_aes_ecb_init()
65 static TEE_Result mbed_aes_ecb_update(struct crypto_cipher_ctx *ctx, in mbed_aes_ecb_update()
86 static void mbed_aes_ecb_final(struct crypto_cipher_ctx *ctx) in mbed_aes_ecb_final()
91 static void mbed_aes_ecb_free_ctx(struct crypto_cipher_ctx *ctx) in mbed_aes_ecb_free_ctx()
129 int mbedtls_aes_crypt_ecb(mbedtls_aes_context *ctx, int mode, in mbedtls_aes_crypt_ecb()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dx509write_crt.c40 void mbedtls_x509write_crt_init(mbedtls_x509write_cert *ctx) in mbedtls_x509write_crt_init()
47 void mbedtls_x509write_crt_free(mbedtls_x509write_cert *ctx) in mbedtls_x509write_crt_free()
60 void mbedtls_x509write_crt_set_version(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_version()
66 void mbedtls_x509write_crt_set_md_alg(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_md_alg()
72 void mbedtls_x509write_crt_set_subject_key(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_subject_key()
78 void mbedtls_x509write_crt_set_issuer_key(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_issuer_key()
84 int mbedtls_x509write_crt_set_subject_name(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_subject_name()
91 int mbedtls_x509write_crt_set_issuer_name(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_issuer_name()
99 int mbedtls_x509write_crt_set_serial(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_serial()
122 int mbedtls_x509write_crt_set_serial_raw(mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_serial_raw()
[all …]
H A Dcipher_wrap.c125 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_gcm_context)); in gcm_ctx_alloc() local
139 static void gcm_ctx_free(void *ctx) in gcm_ctx_free()
152 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_ccm_context)); in ccm_ctx_alloc() local
166 static void ccm_ctx_free(void *ctx) in ccm_ctx_free()
175 static int aes_crypt_ecb_wrap(void *ctx, mbedtls_operation_t operation, in aes_crypt_ecb_wrap()
182 static int aes_crypt_cbc_wrap(void *ctx, mbedtls_operation_t operation, size_t length, in aes_crypt_cbc_wrap()
191 static int aes_crypt_cfb128_wrap(void *ctx, mbedtls_operation_t operation, in aes_crypt_cfb128_wrap()
201 static int aes_crypt_ofb_wrap(void *ctx, size_t length, size_t *iv_off, in aes_crypt_ofb_wrap()
210 static int aes_crypt_ctr_wrap(void *ctx, size_t length, size_t *nc_off, in aes_crypt_ctr_wrap()
220 static int aes_crypt_xts_wrap(void *ctx, mbedtls_operation_t operation, in aes_crypt_xts_wrap()
[all …]
H A Decdh.c30 const mbedtls_ecdh_context *ctx) in mbedtls_ecdh_grp_id()
134 static void ecdh_init_internal(mbedtls_ecdh_context_mbed *ctx) in ecdh_init_internal()
147 mbedtls_ecp_group_id mbedtls_ecdh_get_grp_id(mbedtls_ecdh_context *ctx) in mbedtls_ecdh_get_grp_id()
159 void mbedtls_ecdh_init(mbedtls_ecdh_context *ctx) in mbedtls_ecdh_init()
177 static int ecdh_setup_internal(mbedtls_ecdh_context_mbed *ctx, in ecdh_setup_internal()
193 int mbedtls_ecdh_setup(mbedtls_ecdh_context *ctx, mbedtls_ecp_group_id grp_id) in mbedtls_ecdh_setup()
216 static void ecdh_free_internal(mbedtls_ecdh_context_mbed *ctx) in ecdh_free_internal()
233 void mbedtls_ecdh_enable_restart(mbedtls_ecdh_context *ctx) in mbedtls_ecdh_enable_restart()
242 void mbedtls_ecdh_free(mbedtls_ecdh_context *ctx) in mbedtls_ecdh_free()
273 static int ecdh_make_params_internal(mbedtls_ecdh_context_mbed *ctx, in ecdh_make_params_internal()
[all …]
H A Dhmac_drbg.c33 void mbedtls_hmac_drbg_init(mbedtls_hmac_drbg_context *ctx) in mbedtls_hmac_drbg_init()
43 int mbedtls_hmac_drbg_update(mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_update()
97 int mbedtls_hmac_drbg_seed_buf(mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_seed_buf()
134 static int hmac_drbg_reseed_core(mbedtls_hmac_drbg_context *ctx, in hmac_drbg_reseed_core()
210 int mbedtls_hmac_drbg_reseed(mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_reseed()
222 int mbedtls_hmac_drbg_seed(mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_seed()
280 void mbedtls_hmac_drbg_set_prediction_resistance(mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_set_prediction_resistance()
289 void mbedtls_hmac_drbg_set_entropy_len(mbedtls_hmac_drbg_context *ctx, size_t len) in mbedtls_hmac_drbg_set_entropy_len()
297 void mbedtls_hmac_drbg_set_reseed_interval(mbedtls_hmac_drbg_context *ctx, int interval) in mbedtls_hmac_drbg_set_reseed_interval()
311 mbedtls_hmac_drbg_context *ctx = (mbedtls_hmac_drbg_context *) p_rng; in mbedtls_hmac_drbg_random_with_add() local
[all …]
H A Dchachapoly.c34 static int chachapoly_pad_aad(mbedtls_chachapoly_context *ctx) in chachapoly_pad_aad()
55 static int chachapoly_pad_ciphertext(mbedtls_chachapoly_context *ctx) in chachapoly_pad_ciphertext()
70 void mbedtls_chachapoly_init(mbedtls_chachapoly_context *ctx) in mbedtls_chachapoly_init()
80 void mbedtls_chachapoly_free(mbedtls_chachapoly_context *ctx) in mbedtls_chachapoly_free()
94 int mbedtls_chachapoly_setkey(mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_setkey()
104 int mbedtls_chachapoly_starts(mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_starts()
143 int mbedtls_chachapoly_update_aad(mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_update_aad()
156 int mbedtls_chachapoly_update(mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_update()
204 int mbedtls_chachapoly_finish(mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_finish()
244 static int chachapoly_crypt_and_tag(mbedtls_chachapoly_context *ctx, in chachapoly_crypt_and_tag()
[all …]
H A Dx509write_csr.c39 void mbedtls_x509write_csr_init(mbedtls_x509write_csr *ctx) in mbedtls_x509write_csr_init()
44 void mbedtls_x509write_csr_free(mbedtls_x509write_csr *ctx) in mbedtls_x509write_csr_free()
56 void mbedtls_x509write_csr_set_md_alg(mbedtls_x509write_csr *ctx, mbedtls_md_type_t md_alg) in mbedtls_x509write_csr_set_md_alg()
61 void mbedtls_x509write_csr_set_key(mbedtls_x509write_csr *ctx, mbedtls_pk_context *key) in mbedtls_x509write_csr_set_key()
66 int mbedtls_x509write_csr_set_subject_name(mbedtls_x509write_csr *ctx, in mbedtls_x509write_csr_set_subject_name()
73 int mbedtls_x509write_csr_set_extension(mbedtls_x509write_csr *ctx, in mbedtls_x509write_csr_set_extension()
82 int mbedtls_x509write_csr_set_subject_alternative_name(mbedtls_x509write_csr *ctx, in mbedtls_x509write_csr_set_subject_alternative_name()
88 int mbedtls_x509write_csr_set_key_usage(mbedtls_x509write_csr *ctx, unsigned char key_usage) in mbedtls_x509write_csr_set_key_usage()
111 int mbedtls_x509write_csr_set_ns_cert_type(mbedtls_x509write_csr *ctx, in mbedtls_x509write_csr_set_ns_cert_type()
135 static int x509write_csr_der_internal(mbedtls_x509write_csr *ctx, in x509write_csr_der_internal()
[all …]
H A Dentropy.c27 void mbedtls_entropy_init(mbedtls_entropy_context *ctx) in mbedtls_entropy_init()
62 void mbedtls_entropy_free(mbedtls_entropy_context *ctx) in mbedtls_entropy_free()
86 int mbedtls_entropy_add_source(mbedtls_entropy_context *ctx, in mbedtls_entropy_add_source()
124 static int entropy_update(mbedtls_entropy_context *ctx, unsigned char source_id, in entropy_update()
173 int mbedtls_entropy_update_manual(mbedtls_entropy_context *ctx, in mbedtls_entropy_update_manual()
198 static int entropy_gather_internal(mbedtls_entropy_context *ctx) in entropy_gather_internal()
249 int mbedtls_entropy_gather(mbedtls_entropy_context *ctx) in mbedtls_entropy_gather()
274 mbedtls_entropy_context *ctx = (mbedtls_entropy_context *) data; in mbedtls_entropy_func() local
383 int mbedtls_entropy_update_nv_seed(mbedtls_entropy_context *ctx) in mbedtls_entropy_update_nv_seed()
406 int mbedtls_entropy_write_seed_file(mbedtls_entropy_context *ctx, const char *path) in mbedtls_entropy_write_seed_file()
[all …]
/optee_os/core/crypto/
H A Dcbc-mac.c22 struct crypto_mac_ctx ctx; member
35 static struct crypto_cbc_mac_ctx *to_cbc_mac_ctx(struct crypto_mac_ctx *ctx) in to_cbc_mac_ctx()
42 static TEE_Result crypto_cbc_mac_init(struct crypto_mac_ctx *ctx, in crypto_cbc_mac_init()
57 static TEE_Result crypto_cbc_mac_update(struct crypto_mac_ctx *ctx, in crypto_cbc_mac_update()
127 static TEE_Result crypto_cbc_mac_final(struct crypto_mac_ctx *ctx, in crypto_cbc_mac_final()
155 static void crypto_cbc_mac_free_ctx(struct crypto_mac_ctx *ctx) in crypto_cbc_mac_free_ctx()
193 struct crypto_cbc_mac_ctx *ctx = NULL; in crypto_cbc_mac_alloc_ctx() local
220 TEE_Result crypto_aes_cbc_mac_nopad_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_aes_cbc_mac_nopad_alloc_ctx()
225 TEE_Result crypto_aes_cbc_mac_pkcs5_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_aes_cbc_mac_pkcs5_alloc_ctx()
230 TEE_Result crypto_des_cbc_mac_nopad_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_des_cbc_mac_nopad_alloc_ctx()
[all …]
H A Dsm4_accel.c13 void sm4_setkey_enc(struct sm4_context *ctx, const uint8_t key[16]) in sm4_setkey_enc()
19 void sm4_setkey_dec(struct sm4_context *ctx, const uint8_t key[16]) in sm4_setkey_dec()
25 void sm4_crypt_ecb(struct sm4_context *ctx, size_t length, const uint8_t *input, in sm4_crypt_ecb()
33 void sm4_crypt_cbc(struct sm4_context *ctx, size_t length, uint8_t iv[16], in sm4_crypt_cbc()
45 void sm4_crypt_ctr(struct sm4_context *ctx, size_t length, uint8_t ctr[16], in sm4_crypt_ctr()
53 void sm4_crypt_xts(struct sm4_context *ctx, struct sm4_context *ctx_ek, in sm4_crypt_xts()
H A Dsm3-hash.c28 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()
100 TEE_Result crypto_sm3_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sm3_alloc_ctx()
H A Dsm3-hmac.c27 static struct sm3_hmac_ctx *to_hmac_ctx(struct crypto_mac_ctx *ctx) in to_hmac_ctx()
34 static TEE_Result op_sm3_hmac_init(struct crypto_mac_ctx *ctx, in op_sm3_hmac_init()
42 static TEE_Result op_sm3_hmac_update(struct crypto_mac_ctx *ctx, in op_sm3_hmac_update()
50 static TEE_Result op_sm3_hmac_final(struct crypto_mac_ctx *ctx, uint8_t *digest, in op_sm3_hmac_final()
74 static void op_sm3_hmac_free_ctx(struct crypto_mac_ctx *ctx) in op_sm3_hmac_free_ctx()
99 TEE_Result crypto_hmac_sm3_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sm3_alloc_ctx()
/optee_os/core/drivers/crypto/caam/hash/
H A Dcaam_hash.c90 struct hashctx *ctx; /* Hash Context */ member
105 static struct crypto_hash *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx()
132 static void do_free_intern(struct hashctx *ctx) in do_free_intern()
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()
244 static TEE_Result caam_hash_allocate(struct crypto_hash_ctx **ctx, in caam_hash_allocate()
293 TEE_Result caam_hash_hmac_allocate(struct hashctx *ctx) in caam_hash_hmac_allocate()
344 void caam_hash_hmac_free(struct hashctx *ctx) in caam_hash_hmac_free()
[all …]
/optee_os/core/drivers/crypto/se050/core/
H A Dcipher.c18 struct crypto_cipher_ctx *ctx = dinit->ctx; in do_init() local
32 struct crypto_cipher_ctx *ctx = dupdate->ctx; in do_update() local
40 struct crypto_cipher_ctx *ctx = context; in do_final() local
47 struct crypto_cipher_ctx *ctx = context; in do_free() local
60 static TEE_Result do_allocate(void **ctx, uint32_t algo) in do_allocate()
/optee_os/lib/libutee/
H A Dtee_tcpudp_socket.c20 static TEE_Result tcp_open(TEE_iSocketHandle *ctx, void *setup, in tcp_open()
59 static TEE_Result udp_open(TEE_iSocketHandle *ctx, void *setup, in udp_open()
98 static TEE_Result sock_close(TEE_iSocketHandle ctx) in sock_close()
112 static TEE_Result sock_send(TEE_iSocketHandle ctx, const void *buf, in sock_send()
127 static TEE_Result sock_recv(TEE_iSocketHandle ctx, void *buf, uint32_t *length, in sock_recv()
142 static uint32_t sock_error(TEE_iSocketHandle ctx) in sock_error()
152 static TEE_Result tcp_ioctl(TEE_iSocketHandle ctx, uint32_t commandCode, in tcp_ioctl()
179 static TEE_Result udp_ioctl(TEE_iSocketHandle ctx, uint32_t commandCode, in udp_ioctl()
/optee_os/core/drivers/crypto/crypto_api/authenc/
H A Dauthenc.c24 static struct crypto_authenc *to_authenc_ctx(struct crypto_authenc_ctx *ctx) in to_authenc_ctx()
36 static void authenc_free_ctx(struct crypto_authenc_ctx *ctx) in authenc_free_ctx()
75 static TEE_Result authenc_init(struct crypto_authenc_ctx *ctx, in authenc_init()
118 static TEE_Result authenc_update_aad(struct crypto_authenc_ctx *ctx, in authenc_update_aad()
151 static TEE_Result authenc_update_payload(struct crypto_authenc_ctx *ctx, in authenc_update_payload()
197 static TEE_Result authenc_enc_final(struct crypto_authenc_ctx *ctx, in authenc_enc_final()
245 static TEE_Result authenc_dec_final(struct crypto_authenc_ctx *ctx, in authenc_dec_final()
286 static void authenc_final(struct crypto_authenc_ctx *ctx) in authenc_final()
305 TEE_Result drvcrypt_authenc_alloc_ctx(struct crypto_authenc_ctx **ctx, in drvcrypt_authenc_alloc_ctx()

123456789