/optee_os-3.20.0/core/drivers/crypto/caam/include/ |
A D | caam_utils_mem.h | 62 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 D | caam_types.h | 16 struct caambuf { struct 28 struct caambuf buf; /* Data buffer */ argument
|
A D | caam_utils_dmaobj.h | 22 struct caambuf orig;
|
A D | caam_utils_sgt.h | 62 struct caambuf *buf; /* Buffer Array */
|
/optee_os-3.20.0/core/drivers/crypto/caam/acipher/ |
A D | local.h | 18 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 D | caam_rsa.c | 706 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 D | caam_prime_dsa.c | 46 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 D | caam_prime_rsa.c | 343 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 D | caam_dh.c | 31 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 D | caam_ecc.c | 37 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 D | caam_dsa.c | 38 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 D | local.h | 51 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 D | caam_cipher_xts.c | 20 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 D | caam_cipher.c | 125 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 D | caam_cipher_mac.c | 269 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 D | utils_mem.c | 93 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 D | utils_dmaobj.c | 46 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 D | utils_sgt.c | 151 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 D | local.h | 18 struct caambuf ctx; /* Hash context used by the CAAM */ 20 struct caambuf key; /* HMAC split key */
|
A D | caam_hash.c | 118 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 D | caam_blob.c | 27 struct caambuf buf = { }; in caam_blob_mkvb_init()
|