Home
last modified time | relevance | path

Searched refs:caambuf (Results 1 – 21 of 21) sorted by relevance

/optee_os-3.20.0/core/drivers/crypto/caam/include/
A Dcaam_utils_mem.h62 enum caam_status caam_calloc_buf(struct caambuf *buf, size_t size);
70 enum caam_status caam_alloc_buf(struct caambuf *buf, size_t size);
79 enum caam_status caam_calloc_align_buf(struct caambuf *buf, size_t size);
87 enum caam_status caam_alloc_align_buf(struct caambuf *buf, size_t size);
94 void caam_free_buf(struct caambuf *buf);
105 struct caambuf *src, size_t offset);
119 int caam_mem_get_pa_area(struct caambuf *buf, struct caambuf **pabufs);
137 void caam_mem_cpy_ltrim_buf(struct caambuf *dst, struct caambuf *src);
A Dcaam_types.h16 struct caambuf { struct
28 struct caambuf buf; /* Data buffer */ argument
A Dcaam_utils_dmaobj.h22 struct caambuf orig;
A Dcaam_utils_sgt.h62 struct caambuf *buf; /* Buffer Array */
/optee_os-3.20.0/core/drivers/crypto/caam/acipher/
A Dlocal.h18 struct caambuf *e; /* Key exponent e */
19 struct caambuf *p; /* Prime p */
20 struct caambuf *q; /* Prime q (can be NULL of only p asked) */
35 struct caambuf *g; /* Generator g */
36 struct caambuf *p; /* Prime p */
37 struct caambuf *q; /* Prime q */
A Dcaam_rsa.c706 struct caambuf DB = { }; in do_oaep_decoding()
707 struct caambuf lHash = { }; in do_oaep_decoding()
708 struct caambuf seed = { }; in do_oaep_decoding()
709 struct caambuf dbMask = { }; in do_oaep_decoding()
712 struct caambuf EM = { }; in do_oaep_decoding()
956 struct caambuf DB = { }; in do_oaep_encoding()
957 struct caambuf lHash = { }; in do_oaep_encoding()
958 struct caambuf seed = { }; in do_oaep_encoding()
959 struct caambuf dbMask = { }; in do_oaep_encoding()
962 struct caambuf EM = { }; in do_oaep_encoding()
[all …]
A Dcaam_prime_dsa.c46 static void do_desc_prime_q(uint32_t *desc, struct caambuf *seed, in do_desc_prime_q()
205 static void do_desc_gen_x(uint32_t *desc, struct caambuf *x, in do_desc_gen_x()
206 struct caambuf *seed, struct prime_data_dsa *prime, in do_desc_gen_x()
207 struct dsa_hash *hash_func, struct caambuf *mod_n, in do_desc_gen_x()
366 struct caambuf *x, struct caambuf *mod_n) in do_desc_prime_p()
583 struct caambuf *mod_n) in do_generator()
680 struct caambuf seed = { }; in caam_prime_dsa_gen()
681 struct caambuf mod_n = { }; in caam_prime_dsa_gen()
684 struct caambuf x = { }; in caam_prime_dsa_gen()
A Dcaam_prime_rsa.c343 static void search_smallprime(size_t size, struct caambuf *prime) in search_smallprime()
373 const struct caambuf *small_prime, in do_desc_setup()
454 const struct caambuf *small_prime, bool do_prime_q, in do_desc_prime()
628 static void do_checks_primes(uint32_t *desc, const struct caambuf *p, in do_checks_primes()
629 const struct caambuf *max_n, in do_checks_primes()
771 struct caambuf small_prime = { }; in caam_prime_rsa_gen()
772 struct caambuf max_n = { }; in caam_prime_rsa_gen()
A Dcaam_dh.c31 struct caambuf g; /* Generator */
32 struct caambuf p; /* Prime Number Modulus */
33 struct caambuf x; /* Private key */
34 struct caambuf y; /* Public key */
222 struct caambuf dh_r = { }; in do_gen_keypair()
A Dcaam_ecc.c37 struct caambuf xy;
38 struct caambuf d;
234 struct caambuf d = { }; in do_gen_keypair()
235 struct caambuf xy = { }; in do_gen_keypair()
469 struct caambuf tmp = { }; in do_verify()
A Dcaam_dsa.c38 struct caambuf g; /* Generator */
39 struct caambuf p; /* Prime Number (L bits) */
40 struct caambuf q; /* Subprime Number (N bits) */
41 struct caambuf x; /* Private key */
42 struct caambuf y; /* Public key */
631 struct caambuf tmp = { }; in do_verify()
/optee_os-3.20.0/core/drivers/crypto/caam/cipher/
A Dlocal.h51 struct caambuf key1; /* First Key */
52 struct caambuf key2; /* Second Key */
53 struct caambuf tweak; /* XTS Tweak */
54 struct caambuf ctx; /* CAAM Context Register */
A Dcaam_cipher_xts.c20 static void do_galois_mult(struct caambuf *buf) in do_galois_mult()
46 struct caambuf *enc_tweak, in do_tweak_block()
47 struct caambuf *srcbuf, struct caambuf *dstbuf, in do_tweak_block()
82 struct caambuf tmpsrc = { }; in caam_cipher_update_xts()
86 struct caambuf srcbuf = { }; in caam_cipher_update_xts()
87 struct caambuf dstbuf = { }; in caam_cipher_update_xts()
A Dcaam_cipher.c125 static enum caam_status copy_ctx_data(struct caambuf *dst, in copy_ctx_data()
380 struct caambuf srcdata = { in caam_cipher_copy_state()
668 struct caambuf cpysrc = { in do_update_streaming()
A Dcaam_cipher_mac.c269 struct caambuf cpysrc = { in do_update_mac()
544 struct caambuf srcbuf = { .data = dupdate->src.data, in do_update_cmac()
/optee_os-3.20.0/core/drivers/crypto/caam/utils/
A Dutils_mem.c93 static enum caam_status mem_alloc_buf(struct caambuf *buf, size_t size, in mem_alloc_buf()
144 enum caam_status caam_alloc_buf(struct caambuf *buf, size_t size) in caam_alloc_buf()
149 enum caam_status caam_calloc_buf(struct caambuf *buf, size_t size) in caam_calloc_buf()
154 enum caam_status caam_calloc_align_buf(struct caambuf *buf, size_t size) in caam_calloc_align_buf()
159 enum caam_status caam_alloc_align_buf(struct caambuf *buf, size_t size) in caam_alloc_align_buf()
164 void caam_free_buf(struct caambuf *buf) in caam_free_buf()
199 struct caambuf *src, size_t offset) in caam_cpy_block_src()
233 int caam_mem_get_pa_area(struct caambuf *buf, struct caambuf **out_pabufs) in caam_mem_get_pa_area()
242 struct caambuf *pabufs = NULL; in caam_mem_get_pa_area()
333 void caam_mem_cpy_ltrim_buf(struct caambuf *dst, struct caambuf *src) in caam_mem_cpy_ltrim_buf()
A Dutils_dmaobj.c46 struct caambuf buf;
63 struct caambuf origbuf;
204 struct caambuf *orig) in dmalist_add_entry_head()
228 struct caambuf *orig) in dmalist_add_entry()
257 struct caambuf *new) in dmalist_insert_before_entry()
286 struct caambuf *new) in dmalist_insert_after_entry()
351 struct caambuf newbuf = {}; in check_buffer_alignment()
521 struct caambuf *pabufs = NULL; in check_buffer_boundary()
714 struct caambuf newbuf = {}; in caam_dmaobj_init_output()
779 struct caambuf buf = {}; in caam_dmaobj_output_sgtbuf()
[all …]
A Dutils_sgt.c151 sizeof(struct caambuf))); in caam_sgtbuf_alloc()
155 data->buf = caam_calloc(data->number * sizeof(struct caambuf)); in caam_sgtbuf_alloc()
/optee_os-3.20.0/core/drivers/crypto/caam/hash/
A Dlocal.h18 struct caambuf ctx; /* Hash context used by the CAAM */
20 struct caambuf key; /* HMAC split key */
A Dcaam_hash.c118 static void do_desc_load_key(uint32_t *desc, struct caambuf *key) in do_desc_load_key()
549 struct caambuf srcdata = { in caam_hash_hmac_update()
692 struct caambuf srcdata = { in caam_hash_hmac_copy_state()
/optee_os-3.20.0/core/drivers/crypto/caam/blob/
A Dcaam_blob.c27 struct caambuf buf = { }; in caam_blob_mkvb_init()

Completed in 21 milliseconds