/optee_test/ta/crypt/ |
A D | sha2_impl.c | 359 ctx->block[ctx->len + i] = message[i]; in sha256_update() 371 sha256_transf(ctx, ctx->block, 1); in sha256_update() 397 len_b = (ctx->tot_len + ctx->len) << 3; in sha256_final() 401 ctx->block[ctx->len + i_m] = 0; in sha256_final() 403 ctx->block[ctx->len] = 0x80; in sha256_final() 406 sha256_transf(ctx, ctx->block, block_nb); in sha256_final() 470 ctx->block[ctx->len + i] = message[i]; in sha224_update() 482 sha256_transf((struct sha256_ctx *)ctx, ctx->block, 1); in sha224_update() 508 len_b = (ctx->tot_len + ctx->len) << 3; in sha224_final() 512 ctx->block[ctx->len + i_m] = 0; in sha224_final() [all …]
|
A D | arith_taf.c | 103 TEE_BigIntFMMContext *ctx = NULL; in ta_entry_arith_new_fmm_ctx() local 112 ctx = TEE_Malloc(len * sizeof(*ctx), 0); in ta_entry_arith_new_fmm_ctx() 114 if (!get_handle(HT_FMMCTX, ctx, ¶ms[1].value.a)) { in ta_entry_arith_new_fmm_ctx() 115 TEE_Free(ctx); in ta_entry_arith_new_fmm_ctx() 119 TEE_BigIntInitFMMContext(ctx, len, modulus); in ta_entry_arith_new_fmm_ctx() 521 if (!src || !n | !ctx || !dest) in ta_entry_arith_to_fmm() 524 TEE_BigIntConvertToFMM(dest, src, n, ctx); in ta_entry_arith_to_fmm() 539 if (!src || !n | !ctx || !dest) in ta_entry_arith_from_fmm() 542 TEE_BigIntConvertFromFMM(dest, src, n, ctx); in ta_entry_arith_from_fmm() 558 if (!op1 || !op2 || !n | !ctx || !dest) in ta_entry_arith_compute_fmm() [all …]
|
/optee_test/host/openssl/include/openssl/ |
A D | x509_vfy.h | 142 int (*new_item) (X509_LOOKUP *ctx); 143 void (*free) (X509_LOOKUP *ctx); 144 int (*init) (X509_LOOKUP *ctx); 145 int (*shutdown) (X509_LOOKUP *ctx); 195 int (*verify) (X509_STORE_CTX *ctx); 212 int (*cleanup) (X509_STORE_CTX *ctx); 219 # define X509_STORE_set_verify_cb_func(ctx,func) ((ctx)->verify_cb=(func)) argument 220 # define X509_STORE_set_verify_func(ctx,func) ((ctx)->verify=(func)) argument 237 X509_STORE *ctx; member 252 int (*verify) (X509_STORE_CTX *ctx); [all …]
|
A D | ssl.h | 802 # define SSL_CTX_get_mode(ctx) \ argument 871 int SSL_SRP_CTX_free(SSL *ctx); 1235 void (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx)) (struct ssl_ctx_st *ctx, 1570 SSL_CTX *ctx; member 1668 # define session_ctx ctx 1712 # define SSL_CTX_get_app_data(ctx) (SSL_CTX_get_ex_data(ctx,0)) argument 1713 # define SSL_CTX_set_app_data(ctx,arg) (SSL_CTX_set_ex_data(ctx,0,(char *)arg)) argument 2059 SSL_set0_chain(ctx,NULL) 2291 SSL *SSL_new(SSL_CTX *ctx); 2488 # define SSL_CTX_get_default_read_ahead(ctx) SSL_CTX_get_read_ahead(ctx) argument [all …]
|
A D | evp.h | 165 int (*init) (EVP_MD_CTX *ctx); 169 int (*cleanup) (EVP_MD_CTX *ctx); 586 void EVP_MD_CTX_init(EVP_MD_CTX *ctx); 587 int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx); 589 void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx); 659 int EVP_DigestSignFinal(EVP_MD_CTX *ctx, 677 void EVP_EncodeInit(EVP_ENCODE_CTX *ctx); 1238 int EVP_PKEY_sign(EVP_PKEY_CTX *ctx, 1242 int EVP_PKEY_verify(EVP_PKEY_CTX *ctx, 1250 int EVP_PKEY_encrypt(EVP_PKEY_CTX *ctx, [all …]
|
A D | dh.h | 293 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ 297 # define EVP_PKEY_CTX_get_dh_kdf_type(ctx) \ argument 298 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ 303 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ 308 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ 312 # define EVP_PKEY_CTX_set_dh_kdf_md(ctx, md) \ argument 313 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ 318 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ 323 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ 328 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \ [all …]
|
A D | ec.h | 264 BN_CTX *ctx); 622 BN_CTX *ctx); 646 BN_CTX *ctx); 656 BN_CTX *ctx); 674 BN_CTX *ctx); 998 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \ 1003 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \ 1008 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \ 1013 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \ 1018 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \ [all …]
|
A D | bn.h | 428 void BN_CTX_start(BN_CTX *ctx); 429 BIGNUM *BN_CTX_get(BN_CTX *ctx); 430 void BN_CTX_end(BN_CTX *ctx); 464 BN_CTX *ctx); 465 # define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) argument 468 BN_CTX *ctx); 472 BN_CTX *ctx); 476 BN_CTX *ctx); 481 BN_CTX *ctx); 669 BN_CTX *ctx); [all …]
|
A D | modes.h | 102 void CRYPTO_gcm128_setiv(GCM128_CONTEXT *ctx, const unsigned char *iv, 104 int CRYPTO_gcm128_aad(GCM128_CONTEXT *ctx, const unsigned char *aad, 106 int CRYPTO_gcm128_encrypt(GCM128_CONTEXT *ctx, 109 int CRYPTO_gcm128_decrypt(GCM128_CONTEXT *ctx, 112 int CRYPTO_gcm128_encrypt_ctr32(GCM128_CONTEXT *ctx, 115 int CRYPTO_gcm128_decrypt_ctr32(GCM128_CONTEXT *ctx, 118 int CRYPTO_gcm128_finish(GCM128_CONTEXT *ctx, const unsigned char *tag, 121 void CRYPTO_gcm128_release(GCM128_CONTEXT *ctx); 125 void CRYPTO_ccm128_init(CCM128_CONTEXT *ctx, 130 void CRYPTO_ccm128_aad(CCM128_CONTEXT *ctx, const unsigned char *aad, [all …]
|
A D | hmac.h | 86 void HMAC_CTX_init(HMAC_CTX *ctx); 87 void HMAC_CTX_cleanup(HMAC_CTX *ctx); 90 # define HMAC_cleanup(ctx) HMAC_CTX_cleanup(ctx) argument 93 int HMAC_Init(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md); 94 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, 96 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len); 97 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len); 103 void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags);
|
A D | cmac.h | 68 void CMAC_CTX_cleanup(CMAC_CTX *ctx); 69 void CMAC_CTX_free(CMAC_CTX *ctx); 70 EVP_CIPHER_CTX *CMAC_CTX_get0_cipher_ctx(CMAC_CTX *ctx); 73 int CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen, 75 int CMAC_Update(CMAC_CTX *ctx, const void *data, size_t dlen); 76 int CMAC_Final(CMAC_CTX *ctx, unsigned char *out, size_t *poutlen); 77 int CMAC_resume(CMAC_CTX *ctx);
|
A D | ts.h | 529 void TS_RESP_CTX_free(TS_RESP_CTX *ctx); 556 int TS_RESP_CTX_set_accuracy(TS_RESP_CTX *ctx, 585 void TS_RESP_CTX_set_extension_cb(TS_RESP_CTX *ctx, 589 int TS_RESP_CTX_set_status_info(TS_RESP_CTX *ctx, 599 TS_REQ *TS_RESP_CTX_get_request(TS_RESP_CTX *ctx); 693 void TS_VERIFY_CTX_init(TS_VERIFY_CTX *ctx); 694 void TS_VERIFY_CTX_free(TS_VERIFY_CTX *ctx); 695 void TS_VERIFY_CTX_cleanup(TS_VERIFY_CTX *ctx); 739 TS_RESP_CTX *ctx); 746 TS_RESP_CTX *ctx); [all …]
|
A D | rsa.h | 236 # define EVP_PKEY_CTX_set_rsa_padding(ctx, pad) \ argument 240 # define EVP_PKEY_CTX_get_rsa_padding(ctx, ppad) \ argument 241 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, -1, \ 244 # define EVP_PKEY_CTX_set_rsa_pss_saltlen(ctx, len) \ argument 245 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, \ 251 EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, \ 264 # define EVP_PKEY_CTX_set_rsa_mgf1_md(ctx, md) \ argument 269 # define EVP_PKEY_CTX_set_rsa_oaep_md(ctx, md) \ argument 273 # define EVP_PKEY_CTX_get_rsa_mgf1_md(ctx, pmd) \ argument 278 # define EVP_PKEY_CTX_get_rsa_oaep_md(ctx, pmd) \ argument [all …]
|
A D | comp.h | 20 int (*init) (COMP_CTX *ctx); 21 void (*finish) (COMP_CTX *ctx); 22 int (*compress) (COMP_CTX *ctx, 25 int (*expand) (COMP_CTX *ctx, 45 void COMP_CTX_free(COMP_CTX *ctx); 46 int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, 48 int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,
|
A D | x509v3.h | 91 struct v3_ext_ctx *ctx, 384 # define X509V3_set_ctx_test(ctx) \ argument 386 # define X509V3_set_ctx_nodb(ctx) (ctx)->db = NULL; argument 530 X509V3_CTX *ctx, 605 X509V3_CTX *ctx, CONF_VALUE *cnf); 608 X509V3_CTX *ctx, CONF_VALUE *cnf, 618 int X509V3_EXT_add_nconf(CONF *conf, X509V3_CTX *ctx, char *section, 626 X509V3_CTX *ctx, int ext_nid, 641 void X509V3_set_nconf(X509V3_CTX *ctx, CONF *conf); 647 void X509V3_string_free(X509V3_CTX *ctx, char *str); [all …]
|
A D | tls1.h | 363 # define SSL_CTX_set_tlsext_servername_callback(ctx, cb) \ argument 364 SSL_CTX_callback_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_CB,(void (*)(void))cb) 371 # define SSL_CTX_set_tlsext_servername_arg(ctx, arg) \ argument 372 SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG,0, (void *)arg) 374 # define SSL_CTX_get_tlsext_ticket_keys(ctx, keys, keylen) \ argument 375 SSL_CTX_ctrl((ctx),SSL_CTRL_GET_TLSEXT_TICKET_KEYS,(keylen),(keys)) 376 # define SSL_CTX_set_tlsext_ticket_keys(ctx, keys, keylen) \ argument 377 SSL_CTX_ctrl((ctx),SSL_CTRL_SET_TLSEXT_TICKET_KEYS,(keylen),(keys)) 387 # define SSL_CTX_set_tlsext_opaque_prf_input_callback(ctx, cb) \ argument 389 # define SSL_CTX_set_tlsext_opaque_prf_input_callback_arg(ctx, arg) \ argument [all …]
|
A D | srtp.h | 135 int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles); 136 int SSL_set_tlsext_use_srtp(SSL *ctx, const char *profiles);
|
/optee_test/host/xtest/ |
A D | sdp_basic.c | 155 if (!ctx) in finalize_tee_ctx() 159 TEEC_FinalizeContext(&ctx->ctx); in finalize_tee_ctx() 181 teerc = TEEC_InitializeContext(NULL, &ctx->ctx); in create_tee_ctx() 185 teerc = TEEC_OpenSession(&ctx->ctx, &ctx->sess, uuid, in create_tee_ctx() 192 TEEC_FinalizeContext(&ctx->ctx); in create_tee_ctx() 219 (void)ctx; in tee_deregister_buffer() 364 (void)ctx; in check_sdp_dumped() 468 ctx = malloc(sizeof(*ctx)); in sdp_basic_test() 469 if (!ctx) in sdp_basic_test() 516 free(ctx); in sdp_basic_test() [all …]
|
A D | stats.c | 63 res = TEEC_InitializeContext(NULL, ctx); in open_sess() 78 TEEC_FinalizeContext(ctx); in close_sess() 85 TEEC_Context ctx = { }; in stat_pager() local 95 open_sess(&ctx, &sess); in stat_pager() 114 return close_sess(&ctx, &sess); in stat_pager() 119 TEEC_Context ctx = { }; in stat_alloc() local 132 open_sess(&ctx, &sess); in stat_alloc() 187 return close_sess(&ctx, &sess); in stat_alloc() 192 TEEC_Context ctx = { }; in stat_memleak() local 201 open_sess(&ctx, &sess); in stat_memleak() [all …]
|
A D | install_ta.c | 119 TEEC_Context ctx = { }; in install_ta_runner_cmd_parser() local 123 res = TEEC_InitializeContext(NULL, &ctx); in install_ta_runner_cmd_parser() 127 res = TEEC_OpenSession(&ctx, &sess, &uuid, TEEC_LOGIN_PUBLIC, NULL, in install_ta_runner_cmd_parser() 151 TEEC_FinalizeContext(&ctx); in install_ta_runner_cmd_parser()
|
/optee_test/ta/crypt/include/ |
A D | sha2_impl.h | 64 void sha224_init(struct sha224_ctx *ctx); 65 void sha224_update(struct sha224_ctx *ctx, const unsigned char *message, 67 void sha224_final(struct sha224_ctx *ctx, unsigned char *digest); 71 void sha256_init(struct sha256_ctx *ctx); 72 void sha256_update(struct sha256_ctx *ctx, const unsigned char *message, 74 void sha256_final(struct sha256_ctx *ctx, unsigned char *digest); 78 void sha256_transf(struct sha256_ctx *ctx, const unsigned char *message,
|
/optee_test/ta/sims/ |
A D | ta_sims.c | 34 struct sims_session *ctx = (struct sims_session *)session_context; in sims_open_ta_session() local 57 ctx->sess = sess; in sims_open_ta_session() 58 ctx->counter++; in sims_open_ta_session() 63 TEE_Result sims_open_session(void **ctx) in sims_open_session() argument 73 *ctx = context; in sims_open_session() 80 void sims_close_session(void *ctx) in sims_close_session() argument 82 TEE_TASessionHandle sess = ((struct sims_session *)ctx)->sess; in sims_close_session() 87 TEE_Free(ctx); in sims_close_session() 151 struct sims_session *ctx = (struct sims_session *)session_context; in sims_get_counter() local 157 params[0].value.a = ctx->counter; in sims_get_counter() [all …]
|
/optee_test/ta/sims/include/ |
A D | ta_sims.h | 13 TEE_Result sims_open_session(void **ctx); 14 TEE_Result sims_open_ta_session(void *ctx, uint32_t nParamTypes, 16 void sims_close_session(void *ctx);
|
/optee_test/ta/socket/ |
A D | ta_entry.c | 41 TEE_iSocketHandle ctx; member 75 res = h.socket->open(&h.ctx, &setup, ¶ms[3].value.a); in ta_entry_tcp_open() 114 res = h.socket->open(&h.ctx, &setup, ¶ms[3].value.a); in ta_entry_udp_open() 141 return h->socket->close(h->ctx); in ta_entry_close() 164 return h->socket->send(h->ctx, params[1].memref.buffer, in ta_entry_send() 187 return h->socket->recv(h->ctx, params[1].memref.buffer, in ta_entry_recv() 210 params[1].value.a = h->socket->error(h->ctx); in ta_entry_error() 233 return h->socket->ioctl(h->ctx, params[2].value.a, in ta_entry_ioctl()
|
/optee_test/host/xtest/gp/include/ |
A D | xml_timearithm_api.h | 580 BN_CTX *ctx = NULL; \ 584 ctx = BN_CTX_new(); \ 585 if (ctx == NULL) { \ 604 if (ctx) { \ 605 BN_CTX_free(ctx); \ 764 uint32_t cmd_id, uint32_t ctx, in Invoke_BigIntInitFMMContext() argument 781 uint32_t ctx) in Invoke_BigIntConvertToFMM() argument 791 uint32_t ctx) in Invoke_BigIntConvertFromFMM() argument 800 uint32_t mod, uint32_t ctx) in Invoke_BigIntComputeFMM() argument 941 res = TEEC_AllocateSharedMemory(sess->ctx, &shm); in Invoke_BigIntConvertToOctetString() [all …]
|