Home
last modified time | relevance | path

Searched refs:desc (Results 1 – 25 of 35) sorted by relevance

12

/optee_os/core/drivers/crypto/caam/acipher/
A Dcaam_prime_dsa.c54 caam_desc_init(desc); in do_desc_prime_q()
73 caam_desc_add_word(desc, in do_desc_prime_q()
189 DSA_DUMPDESC(desc); in do_desc_prime_q()
240 caam_desc_init(desc); in do_desc_gen_x()
352 DSA_DUMPDESC(desc); in do_desc_gen_x()
372 caam_desc_init(desc); in do_desc_prime_p()
489 DSA_DUMPDESC(desc); in do_desc_prime_p()
511 jobctx.desc = desc; in run_prime_q()
542 jobctx.desc = desc; in run_prime_p()
654 DSA_DUMPDESC(desc); in do_generator()
[all …]
A Dcaam_prime_rsa.c381 caam_desc_init(desc); in do_desc_setup()
440 RSA_DUMPDESC(desc); in do_desc_setup()
463 caam_desc_init(desc); in do_desc_prime()
484 caam_desc_add_word(desc, in do_desc_prime()
490 caam_desc_add_word(desc, in do_desc_prime()
548 caam_desc_add_word(desc, in do_desc_prime()
554 caam_desc_add_word(desc, in do_desc_prime()
615 RSA_DUMPDESC(desc); in do_desc_prime()
634 caam_desc_init(desc); in do_checks_primes()
717 RSA_DUMPDESC(desc); in do_checks_primes()
[all …]
A Dcaam_ecc.c249 if (!desc) { in do_gen_keypair()
281 ECC_DUMPDESC(desc); in do_gen_keypair()
283 jobctx.desc = desc; in do_gen_keypair()
350 if (!desc) { in do_sign()
425 ECC_DUMPDESC(desc); in do_sign()
427 jobctx.desc = desc; in do_sign()
484 if (!desc) { in do_verify()
560 ECC_DUMPDESC(desc); in do_verify()
562 jobctx.desc = desc; in do_verify()
616 if (!desc) { in do_shared_secret()
[all …]
A Dcaam_dsa.c394 if (!desc) { in do_gen_keypair()
426 caam_desc_init(desc); in do_gen_keypair()
440 DSA_DUMPDESC(desc); in do_gen_keypair()
442 jobctx.desc = desc; in do_gen_keypair()
504 if (!desc) { in do_sign()
561 caam_desc_init(desc); in do_sign()
587 ECC_DUMPDESC(desc); in do_sign()
589 jobctx.desc = desc; in do_sign()
644 if (!desc) { in do_verify()
728 DSA_DUMPDESC(desc); in do_verify()
[all …]
A Dcaam_math.c30 uint32_t *desc = NULL; in do_xor_mod_n() local
61 desc = caam_calloc_desc(XOR_OP_DESC_SIZE); in do_xor_mod_n()
62 if (!desc) { in do_xor_mod_n()
68 caam_desc_init(desc); in do_xor_mod_n()
69 caam_desc_add_word(desc, DESC_HEADER(0)); in do_xor_mod_n()
71 caam_desc_add_word(desc, data->n.length); in do_xor_mod_n()
78 caam_desc_add_word(desc, PKHA_F2M_OP(MOD_ADD_A_B, B)); in do_xor_mod_n()
81 caam_desc_fifo_store(desc, &res, PKHA_B); in do_xor_mod_n()
87 RSA_DUMPDESC(desc); in do_xor_mod_n()
89 jobctx.desc = desc; in do_xor_mod_n()
[all …]
A Dcaam_dh.c226 uint32_t *desc = NULL; in do_gen_keypair() local
253 if (!desc) { in do_gen_keypair()
297 caam_desc_init(desc); in do_gen_keypair()
311 DH_DUMPDESC(desc); in do_gen_keypair()
320 jobctx.desc = desc; in do_gen_keypair()
366 caam_free_desc(&desc); in do_gen_keypair()
386 uint32_t *desc = NULL; in do_shared_secret() local
394 if (!desc) { in do_shared_secret()
431 caam_desc_init(desc); in do_shared_secret()
451 DH_DUMPDESC(desc); in do_shared_secret()
[all …]
A Dcaam_rsa.c527 uint32_t *desc = 0; in do_gen_keypair() local
537 if (!desc) { in do_gen_keypair()
649 jobctx.desc = desc; in do_gen_keypair()
650 RSA_DUMPDESC(desc); in do_gen_keypair()
1175 if (!desc) { in do_caam_encrypt()
1230 RSA_DUMPDESC(desc); in do_caam_encrypt()
1232 jobctx.desc = desc; in do_caam_encrypt()
1326 if (!desc) { in do_caam_decrypt()
1339 if (!desc) { in do_caam_decrypt()
1439 RSA_DUMPDESC(desc); in do_caam_decrypt()
[all …]
/optee_os/core/drivers/crypto/caam/include/
A Dcaam_trace.h89 #define JR_DUMPDESC(desc) argument
93 #define JR_DUMPDESC(desc) argument
106 #define RNG_DUMPDESC(desc) argument
110 #define RNG_DUMPDESC(desc) argument
123 #define HASH_DUMPDESC(desc) argument
132 #define HASH_DUMPDESC(desc) argument
146 #define RSA_DUMPDESC(desc) argument
155 #define RSA_DUMPDESC(desc) argument
222 #define DH_DUMPDESC(desc) argument
231 #define DH_DUMPDESC(desc) argument
[all …]
A Dcaam_desc_helper.h18 uint32_t caam_desc_get_len(uint32_t *desc);
21 void caam_desc_init(uint32_t *desc);
22 void caam_desc_update_hdr(uint32_t *desc, uint32_t word);
23 void caam_desc_add_ptr(uint32_t *desc, paddr_t ptr);
24 void caam_desc_add_word(uint32_t *desc, uint32_t word);
33 caam_desc_add_dmaobj(desc, data, ST_NOIMM(cla, src, 0))
35 caam_desc_add_dmaobj(desc, data, FIFO_ST(src, 0))
37 caam_desc_add_dmaobj(desc, data, SEQ_OUT_PTR(0))
46 static inline void dump_desc(uint32_t *desc) in dump_desc() argument
51 len = caam_desc_get_len(desc); in dump_desc()
[all …]
A Dcaam_jr.h17 uint32_t *desc; /* reference to the descriptor */ member
45 uint64_t desc; /* Physical address of the descriptor */ member
49 uint64_t desc; /* Physical address of the descriptor */ member
54 uint32_t desc; /* Physical address of the descriptor */ member
58 uint32_t desc; /* Physical address of the descriptor */ member
/optee_os/core/drivers/crypto/caam/
A Dcaam_desc.c22 uint32_t caam_desc_get_len(uint32_t *desc) in caam_desc_get_len() argument
27 void caam_desc_init(uint32_t *desc) in caam_desc_init() argument
29 *desc = 0; in caam_desc_init()
35 caam_write_val32((void *)desc, word); in caam_desc_update_hdr()
40 uint32_t len = caam_desc_get_len(desc); in caam_desc_add_word()
41 uint32_t *last = desc + len; in caam_desc_add_word()
47 caam_write_val32((void *)desc, caam_read_val32((void *)desc) + 1); in caam_desc_add_word()
53 uint32_t *last = desc + len; in caam_desc_add_ptr()
72 caam_write_val32((void *)desc, caam_read_val32((void *)desc) + inc); in caam_desc_add_ptr()
79 put_be64(&in_entry->desc, paddr); in caam_desc_push()
[all …]
A Dcaam_rng.c160 uint32_t *desc = NULL; in prepare_gen_desc() local
167 desc = rng->jobctx.desc; in prepare_gen_desc()
169 caam_desc_init(desc); in prepare_gen_desc()
175 RNG_DUMPDESC(desc); in prepare_gen_desc()
363 uint32_t *desc) in prepare_inst_desc() argument
381 caam_desc_init(desc); in prepare_inst_desc()
419 RNG_DUMPDESC(desc); in prepare_inst_desc()
426 uint32_t *desc = NULL; in caam_rng_instantiation() local
474 if (!desc) { in caam_rng_instantiation()
480 jobctx.desc = desc; in caam_rng_instantiation()
[all …]
/optee_os/core/arch/arm/mm/
A Dcore_mmu_v7.c346 a |= texcb_to_mattr(((desc >> 12) & 0x7) | ((desc >> 2) & 0x3)); in desc_to_mattr()
366 a |= texcb_to_mattr(((desc >> 6) & 0x7) | ((desc >> 2) & 0x3)); in desc_to_mattr()
380 uint32_t desc; in mattr_to_desc() local
385 desc = SECTION_PT_PT; in mattr_to_desc()
388 return desc; in mattr_to_desc()
414 desc |= SECTION_XN; in mattr_to_desc()
418 desc |= SECTION_PXN; in mattr_to_desc()
425 desc |= SECTION_RO; in mattr_to_desc()
462 return desc; in mattr_to_desc()
536 tbl[idx] = desc | pa; in core_mmu_set_entry_primitive()
[all …]
A Dcore_mmu_lpae.c306 if (!(desc & 1)) in desc_to_mattr()
328 if (desc & UPPER_ATTRS(XN)) in desc_to_mattr()
347 if (desc & GP) in desc_to_mattr()
355 uint64_t desc; in mattr_to_desc() local
377 desc = L3_BLOCK_DESC; in mattr_to_desc()
379 desc = BLOCK_DESC; in mattr_to_desc()
382 desc |= UPPER_ATTRS(XN); in mattr_to_desc()
384 desc |= UPPER_ATTRS(PXN); in mattr_to_desc()
393 desc |= GP; in mattr_to_desc()
419 return desc; in mattr_to_desc()
[all …]
/optee_os/core/drivers/imx/dcp/
A Ddcp.c355 desc = &data->dcp_data.desc; in dcp_cipher_do_init()
392 desc->status = 0; in dcp_cipher_do_init()
393 desc->buff_size = 0; in dcp_cipher_do_init()
394 desc->next = virt_to_phys(desc); in dcp_cipher_do_init()
431 desc = &data->dcp_data.desc; in dcp_cipher_do_update()
490 desc = &hashdata->dcp_data.desc; in dcp_sha_do_init()
493 desc->status = 0; in dcp_sha_do_init()
494 desc->payload = 0; in dcp_sha_do_init()
500 desc->next = 0; in dcp_sha_do_init()
547 desc = &hashdata->dcp_data.desc; in dcp_sha_do_update()
[all …]
/optee_os/core/drivers/crypto/caam/hash/
A Dcaam_hash_mac.c73 uint32_t *desc = NULL; in do_reduce_key() local
80 if (!desc) { in do_reduce_key()
85 caam_desc_init(desc); in do_reduce_key()
97 HASH_DUMPDESC(desc); in do_reduce_key()
99 jobctx.desc = desc; in do_reduce_key()
109 caam_free_desc(&desc); in do_reduce_key()
133 uint32_t *desc = NULL; in do_hmac_init() local
144 if (!desc) { in do_hmac_init()
171 caam_desc_init(desc); in do_hmac_init()
182 HASH_DUMPDESC(desc); in do_hmac_init()
[all …]
A Dcaam_hash.c400 caam_desc_init(desc); in do_update_hash()
409 caam_desc_add_word(desc, in do_update_hash()
443 caam_desc_add_word(desc, in do_update_hash()
452 HASH_DUMPDESC(desc); in do_update_hash()
454 jobctx.desc = desc; in do_update_hash()
578 uint32_t *desc = NULL; in caam_hash_hmac_final() local
597 desc = ctx->descriptor; in caam_hash_hmac_final()
598 caam_desc_init(desc); in caam_hash_hmac_final()
616 caam_desc_add_word(desc, in caam_hash_hmac_final()
650 HASH_DUMPDESC(desc); in caam_hash_hmac_final()
[all …]
/optee_os/core/drivers/crypto/caam/blob/
A Dcaam_blob.c28 uint32_t *desc = NULL; in caam_blob_mkvb_init() local
36 desc = caam_calloc_desc(8); in caam_blob_mkvb_init()
37 if (!desc) { in caam_blob_mkvb_init()
42 caam_desc_init(desc); in caam_blob_mkvb_init()
43 caam_desc_add_word(desc, DESC_HEADER(0)); in caam_blob_mkvb_init()
44 caam_desc_add_word(desc, SEQ_OUT_PTR(32)); in caam_blob_mkvb_init()
45 caam_desc_add_ptr(desc, buf.paddr); in caam_blob_mkvb_init()
46 caam_desc_add_word(desc, BLOB_MSTR_KEY); in caam_blob_mkvb_init()
47 BLOB_DUMPDESC(desc); in caam_blob_mkvb_init()
51 jobctx.desc = desc; in caam_blob_mkvb_init()
[all …]
/optee_os/core/drivers/crypto/caam/cipher/
A Dcaam_cipher_mac.c303 uint32_t *desc = NULL; in run_cmac_desc() local
305 desc = ctx->descriptor; in run_cmac_desc()
306 caam_desc_init(desc); in run_cmac_desc()
324 caam_desc_add_word(desc, in run_cmac_desc()
327 caam_desc_add_word(desc, in run_cmac_desc()
332 caam_desc_add_word(desc, in run_cmac_desc()
350 caam_desc_add_word(desc, in run_cmac_desc()
353 caam_desc_add_word(desc, in run_cmac_desc()
373 caam_desc_add_word(desc, in run_cmac_desc()
392 CIPHER_DUMPDESC(desc); in run_cmac_desc()
[all …]
A Dcaam_cipher.c168 uint32_t *desc = ctx->descriptor; in caam_cipher_block() local
170 caam_desc_init(desc); in caam_cipher_block()
171 caam_desc_add_word(desc, DESC_HEADER(0)); in caam_cipher_block()
177 caam_desc_add_ptr(desc, ctx->key1.paddr); in caam_cipher_block()
182 caam_desc_add_ptr(desc, ctx->key2.paddr); in caam_cipher_block()
190 caam_desc_add_ptr(desc, ctx->ctx.paddr); in caam_cipher_block()
195 caam_desc_add_word(desc, in caam_cipher_block()
214 caam_desc_add_word(desc, in caam_cipher_block()
218 caam_desc_add_ptr(desc, ctx->ctx.paddr); in caam_cipher_block()
226 CIPHER_DUMPDESC(desc); in caam_cipher_block()
[all …]
/optee_os/core/pta/
A Dstats.c70 strlcpy(stats->desc, "Heap", sizeof(stats->desc)); in get_alloc_stats()
82 strlcpy(stats->desc, "Secure DDR", sizeof(stats->desc)); in get_alloc_stats()
88 strlcpy(stats->desc, "KHeap", sizeof(stats->desc)); in get_alloc_stats()
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Doid.h549 int mbedtls_oid_get_sig_alg_desc( const mbedtls_asn1_buf *oid, const char **desc );
593 int mbedtls_oid_get_extended_key_usage( const mbedtls_asn1_buf *oid, const char **desc );
603 int mbedtls_oid_get_certificate_policies( const mbedtls_asn1_buf *oid, const char **desc );
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Doid.h549 int mbedtls_oid_get_sig_alg_desc( const mbedtls_asn1_buf *oid, const char **desc );
593 int mbedtls_oid_get_extended_key_usage( const mbedtls_asn1_buf *oid, const char **desc );
603 int mbedtls_oid_get_certificate_policies( const mbedtls_asn1_buf *oid, const char **desc );
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Doid.h549 int mbedtls_oid_get_sig_alg_desc( const mbedtls_asn1_buf *oid, const char **desc );
593 int mbedtls_oid_get_extended_key_usage( const mbedtls_asn1_buf *oid, const char **desc );
603 int mbedtls_oid_get_certificate_policies( const mbedtls_asn1_buf *oid, const char **desc );
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Doid.h549 int mbedtls_oid_get_sig_alg_desc( const mbedtls_asn1_buf *oid, const char **desc );
593 int mbedtls_oid_get_extended_key_usage( const mbedtls_asn1_buf *oid, const char **desc );
603 int mbedtls_oid_get_certificate_policies( const mbedtls_asn1_buf *oid, const char **desc );

Completed in 53 milliseconds

12