Home
last modified time | relevance | path

Searched refs:crypto_cipher_ctx (Results 1 – 23 of 23) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/
A Dcbc.c17 struct crypto_cipher_ctx ctx;
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()
84 static void ltc_cbc_copy_state(struct crypto_cipher_ctx *dst_ctx, in ltc_cbc_copy_state()
85 struct crypto_cipher_ctx *src_ctx) in ltc_cbc_copy_state()
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()
[all …]
A Decb.c17 struct crypto_cipher_ctx ctx;
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()
82 static void ltc_ecb_copy_state(struct crypto_cipher_ctx *dst_ctx, in ltc_ecb_copy_state()
83 struct crypto_cipher_ctx *src_ctx) in ltc_ecb_copy_state()
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()
[all …]
A Dctr.c15 struct crypto_cipher_ctx ctx;
24 static struct ltc_ctr_ctx *to_ctr_ctx(struct crypto_cipher_ctx *ctx) in to_ctr_ctx()
31 static TEE_Result ltc_ctr_init(struct crypto_cipher_ctx *ctx, in ltc_ctr_init()
55 static TEE_Result ltc_ctr_update(struct crypto_cipher_ctx *ctx, in ltc_ctr_update()
67 static void ltc_ctr_final(struct crypto_cipher_ctx *ctx) in ltc_ctr_final()
72 static void ltc_ctr_free_ctx(struct crypto_cipher_ctx *ctx) in ltc_ctr_free_ctx()
77 static void ltc_ctr_copy_state(struct crypto_cipher_ctx *dst_ctx, in ltc_ctr_copy_state()
78 struct crypto_cipher_ctx *src_ctx) in ltc_ctr_copy_state()
96 TEE_Result crypto_aes_ctr_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_aes_ctr_alloc_ctx()
A Dxts.c17 struct crypto_cipher_ctx ctx;
28 static struct ltc_xts_ctx *to_xts_ctx(struct crypto_cipher_ctx *ctx) in to_xts_ctx()
35 static TEE_Result ltc_xts_init(struct crypto_cipher_ctx *ctx, in ltc_xts_init()
70 static TEE_Result ltc_xts_update(struct crypto_cipher_ctx *ctx, in ltc_xts_update()
83 static void ltc_xts_final(struct crypto_cipher_ctx *ctx) in ltc_xts_final()
88 static void ltc_xts_free_ctx(struct crypto_cipher_ctx *ctx) in ltc_xts_free_ctx()
93 static void ltc_xts_copy_state(struct crypto_cipher_ctx *dst_ctx, in ltc_xts_copy_state()
94 struct crypto_cipher_ctx *src_ctx) in ltc_xts_copy_state()
113 TEE_Result crypto_aes_xts_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_aes_xts_alloc_ctx()
/optee_os-3.20.0/core/crypto/
A Dsm4-ecb.c17 struct crypto_cipher_ctx ctx;
23 static struct sm4_ecb_ctx *to_sm4_ecb_ctx(struct crypto_cipher_ctx *ctx) in to_sm4_ecb_ctx()
30 static TEE_Result sm4_ecb_init(struct crypto_cipher_ctx *ctx, in sm4_ecb_init()
50 static TEE_Result sm4_ecb_update(struct crypto_cipher_ctx *ctx, in sm4_ecb_update()
61 static void sm4_ecb_final(struct crypto_cipher_ctx *ctx) in sm4_ecb_final()
68 static void sm4_ecb_free_ctx(struct crypto_cipher_ctx *ctx) in sm4_ecb_free_ctx()
73 static void sm4_ecb_copy_state(struct crypto_cipher_ctx *dst_ctx, in sm4_ecb_copy_state()
74 struct crypto_cipher_ctx *src_ctx) in sm4_ecb_copy_state()
90 TEE_Result crypto_sm4_ecb_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_sm4_ecb_alloc_ctx()
A Dsm4-ctr.c18 struct crypto_cipher_ctx ctx;
25 static struct sm4_ctr_ctx *to_sm4_ctr_ctx(struct crypto_cipher_ctx *ctx) in to_sm4_ctr_ctx()
32 static TEE_Result sm4_ctr_init(struct crypto_cipher_ctx *ctx, in sm4_ctr_init()
50 static TEE_Result sm4_ctr_update(struct crypto_cipher_ctx *ctx, in sm4_ctr_update()
61 static void sm4_ctr_final(struct crypto_cipher_ctx *ctx) in sm4_ctr_final()
69 static void sm4_ctr_free_ctx(struct crypto_cipher_ctx *ctx) in sm4_ctr_free_ctx()
74 static void sm4_ctr_copy_state(struct crypto_cipher_ctx *dst_ctx, in sm4_ctr_copy_state()
75 struct crypto_cipher_ctx *src_ctx) in sm4_ctr_copy_state()
92 TEE_Result crypto_sm4_ctr_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_sm4_ctr_alloc_ctx()
A Dsm4-cbc.c18 struct crypto_cipher_ctx ctx;
25 static struct sm4_cbc_ctx *to_sm4_cbc_ctx(struct crypto_cipher_ctx *ctx) in to_sm4_cbc_ctx()
32 static TEE_Result sm4_cbc_init(struct crypto_cipher_ctx *ctx, in sm4_cbc_init()
53 static TEE_Result sm4_cbc_update(struct crypto_cipher_ctx *ctx, in sm4_cbc_update()
64 static void sm4_cbc_final(struct crypto_cipher_ctx *ctx) in sm4_cbc_final()
72 static void sm4_cbc_free_ctx(struct crypto_cipher_ctx *ctx) in sm4_cbc_free_ctx()
77 static void sm4_cbc_copy_state(struct crypto_cipher_ctx *dst_ctx, in sm4_cbc_copy_state()
78 struct crypto_cipher_ctx *src_ctx) in sm4_cbc_copy_state()
95 TEE_Result crypto_sm4_cbc_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_sm4_cbc_alloc_ctx()
A Dsm4-xts.c17 struct crypto_cipher_ctx ctx;
26 static struct sm4_xts_ctx *to_sm4_xts_ctx(struct crypto_cipher_ctx *ctx) in to_sm4_xts_ctx()
33 static TEE_Result sm4_xts_init(struct crypto_cipher_ctx *ctx, in sm4_xts_init()
58 static TEE_Result sm4_xts_update(struct crypto_cipher_ctx *ctx, in sm4_xts_update()
70 static void sm4_xts_final(struct crypto_cipher_ctx *ctx) in sm4_xts_final()
80 static void sm4_xts_free_ctx(struct crypto_cipher_ctx *ctx) in sm4_xts_free_ctx()
85 static void sm4_xts_copy_state(struct crypto_cipher_ctx *dst_ctx, in sm4_xts_copy_state()
86 struct crypto_cipher_ctx *src_ctx) in sm4_xts_copy_state()
105 TEE_Result crypto_sm4_xts_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_sm4_xts_alloc_ctx()
A Daes-cts.c34 struct crypto_cipher_ctx ctx;
35 struct crypto_cipher_ctx *ecb;
36 struct crypto_cipher_ctx *cbc;
42 static struct cts_ctx *to_cts_ctx(struct crypto_cipher_ctx *ctx) in to_cts_ctx()
49 static TEE_Result cts_init(struct crypto_cipher_ctx *ctx, in cts_init()
189 static TEE_Result cts_update(struct crypto_cipher_ctx *ctx, bool last_block, in cts_update()
198 static void cts_final(struct crypto_cipher_ctx *ctx) in cts_final()
206 static void cts_free_ctx(struct crypto_cipher_ctx *ctx) in cts_free_ctx()
215 static void cts_copy_state(struct crypto_cipher_ctx *dst_ctx, in cts_copy_state()
216 struct crypto_cipher_ctx *src_ctx) in cts_copy_state()
[all …]
A Dcrypto.c100 struct crypto_cipher_ctx *c = NULL; in crypto_cipher_alloc_ctx()
162 struct crypto_cipher_ctx *c = ctx; in cipher_ops()
/optee_os-3.20.0/lib/libmbedtls/core/
A Ddes_ecb.c18 struct crypto_cipher_ctx ctx;
24 static struct mbed_des_ecb_ctx *to_des_ecb_ctx(struct crypto_cipher_ctx *ctx) in to_des_ecb_ctx()
31 static TEE_Result mbed_des_ecb_init(struct crypto_cipher_ctx *ctx, in mbed_des_ecb_init()
58 static TEE_Result mbed_des_ecb_update(struct crypto_cipher_ctx *ctx, in mbed_des_ecb_update()
78 static void mbed_des_ecb_final(struct crypto_cipher_ctx *ctx) in mbed_des_ecb_final()
83 static void mbed_des_ecb_free_ctx(struct crypto_cipher_ctx *ctx) in mbed_des_ecb_free_ctx()
88 static void mbed_des_ecb_copy_state(struct crypto_cipher_ctx *dst_ctx, in mbed_des_ecb_copy_state()
89 struct crypto_cipher_ctx *src_ctx) in mbed_des_ecb_copy_state()
105 TEE_Result crypto_des_ecb_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_des_ecb_alloc_ctx()
A Ddes3_ecb.c18 struct crypto_cipher_ctx ctx;
24 static struct mbed_des3_ecb_ctx *to_des3_ecb_ctx(struct crypto_cipher_ctx *ctx) in to_des3_ecb_ctx()
31 static TEE_Result mbed_des3_ecb_init(struct crypto_cipher_ctx *ctx, in mbed_des3_ecb_init()
66 static TEE_Result mbed_des3_ecb_update(struct crypto_cipher_ctx *ctx, in mbed_des3_ecb_update()
87 static void mbed_des3_ecb_final(struct crypto_cipher_ctx *ctx) in mbed_des3_ecb_final()
92 static void mbed_des3_ecb_free_ctx(struct crypto_cipher_ctx *ctx) in mbed_des3_ecb_free_ctx()
97 static void mbed_des3_ecb_copy_state(struct crypto_cipher_ctx *dst_ctx, in mbed_des3_ecb_copy_state()
98 struct crypto_cipher_ctx *src_ctx) in mbed_des3_ecb_copy_state()
114 TEE_Result crypto_des3_ecb_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_des3_ecb_alloc_ctx()
A Ddes_cbc.c18 struct crypto_cipher_ctx ctx;
26 static struct mbed_des_cbc_ctx *to_des_cbc_ctx(struct crypto_cipher_ctx *ctx) in to_des_cbc_ctx()
33 static TEE_Result mbed_des_cbc_init(struct crypto_cipher_ctx *ctx, in mbed_des_cbc_init()
66 static TEE_Result mbed_des_cbc_update(struct crypto_cipher_ctx *ctx, in mbed_des_cbc_update()
80 static void mbed_des_cbc_final(struct crypto_cipher_ctx *ctx) in mbed_des_cbc_final()
85 static void mbed_des_cbc_free_ctx(struct crypto_cipher_ctx *ctx) in mbed_des_cbc_free_ctx()
90 static void mbed_des_cbc_copy_state(struct crypto_cipher_ctx *dst_ctx, in mbed_des_cbc_copy_state()
91 struct crypto_cipher_ctx *src_ctx) in mbed_des_cbc_copy_state()
109 TEE_Result crypto_des_cbc_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_des_cbc_alloc_ctx()
A Daes_ecb.c22 struct crypto_cipher_ctx ctx;
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()
96 static void mbed_aes_ecb_copy_state(struct crypto_cipher_ctx *dst_ctx, in mbed_aes_ecb_copy_state()
97 struct crypto_cipher_ctx *src_ctx) in mbed_aes_ecb_copy_state()
114 TEE_Result crypto_aes_ecb_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_aes_ecb_alloc_ctx()
A Ddes3_cbc.c18 struct crypto_cipher_ctx ctx;
26 static struct mbed_des3_cbc_ctx *to_des3_cbc_ctx(struct crypto_cipher_ctx *ctx) in to_des3_cbc_ctx()
33 static TEE_Result mbed_des3_cbc_init(struct crypto_cipher_ctx *ctx, in mbed_des3_cbc_init()
73 static TEE_Result mbed_des3_cbc_update(struct crypto_cipher_ctx *ctx, in mbed_des3_cbc_update()
87 static void mbed_des3_cbc_final(struct crypto_cipher_ctx *ctx) in mbed_des3_cbc_final()
92 static void mbed_des3_cbc_free_ctx(struct crypto_cipher_ctx *ctx) in mbed_des3_cbc_free_ctx()
97 static void mbed_des3_cbc_copy_state(struct crypto_cipher_ctx *dst_ctx, in mbed_des3_cbc_copy_state()
98 struct crypto_cipher_ctx *src_ctx) in mbed_des3_cbc_copy_state()
116 TEE_Result crypto_des3_cbc_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_des3_cbc_alloc_ctx()
A Daes_cbc.c22 struct crypto_cipher_ctx ctx;
30 static struct mbed_aes_cbc_ctx *to_aes_cbc_ctx(struct crypto_cipher_ctx *ctx) in to_aes_cbc_ctx()
37 static TEE_Result mbed_aes_cbc_init(struct crypto_cipher_ctx *ctx, in mbed_aes_cbc_init()
69 static TEE_Result mbed_aes_cbc_update(struct crypto_cipher_ctx *ctx, in mbed_aes_cbc_update()
83 static void mbed_aes_cbc_final(struct crypto_cipher_ctx *ctx) in mbed_aes_cbc_final()
88 static void mbed_aes_cbc_free_ctx(struct crypto_cipher_ctx *ctx) in mbed_aes_cbc_free_ctx()
93 static void mbed_aes_cbc_copy_state(struct crypto_cipher_ctx *dst_ctx, in mbed_aes_cbc_copy_state()
94 struct crypto_cipher_ctx *src_ctx) in mbed_aes_cbc_copy_state()
112 TEE_Result crypto_aes_cbc_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_aes_cbc_alloc_ctx()
A Daes_ctr.c22 struct crypto_cipher_ctx ctx;
31 static struct mbed_aes_ctr_ctx *to_aes_ctr_ctx(struct crypto_cipher_ctx *ctx) in to_aes_ctr_ctx()
38 static TEE_Result mbed_aes_ctr_init(struct crypto_cipher_ctx *ctx, in mbed_aes_ctr_init()
60 static TEE_Result mbed_aes_ctr_update(struct crypto_cipher_ctx *ctx, in mbed_aes_ctr_update()
74 static void mbed_aes_ctr_final(struct crypto_cipher_ctx *ctx) in mbed_aes_ctr_final()
82 static void mbed_aes_ctr_free_ctx(struct crypto_cipher_ctx *ctx) in mbed_aes_ctr_free_ctx()
87 static void mbed_aes_ctr_copy_state(struct crypto_cipher_ctx *dst_ctx, in mbed_aes_ctr_copy_state()
88 struct crypto_cipher_ctx *src_ctx) in mbed_aes_ctr_copy_state()
107 TEE_Result crypto_aes_ctr_alloc_ctx(struct crypto_cipher_ctx **ctx_ret) in crypto_aes_ctr_alloc_ctx()
/optee_os-3.20.0/core/drivers/crypto/se050/core/
A Dcipher.c18 struct crypto_cipher_ctx *ctx = dinit->ctx; in do_init()
32 struct crypto_cipher_ctx *ctx = dupdate->ctx; in do_update()
40 struct crypto_cipher_ctx *ctx = context; in do_final()
47 struct crypto_cipher_ctx *ctx = context; in do_free()
54 struct crypto_cipher_ctx *dst_ctx = out; in do_copy_state()
55 struct crypto_cipher_ctx *src_ctx = in; in do_copy_state()
A Dctr.c16 struct crypto_cipher_ctx ctx;
25 static struct se050_aes_ctr_ctx *to_aes_ctr_ctx(struct crypto_cipher_ctx *ctx) in to_aes_ctr_ctx()
30 static TEE_Result se050_aes_ctr_init(struct crypto_cipher_ctx *ctx, in se050_aes_ctr_init()
81 static TEE_Result se050_aes_ctr_update(struct crypto_cipher_ctx *ctx, in se050_aes_ctr_update()
116 static void do_final(struct crypto_cipher_ctx *ctx) in do_final()
131 static void do_free(struct crypto_cipher_ctx *ctx) in do_free()
136 static void do_copy_state(struct crypto_cipher_ctx *dst_ctx, in do_copy_state()
137 struct crypto_cipher_ctx *src_ctx) in do_copy_state()
/optee_os-3.20.0/core/include/crypto/
A Dcrypto_impl.h149 struct crypto_cipher_ctx { struct
154 TEE_Result (*init)(struct crypto_cipher_ctx *ctx, argument
161 void (*final)(struct crypto_cipher_ctx *ctx);
163 void (*free_ctx)(struct crypto_cipher_ctx *ctx);
164 void (*copy_state)(struct crypto_cipher_ctx *dst_ctx,
165 struct crypto_cipher_ctx *src_ctx);
169 TEE_Result crypto_aes_ecb_alloc_ctx(struct crypto_cipher_ctx **ctx);
175 TEE_Result crypto_aes_cbc_alloc_ctx(struct crypto_cipher_ctx **ctx);
181 TEE_Result crypto_aes_ctr_alloc_ctx(struct crypto_cipher_ctx **ctx);
187 TEE_Result crypto_aes_cts_alloc_ctx(struct crypto_cipher_ctx **ctx);
[all …]
/optee_os-3.20.0/core/drivers/crypto/crypto_api/cipher/
A Dcipher.c23 static struct crypto_cipher *to_cipher_ctx(struct crypto_cipher_ctx *ctx) in to_cipher_ctx()
35 static void cipher_free_ctx(struct crypto_cipher_ctx *ctx) in cipher_free_ctx()
51 static void cipher_copy_state(struct crypto_cipher_ctx *dst_ctx, in cipher_copy_state()
52 struct crypto_cipher_ctx *src_ctx) in cipher_copy_state()
73 static TEE_Result cipher_init(struct crypto_cipher_ctx *ctx, in cipher_init()
117 static TEE_Result cipher_update(struct crypto_cipher_ctx *ctx, bool last_block, in cipher_update()
155 static void cipher_final(struct crypto_cipher_ctx *ctx) in cipher_final()
171 TEE_Result drvcrypt_cipher_alloc_ctx(struct crypto_cipher_ctx **ctx, in drvcrypt_cipher_alloc_ctx()
/optee_os-3.20.0/core/drivers/crypto/crypto_api/include/
A Ddrvcrypt_cipher.h17 struct crypto_cipher_ctx cipher_ctx; /* Crypto cipher API context */
/optee_os-3.20.0/core/drivers/crypto/stm32/
A Dcipher.c23 struct crypto_cipher_ctx c_ctx;
29 to_stm32_cipher_ctx(struct crypto_cipher_ctx *ctx) in to_stm32_cipher_ctx()

Completed in 36 milliseconds