Home
last modified time | relevance | path

Searched refs:ctx_ret (Results 1 – 25 of 28) sorted by relevance

12

/optee_os/core/lib/libtomcrypt/
H A Dcmac.c86 static TEE_Result crypto_common_cmac_alloc_ctx(struct crypto_mac_ctx **ctx_ret, in crypto_common_cmac_alloc_ctx() argument
92 if (!ctx_ret) in crypto_common_cmac_alloc_ctx()
104 *ctx_ret = &ctx->ctx; in crypto_common_cmac_alloc_ctx()
109 TEE_Result crypto_aes_cmac_alloc_ctx(struct crypto_mac_ctx **ctx_ret) in crypto_aes_cmac_alloc_ctx() argument
111 return crypto_common_cmac_alloc_ctx(ctx_ret, "aes"); in crypto_aes_cmac_alloc_ctx()
114 TEE_Result crypto_des3_cmac_alloc_ctx(struct crypto_mac_ctx **ctx_ret) in crypto_des3_cmac_alloc_ctx() argument
116 return crypto_common_cmac_alloc_ctx(ctx_ret, "3des"); in crypto_des3_cmac_alloc_ctx()
H A Dshake.c55 static TEE_Result do_shake_alloc_ctx(struct crypto_hash_ctx **ctx_ret, in do_shake_alloc_ctx() argument
64 *ctx_ret = &ctx->ctx; in do_shake_alloc_ctx()
H A Dctr.c96 TEE_Result crypto_aes_ctr_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_aes_ctr_alloc_ctx() argument
110 *ctx_ret = &c->ctx; in crypto_aes_ctr_alloc_ctx()
H A Dxts.c113 TEE_Result crypto_aes_xts_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_aes_xts_alloc_ctx() argument
127 *ctx_ret = &c->ctx; in crypto_aes_xts_alloc_ctx()
H A Dcbc.c103 static TEE_Result ltc_cbc_alloc_ctx(struct crypto_cipher_ctx **ctx_ret, in ltc_cbc_alloc_ctx() argument
118 *ctx_ret = &c->ctx; in ltc_cbc_alloc_ctx()
H A Decb.c101 static TEE_Result ltc_ecb_alloc_ctx(struct crypto_cipher_ctx **ctx_ret, in ltc_ecb_alloc_ctx() argument
116 *ctx_ret = &c->ctx; in ltc_ecb_alloc_ctx()
H A Dhmac.c85 static TEE_Result ltc_hmac_alloc_ctx(struct crypto_mac_ctx **ctx_ret, in ltc_hmac_alloc_ctx() argument
99 *ctx_ret = &ctx->ctx; in ltc_hmac_alloc_ctx()
H A Dhash.c109 static TEE_Result ltc_hash_alloc_ctx(struct crypto_hash_ctx **ctx_ret, in ltc_hash_alloc_ctx() argument
124 *ctx_ret = &ctx->ctx; in ltc_hash_alloc_ctx()
H A Dgcm.c33 TEE_Result crypto_aes_gcm_alloc_ctx(struct crypto_authenc_ctx **ctx_ret) in crypto_aes_gcm_alloc_ctx() argument
41 *ctx_ret = &ctx->aectx; in crypto_aes_gcm_alloc_ctx()
H A Dccm.c28 TEE_Result crypto_aes_ccm_alloc_ctx(struct crypto_authenc_ctx **ctx_ret) in crypto_aes_ccm_alloc_ctx() argument
36 *ctx_ret = &ctx->aectx; in crypto_aes_ccm_alloc_ctx()
/optee_os/lib/libmbedtls/core/
H A Dcmac.c127 static TEE_Result crypto_cmac_alloc_ctx(struct crypto_mac_ctx **ctx_ret, in crypto_cmac_alloc_ctx() argument
169 *ctx_ret = &c->mac_ctx; in crypto_cmac_alloc_ctx()
174 TEE_Result crypto_des3_cmac_alloc_ctx(struct crypto_mac_ctx **ctx_ret) in crypto_des3_cmac_alloc_ctx() argument
176 return crypto_cmac_alloc_ctx(ctx_ret, MBEDTLS_CIPHER_ID_3DES, 192); in crypto_des3_cmac_alloc_ctx()
179 TEE_Result crypto_aes_cmac_alloc_ctx(struct crypto_mac_ctx **ctx_ret) in crypto_aes_cmac_alloc_ctx() argument
181 return crypto_cmac_alloc_ctx(ctx_ret, MBEDTLS_CIPHER_ID_AES, 128); in crypto_aes_cmac_alloc_ctx()
H A Ddes_ecb.c105 TEE_Result crypto_des_ecb_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_des_ecb_alloc_ctx() argument
114 *ctx_ret = &c->ctx; in crypto_des_ecb_alloc_ctx()
H A Ddes_cbc.c109 TEE_Result crypto_des_cbc_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_des_cbc_alloc_ctx() argument
118 *ctx_ret = &c->ctx; in crypto_des_cbc_alloc_ctx()
H A Ddes3_ecb.c114 TEE_Result crypto_des3_ecb_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_des3_ecb_alloc_ctx() argument
123 *ctx_ret = &c->ctx; in crypto_des3_ecb_alloc_ctx()
H A Ddes3_cbc.c116 TEE_Result crypto_des3_cbc_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_des3_cbc_alloc_ctx() argument
125 *ctx_ret = &c->ctx; in crypto_des3_cbc_alloc_ctx()
H A Daes_ecb.c114 TEE_Result crypto_aes_ecb_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_aes_ecb_alloc_ctx() argument
123 *ctx_ret = &c->ctx; in crypto_aes_ecb_alloc_ctx()
H A Daes_cbc.c112 TEE_Result crypto_aes_cbc_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_aes_cbc_alloc_ctx() argument
121 *ctx_ret = &c->ctx; in crypto_aes_cbc_alloc_ctx()
H A Dhmac.c106 static TEE_Result mbed_hmac_alloc_ctx(struct crypto_mac_ctx **ctx_ret, in mbed_hmac_alloc_ctx() argument
129 *ctx_ret = &c->mac_ctx; in mbed_hmac_alloc_ctx()
H A Daes_ctr.c107 TEE_Result crypto_aes_ctr_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_aes_ctr_alloc_ctx() argument
116 *ctx_ret = &c->ctx; in crypto_aes_ctr_alloc_ctx()
H A Dhash.c111 static TEE_Result mbed_hash_alloc_ctx(struct crypto_hash_ctx **ctx_ret, in mbed_hash_alloc_ctx() argument
134 *ctx_ret = &hc->hash_ctx; in mbed_hash_alloc_ctx()
/optee_os/core/crypto/
H A Dsm4-ecb.c90 TEE_Result crypto_sm4_ecb_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_sm4_ecb_alloc_ctx() argument
99 *ctx_ret = &c->ctx; in crypto_sm4_ecb_alloc_ctx()
H A Dsm4-ctr.c92 TEE_Result crypto_sm4_ctr_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_sm4_ctr_alloc_ctx() argument
101 *ctx_ret = &c->ctx; in crypto_sm4_ctr_alloc_ctx()
H A Dsm4-cbc.c95 TEE_Result crypto_sm4_cbc_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_sm4_cbc_alloc_ctx() argument
104 *ctx_ret = &c->ctx; in crypto_sm4_cbc_alloc_ctx()
H A Dsm4-xts.c105 TEE_Result crypto_sm4_xts_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_sm4_xts_alloc_ctx() argument
114 *ctx_ret = &c->ctx; in crypto_sm4_xts_alloc_ctx()
H A Dcbc-mac.c188 static TEE_Result crypto_cbc_mac_alloc_ctx(struct crypto_mac_ctx **ctx_ret, in crypto_cbc_mac_alloc_ctx() argument
215 *ctx_ret = &ctx->ctx; in crypto_cbc_mac_alloc_ctx()

12