Home
last modified time | relevance | path

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

12345678

/optee_os/core/lib/libtomcrypt/
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()
42 static TEE_Result ltc_hmac_update(struct crypto_mac_ctx *ctx, in ltc_hmac_update()
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
104 TEE_Result crypto_hmac_md5_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_md5_alloc_ctx()
109 TEE_Result crypto_hmac_sha1_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sha1_alloc_ctx()
114 TEE_Result crypto_hmac_sha224_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sha224_alloc_ctx()
119 TEE_Result crypto_hmac_sha256_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sha256_alloc_ctx()
124 TEE_Result crypto_hmac_sha384_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sha384_alloc_ctx()
[all …]
A Dhash.c21 struct crypto_hash_ctx ctx; member
28 static struct ltc_hash_ctx *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx()
35 static TEE_Result ltc_hash_init(struct crypto_hash_ctx *ctx) in ltc_hash_init()
45 static TEE_Result ltc_hash_update(struct crypto_hash_ctx *ctx, in ltc_hash_update()
85 static void ltc_hash_free_ctx(struct crypto_hash_ctx *ctx) in ltc_hash_free_ctx()
111 struct ltc_hash_ctx *ctx = NULL; in ltc_hash_alloc_ctx() local
129 TEE_Result crypto_md5_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_md5_alloc_ctx()
136 TEE_Result crypto_sha1_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha1_alloc_ctx()
143 TEE_Result crypto_sha224_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha224_alloc_ctx()
150 TEE_Result crypto_sha256_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha256_alloc_ctx()
[all …]
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()
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()
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/
A Dhash.c31 static struct mbed_hash_ctx *to_hash_ctx(struct crypto_hash_ctx *ctx) in to_hash_ctx()
38 static TEE_Result mbed_hash_init(struct crypto_hash_ctx *ctx) in mbed_hash_init()
46 static TEE_Result mbed_hash_update(struct crypto_hash_ctx *ctx, in mbed_hash_update()
83 static void mbed_hash_free_ctx(struct crypto_hash_ctx *ctx) in mbed_hash_free_ctx()
138 TEE_Result crypto_md5_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_md5_alloc_ctx()
145 TEE_Result crypto_sha1_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha1_alloc_ctx()
152 TEE_Result crypto_sha224_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha224_alloc_ctx()
159 TEE_Result crypto_sha256_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha256_alloc_ctx()
166 TEE_Result crypto_sha384_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha384_alloc_ctx()
173 TEE_Result crypto_sha512_alloc_ctx(struct crypto_hash_ctx **ctx) in crypto_sha512_alloc_ctx()
[all …]
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()
79 static void mbed_hmac_free_ctx(struct crypto_mac_ctx *ctx) in mbed_hmac_free_ctx()
134 TEE_Result crypto_hmac_md5_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_md5_alloc_ctx()
141 TEE_Result crypto_hmac_sha1_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sha1_alloc_ctx()
148 TEE_Result crypto_hmac_sha224_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sha224_alloc_ctx()
155 TEE_Result crypto_hmac_sha256_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sha256_alloc_ctx()
162 TEE_Result crypto_hmac_sha384_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sha384_alloc_ctx()
[all …]
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/
A Dcipher_wrap.c106 static void gcm_ctx_free( void *ctx ) in gcm_ctx_free()
130 static void ccm_ctx_free( void *ctx ) in ccm_ctx_free()
239 static void aes_ctx_free( void *ctx ) in aes_ctx_free()
727 mbedtls_camellia_context *ctx; in camellia_ctx_alloc() local
1111 mbedtls_aria_context *ctx; in aria_ctx_alloc() local
1532 static void des_ctx_free( void *ctx ) in des_ctx_free()
1765 mbedtls_blowfish_context *ctx; in blowfish_ctx_alloc() local
1887 mbedtls_arc4_context *ctx; in arc4_ctx_alloc() local
1978 mbedtls_chacha20_context *ctx; in chacha20_ctx_alloc() local
2050 mbedtls_chachapoly_context *ctx; in chachapoly_ctx_alloc() local
[all …]
A Dmd2.c77 void mbedtls_md2_init( mbedtls_md2_context *ctx ) in mbedtls_md2_init()
82 void mbedtls_md2_free( mbedtls_md2_context *ctx ) in mbedtls_md2_free()
99 int mbedtls_md2_starts_ret( mbedtls_md2_context *ctx ) in mbedtls_md2_starts_ret()
110 void mbedtls_md2_starts( mbedtls_md2_context *ctx ) in mbedtls_md2_starts()
117 int mbedtls_internal_md2_process( mbedtls_md2_context *ctx ) in mbedtls_internal_md2_process()
157 void mbedtls_md2_process( mbedtls_md2_context *ctx ) in mbedtls_md2_process()
167 int mbedtls_md2_update_ret( mbedtls_md2_context *ctx, in mbedtls_md2_update_ret()
199 void mbedtls_md2_update( mbedtls_md2_context *ctx, in mbedtls_md2_update()
210 int mbedtls_md2_finish_ret( mbedtls_md2_context *ctx, in mbedtls_md2_finish_ret()
235 void mbedtls_md2_finish( mbedtls_md2_context *ctx, in mbedtls_md2_finish()
[all …]
A Dx509write_crt.c43 void mbedtls_x509write_crt_init( mbedtls_x509write_cert *ctx ) in mbedtls_x509write_crt_init()
51 void mbedtls_x509write_crt_free( mbedtls_x509write_cert *ctx ) in mbedtls_x509write_crt_free()
62 void mbedtls_x509write_crt_set_version( mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_version()
68 void mbedtls_x509write_crt_set_md_alg( mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_md_alg()
74 void mbedtls_x509write_crt_set_subject_key( mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_subject_key()
80 void mbedtls_x509write_crt_set_issuer_key( mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_issuer_key()
92 int mbedtls_x509write_crt_set_issuer_name( mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_issuer_name()
98 int mbedtls_x509write_crt_set_serial( mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_serial()
109 int mbedtls_x509write_crt_set_validity( mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_validity()
126 int mbedtls_x509write_crt_set_extension( mbedtls_x509write_cert *ctx, in mbedtls_x509write_crt_set_extension()
[all …]
A Dpk.c55 void mbedtls_pk_init( mbedtls_pk_context *ctx ) in mbedtls_pk_init()
66 void mbedtls_pk_free( mbedtls_pk_context *ctx ) in mbedtls_pk_free()
81 void mbedtls_pk_restart_init( mbedtls_pk_restart_ctx *ctx ) in mbedtls_pk_restart_init()
91 void mbedtls_pk_restart_free( mbedtls_pk_restart_ctx *ctx ) in mbedtls_pk_restart_free()
153 int mbedtls_pk_setup_opaque( mbedtls_pk_context *ctx, in mbedtls_pk_setup_opaque()
255 static int pk_restart_setup( mbedtls_pk_restart_ctx *ctx, in pk_restart_setup()
278 int mbedtls_pk_verify_restartable( mbedtls_pk_context *ctx, in mbedtls_pk_verify_restartable()
400 int mbedtls_pk_sign_restartable( mbedtls_pk_context *ctx, in mbedtls_pk_sign_restartable()
461 int mbedtls_pk_decrypt( mbedtls_pk_context *ctx, in mbedtls_pk_decrypt()
484 int mbedtls_pk_encrypt( mbedtls_pk_context *ctx, in mbedtls_pk_encrypt()
[all …]
A Dhmac_drbg.c52 void mbedtls_hmac_drbg_init( mbedtls_hmac_drbg_context *ctx ) in mbedtls_hmac_drbg_init()
62 int mbedtls_hmac_drbg_update_ret( mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_update_ret()
108 void mbedtls_hmac_drbg_update( mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_update()
119 int mbedtls_hmac_drbg_seed_buf( mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_seed_buf()
153 static int hmac_drbg_reseed_core( mbedtls_hmac_drbg_context *ctx, in hmac_drbg_reseed_core()
232 int mbedtls_hmac_drbg_reseed( mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_reseed()
244 int mbedtls_hmac_drbg_seed( mbedtls_hmac_drbg_context *ctx, in mbedtls_hmac_drbg_seed()
333 mbedtls_hmac_drbg_context *ctx = (mbedtls_hmac_drbg_context *) p_rng; in mbedtls_hmac_drbg_random_with_add() local
402 mbedtls_hmac_drbg_context *ctx = (mbedtls_hmac_drbg_context *) p_rng; in mbedtls_hmac_drbg_random() local
423 void mbedtls_hmac_drbg_free( mbedtls_hmac_drbg_context *ctx ) in mbedtls_hmac_drbg_free()
[all …]
A Dmd.c265 void mbedtls_md_init( mbedtls_md_context_t *ctx ) in mbedtls_md_init()
270 void mbedtls_md_free( mbedtls_md_context_t *ctx ) in mbedtls_md_free()
397 int mbedtls_md_init_ctx( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info ) in mbedtls_md_init_ctx()
480 int mbedtls_md_starts( mbedtls_md_context_t *ctx ) in mbedtls_md_starts()
526 int mbedtls_md_update( mbedtls_md_context_t *ctx, const unsigned char *input, size_t ilen ) in mbedtls_md_update()
570 int mbedtls_md_finish( mbedtls_md_context_t *ctx, unsigned char *output ) in mbedtls_md_finish()
667 mbedtls_md_context_t ctx; in mbedtls_md_file() local
757 int mbedtls_md_hmac_finish( mbedtls_md_context_t *ctx, unsigned char *output ) in mbedtls_md_hmac_finish()
781 int mbedtls_md_hmac_reset( mbedtls_md_context_t *ctx ) in mbedtls_md_hmac_reset()
801 mbedtls_md_context_t ctx; in mbedtls_md_hmac() local
[all …]
A Dx509write_csr.c55 void mbedtls_x509write_csr_init( mbedtls_x509write_csr *ctx ) in mbedtls_x509write_csr_init()
60 void mbedtls_x509write_csr_free( mbedtls_x509write_csr *ctx ) in mbedtls_x509write_csr_free()
68 void mbedtls_x509write_csr_set_md_alg( mbedtls_x509write_csr *ctx, mbedtls_md_type_t md_alg ) in mbedtls_x509write_csr_set_md_alg()
73 void mbedtls_x509write_csr_set_key( mbedtls_x509write_csr *ctx, mbedtls_pk_context *key ) in mbedtls_x509write_csr_set_key()
78 int mbedtls_x509write_csr_set_subject_name( mbedtls_x509write_csr *ctx, in mbedtls_x509write_csr_set_subject_name()
84 int mbedtls_x509write_csr_set_extension( mbedtls_x509write_csr *ctx, in mbedtls_x509write_csr_set_extension()
92 int mbedtls_x509write_csr_set_key_usage( mbedtls_x509write_csr *ctx, unsigned char key_usage ) in mbedtls_x509write_csr_set_key_usage()
113 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()
293 int mbedtls_x509write_csr_der( mbedtls_x509write_csr *ctx, unsigned char *buf, in mbedtls_x509write_csr_der()
[all …]
A Decdh.c48 const mbedtls_ecdh_context *ctx ) in mbedtls_ecdh_grp_id()
158 static void ecdh_init_internal( mbedtls_ecdh_context_mbed *ctx ) in ecdh_init_internal()
174 void mbedtls_ecdh_init( mbedtls_ecdh_context *ctx ) in mbedtls_ecdh_init()
194 static int ecdh_setup_internal( mbedtls_ecdh_context_mbed *ctx, in ecdh_setup_internal()
237 static void ecdh_free_internal( mbedtls_ecdh_context_mbed *ctx ) in ecdh_free_internal()
254 void mbedtls_ecdh_enable_restart( mbedtls_ecdh_context *ctx ) in mbedtls_ecdh_enable_restart()
265 void mbedtls_ecdh_free( mbedtls_ecdh_context *ctx ) in mbedtls_ecdh_free()
408 int mbedtls_ecdh_read_params( mbedtls_ecdh_context *ctx, in mbedtls_ecdh_read_params()
445 static int ecdh_get_params_internal( mbedtls_ecdh_context_mbed *ctx, in ecdh_get_params_internal()
469 int mbedtls_ecdh_get_params( mbedtls_ecdh_context *ctx, in mbedtls_ecdh_get_params()
[all …]
A Dctr_drbg.c51 void mbedtls_ctr_drbg_init( mbedtls_ctr_drbg_context *ctx ) in mbedtls_ctr_drbg_init()
65 void mbedtls_ctr_drbg_free( mbedtls_ctr_drbg_context *ctx ) in mbedtls_ctr_drbg_free()
87 void mbedtls_ctr_drbg_set_entropy_len( mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_set_entropy_len()
93 int mbedtls_ctr_drbg_set_nonce_len( mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_set_nonce_len()
256 static int ctr_drbg_update_internal( mbedtls_ctr_drbg_context *ctx, in ctr_drbg_update_internal()
318 int mbedtls_ctr_drbg_update_ret( mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_update_ret()
339 void mbedtls_ctr_drbg_update( mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_update()
420 int mbedtls_ctr_drbg_reseed( mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_reseed()
450 int mbedtls_ctr_drbg_seed( mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_seed()
616 int mbedtls_ctr_drbg_write_seed_file( mbedtls_ctr_drbg_context *ctx, in mbedtls_ctr_drbg_write_seed_file()
[all …]
A Dchachapoly.c58 static int chachapoly_pad_aad( mbedtls_chachapoly_context *ctx ) in chachapoly_pad_aad()
78 static int chachapoly_pad_ciphertext( mbedtls_chachapoly_context *ctx ) in chachapoly_pad_ciphertext()
92 void mbedtls_chachapoly_init( mbedtls_chachapoly_context *ctx ) in mbedtls_chachapoly_init()
104 void mbedtls_chachapoly_free( mbedtls_chachapoly_context *ctx ) in mbedtls_chachapoly_free()
117 int mbedtls_chachapoly_setkey( mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_setkey()
129 int mbedtls_chachapoly_starts( mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_starts()
169 int mbedtls_chachapoly_update_aad( mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_update_aad()
184 int mbedtls_chachapoly_update( mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_update()
235 int mbedtls_chachapoly_finish( mbedtls_chachapoly_context *ctx, in mbedtls_chachapoly_finish()
292 static int chachapoly_crypt_and_tag( mbedtls_chachapoly_context *ctx, in chachapoly_crypt_and_tag()
[all …]
A Dpk_wrap.c71 static size_t rsa_get_bitlen( const void *ctx ) in rsa_get_bitlen()
127 static int rsa_decrypt_wrap( void *ctx, in rsa_decrypt_wrap()
141 static int rsa_encrypt_wrap( void *ctx, in rsa_encrypt_wrap()
172 static void rsa_free_wrap( void *ctx ) in rsa_free_wrap()
319 static void eckey_rs_free( void *ctx ) in eckey_rs_free()
400 static void eckey_free_wrap( void *ctx ) in eckey_free_wrap()
543 mbedtls_ecdsa_context *ctx = ctx_arg; in ecdsa_verify_wrap() local
692 static void ecdsa_free_wrap( void *ctx ) in ecdsa_free_wrap()
709 static void ecdsa_rs_free( void *ctx ) in ecdsa_rs_free()
777 static int rsa_alt_decrypt_wrap( void *ctx, in rsa_alt_decrypt_wrap()
[all …]
/optee_os/core/crypto/
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 …]
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()
A Dsm3-hmac.c28 static struct sm3_hmac_ctx *to_hmac_ctx(struct crypto_mac_ctx *ctx) in to_hmac_ctx()
35 static TEE_Result op_sm3_hmac_init(struct crypto_mac_ctx *ctx, in op_sm3_hmac_init()
43 static TEE_Result op_sm3_hmac_update(struct crypto_mac_ctx *ctx, in op_sm3_hmac_update()
51 static TEE_Result op_sm3_hmac_final(struct crypto_mac_ctx *ctx, uint8_t *digest, in op_sm3_hmac_final()
75 static void op_sm3_hmac_free_ctx(struct crypto_mac_ctx *ctx) in op_sm3_hmac_free_ctx()
100 TEE_Result crypto_hmac_sm3_alloc_ctx(struct crypto_mac_ctx **ctx) in crypto_hmac_sm3_alloc_ctx()
/optee_os/core/drivers/crypto/se050/core/
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/core/drivers/crypto/caam/hash/
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()
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()
365 TEE_Result caam_hash_hmac_init(struct hashctx *ctx) in caam_hash_hmac_init()
[all …]
/optee_os/lib/libutee/
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()

Completed in 34 milliseconds

12345678