Home
last modified time | relevance | path

Searched refs:src_ctx (Results 1 – 25 of 52) sorted by relevance

123

/optee_os/core/drivers/crypto/stm32/
H A Dcipher.c54 void (*copy_state)(union ip_ctx *dst_ctx, union ip_ctx *src_ctx);
176 struct saes_ctx *src_ctx = &src_ip_ctx->saes; in saes_copy_state() local
177 struct crypto_cipher_ctx *fb_ctx = src_ctx->fallback_ctx; in saes_copy_state()
179 memcpy(&dst_ip_ctx->saes.ctx, &src_ctx->ctx, sizeof(src_ctx->ctx)); in saes_copy_state()
181 dst_ip_ctx->saes.algo = src_ctx->algo; in saes_copy_state()
182 dst_ip_ctx->saes.use_fallback = src_ctx->use_fallback; in saes_copy_state()
184 if (src_ctx->use_fallback) { in saes_copy_state()
231 static void stm32_cipher_copy_state(void *dst_ctx, void *src_ctx) in stm32_cipher_copy_state() argument
233 struct stm32_cipher_ctx *src_c = to_stm32_cipher_ctx(src_ctx); in stm32_cipher_copy_state()
H A Dhash.c104 struct crypto_hash_ctx *src_ctx) in do_hash_copy_state() argument
106 struct stm32_hash_ctx *src = to_stm32_hash_ctx(src_ctx); in do_hash_copy_state()
/optee_os/core/drivers/crypto/se050/core/
H A Dcipher.c55 struct crypto_cipher_ctx *src_ctx = in; in do_copy_state() local
57 src_ctx->ops->copy_state(dst_ctx, src_ctx); in do_copy_state()
/optee_os/core/crypto/
H A Dsm3-hash.c84 struct crypto_hash_ctx *src_ctx) in op_sm3_hash_copy_state() argument
86 struct sm3_hash_ctx *src = to_hash_ctx(src_ctx); in op_sm3_hash_copy_state()
H A Dsm4-ecb.c74 struct crypto_cipher_ctx *src_ctx) in sm4_ecb_copy_state() argument
76 struct sm4_ecb_ctx *src = to_sm4_ecb_ctx(src_ctx); in sm4_ecb_copy_state()
H A Dsm4-ctr.c75 struct crypto_cipher_ctx *src_ctx) in sm4_ctr_copy_state() argument
77 struct sm4_ctr_ctx *src = to_sm4_ctr_ctx(src_ctx); in sm4_ctr_copy_state()
H A Dsm3-hmac.c83 struct crypto_mac_ctx *src_ctx) in op_sm3_hmac_copy_state() argument
85 struct sm3_hmac_ctx *src = to_hmac_ctx(src_ctx); in op_sm3_hmac_copy_state()
H A Dsm4-cbc.c78 struct crypto_cipher_ctx *src_ctx) in sm4_cbc_copy_state() argument
80 struct sm4_cbc_ctx *src = to_sm4_cbc_ctx(src_ctx); in sm4_cbc_copy_state()
H A Dsm4-xts.c86 struct crypto_cipher_ctx *src_ctx) in sm4_xts_copy_state() argument
88 struct sm4_xts_ctx *src = to_sm4_xts_ctx(src_ctx); in sm4_xts_copy_state()
/optee_os/core/lib/libtomcrypt/
H A Dcmac.c69 struct crypto_mac_ctx *src_ctx) in ltc_omac_copy_state() argument
71 struct ltc_omac_ctx *src = to_omac_ctx(src_ctx); in ltc_omac_copy_state()
H A Dshake.c76 struct crypto_hash_ctx *src_ctx) in do_sha3_copy_state() argument
79 struct shake_ctx *sc = to_shake_ctx(src_ctx); in do_sha3_copy_state()
H A Dctr.c78 struct crypto_cipher_ctx *src_ctx) in ltc_ctr_copy_state() argument
80 struct ltc_ctr_ctx *src = to_ctr_ctx(src_ctx); in ltc_ctr_copy_state()
H A Dgcm.c55 struct tee_gcm_state *src_ctx = to_tee_gcm_state(src_aectx); in crypto_aes_gcm_copy_state() local
57 dst_ctx->ctx = src_ctx->ctx; in crypto_aes_gcm_copy_state()
58 dst_ctx->tag_len = src_ctx->tag_len; in crypto_aes_gcm_copy_state()
H A Dccm.c56 struct tee_ccm_state *src_ctx = to_tee_ccm_state(src_aectx); in crypto_aes_ccm_copy_state() local
58 dst_ctx->ctx = src_ctx->ctx; in crypto_aes_ccm_copy_state()
59 dst_ctx->tag_len = src_ctx->tag_len; in crypto_aes_ccm_copy_state()
H A Dxts.c94 struct crypto_cipher_ctx *src_ctx) in ltc_xts_copy_state() argument
96 struct ltc_xts_ctx *src = to_xts_ctx(src_ctx); in ltc_xts_copy_state()
H A Dcbc.c85 struct crypto_cipher_ctx *src_ctx) in ltc_cbc_copy_state() argument
87 struct ltc_cbc_ctx *src = to_cbc_ctx(src_ctx); in ltc_cbc_copy_state()
H A Decb.c83 struct crypto_cipher_ctx *src_ctx) in ltc_ecb_copy_state() argument
85 struct ltc_ecb_ctx *src = to_ecb_ctx(src_ctx); in ltc_ecb_copy_state()
H A Dhmac.c68 struct crypto_mac_ctx *src_ctx) in ltc_hmac_copy_state() argument
70 struct ltc_hmac_ctx *src = to_hmac_ctx(src_ctx); in ltc_hmac_copy_state()
/optee_os/lib/libmbedtls/core/
H A Ddes_ecb.c89 struct crypto_cipher_ctx *src_ctx) in mbed_des_ecb_copy_state() argument
91 struct mbed_des_ecb_ctx *src = to_des_ecb_ctx(src_ctx); in mbed_des_ecb_copy_state()
H A Ddes_cbc.c91 struct crypto_cipher_ctx *src_ctx) in mbed_des_cbc_copy_state() argument
93 struct mbed_des_cbc_ctx *src = to_des_cbc_ctx(src_ctx); in mbed_des_cbc_copy_state()
H A Ddes3_ecb.c98 struct crypto_cipher_ctx *src_ctx) in mbed_des3_ecb_copy_state() argument
100 struct mbed_des3_ecb_ctx *src = to_des3_ecb_ctx(src_ctx); in mbed_des3_ecb_copy_state()
H A Ddes3_cbc.c98 struct crypto_cipher_ctx *src_ctx) in mbed_des3_cbc_copy_state() argument
100 struct mbed_des3_cbc_ctx *src = to_des3_cbc_ctx(src_ctx); in mbed_des3_cbc_copy_state()
H A Daes_ecb.c97 struct crypto_cipher_ctx *src_ctx) in mbed_aes_ecb_copy_state() argument
99 struct mbed_aes_ecb_ctx *src = to_aes_ecb_ctx(src_ctx); in mbed_aes_ecb_copy_state()
H A Daes_cbc.c94 struct crypto_cipher_ctx *src_ctx) in mbed_aes_cbc_copy_state() argument
96 struct mbed_aes_cbc_ctx *src = to_aes_cbc_ctx(src_ctx); in mbed_aes_cbc_copy_state()
/optee_os/core/drivers/crypto/crypto_api/include/
H A Ddrvcrypt_cipher.h59 void (*copy_state)(void *dst_ctx, void *src_ctx);

123