/optee_os/core/drivers/crypto/caam/cipher/ |
A D | caam_cipher_mac.c | 219 size_done = ctx->alg->size_block; in do_update_mac() 226 ctx->alg->size_block); in do_update_mac() 249 ctx->alg->size_block); in do_update_mac() 321 ctx->alg->ctx_offset)); in run_cmac_desc() 340 ctx->alg->size_ctx); in run_cmac_desc() 388 ctx->alg->ctx_offset)); in run_cmac_desc() 502 ctx->alg->size_block); in do_update_cmac() 524 ctx->alg->size_block); in do_update_cmac() 754 alg = get_macalgo(algo); in caam_cmac_allocate() 755 if (!alg) { in caam_cmac_allocate() [all …]
|
A D | caam_cipher_xts.c | 145 lastblk = fullsize % ctx->alg->size_block; in caam_cipher_update_xts() 155 fullsize -= ctx->alg->size_block; in caam_cipher_update_xts() 158 srcbuf.length = ctx->alg->size_block; in caam_cipher_update_xts() 162 dstbuf.length = ctx->alg->size_block; in caam_cipher_update_xts() 178 srcbuf.data += ctx->alg->size_block; in caam_cipher_update_xts() 179 srcbuf.paddr += ctx->alg->size_block; in caam_cipher_update_xts() 181 dstbuf.data += ctx->alg->size_block; in caam_cipher_update_xts() 182 dstbuf.paddr += ctx->alg->size_block; in caam_cipher_update_xts() 222 srcbuf.data[ctx->alg->size_block + idx]; in caam_cipher_update_xts() 223 dstbuf.data[ctx->alg->size_block + idx] = in caam_cipher_update_xts() [all …]
|
A D | caam_cipher.c | 189 ctx->alg->ctx_offset)); in caam_cipher_block() 217 ctx->alg->ctx_offset)); in caam_cipher_block() 292 alg = get_cipheralgo(algo); in do_allocate() 293 if (!alg) { in do_allocate() 313 cipherdata->alg = alg; in do_allocate() 376 dst->alg = src->alg; in caam_cipher_copy_state() 433 alg = cipherdata->alg; in caam_cipher_initialize() 488 alg->size_ctx); in caam_cipher_initialize() 526 alg->size_block); in caam_cipher_initialize() 643 ctx->alg->size_block); in do_update_streaming() [all …]
|
A D | local.h | 56 const struct cipheralg *alg; /* Reference to the algo constants */ member
|
/optee_os/core/drivers/crypto/caam/hash/ |
A D | caam_hash.c | 249 const struct hashalg *alg = NULL; in caam_hash_allocate() local 256 alg = caam_hash_get_alg(algo); in caam_hash_allocate() 257 if (!alg) in caam_hash_allocate() 270 hash_ctx->alg = alg; in caam_hash_allocate() 396 const struct hashalg *alg = ctx->alg; in do_update_hash() local 425 ctx->ctx.length = alg->size_ctx; in do_update_hash() 472 const struct hashalg *alg = NULL; in caam_hash_hmac_update() local 486 alg = ctx->alg; in caam_hash_hmac_update() 528 alg->size_block); in caam_hash_hmac_update() 586 alg = ctx->alg; in caam_hash_hmac_final() [all …]
|
A D | caam_hash_mac.c | 67 const struct hashalg *alg, in do_reduce_key() argument 87 caam_desc_add_word(desc, HASH_INITFINAL(alg->type)); in do_reduce_key() 130 const struct hashalg *alg = hmac_ctx->alg; in do_hmac_init() local 149 hmac_ctx->key.length = alg->size_key; in do_hmac_init() 151 if (len > alg->size_block) { in do_hmac_init() 155 alg->size_digest); in do_hmac_init() 176 caam_desc_add_word(desc, HMAC_INIT_DECRYPT(alg->type)); in do_hmac_init() 292 const struct hashalg *alg = NULL; in caam_hmac_allocate() local 299 alg = caam_hash_get_alg(algo); in caam_hmac_allocate() 300 if (!alg) in caam_hmac_allocate() [all …]
|
A D | local.h | 19 const struct hashalg *alg; /* Reference to the algo constants */ member
|
/optee_os/lib/libutee/ |
A D | tee_api_operations.c | 1902 if (alg == TEE_ALG_MD5) in TEE_IsAlgorithmSupported() 1906 if (alg == TEE_ALG_SHA1) in TEE_IsAlgorithmSupported() 1910 if (alg == TEE_ALG_SHA224) in TEE_IsAlgorithmSupported() 1914 if (alg == TEE_ALG_SHA256) in TEE_IsAlgorithmSupported() 1918 if (alg == TEE_ALG_SHA384) in TEE_IsAlgorithmSupported() 1960 if (alg == TEE_ALG_SM3) in TEE_IsAlgorithmSupported() 2042 if ((alg == TEE_ALG_ECDH_P192 || alg == TEE_ALG_ECDSA_P192) && in TEE_IsAlgorithmSupported() 2045 if ((alg == TEE_ALG_ECDH_P224 || alg == TEE_ALG_ECDSA_P224) && in TEE_IsAlgorithmSupported() 2048 if ((alg == TEE_ALG_ECDH_P256 || alg == TEE_ALG_ECDSA_P256) && in TEE_IsAlgorithmSupported() 2051 if ((alg == TEE_ALG_ECDH_P384 || alg == TEE_ALG_ECDSA_P384) && in TEE_IsAlgorithmSupported() [all …]
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | asn1parse.c | 381 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params ) in mbedtls_asn1_get_alg() argument 393 alg->tag = **p; in mbedtls_asn1_get_alg() 396 if( ( ret = mbedtls_asn1_get_tag( p, end, &alg->len, MBEDTLS_ASN1_OID ) ) != 0 ) in mbedtls_asn1_get_alg() 399 alg->p = *p; in mbedtls_asn1_get_alg() 400 *p += alg->len; in mbedtls_asn1_get_alg() 425 mbedtls_asn1_buf *alg ) in mbedtls_asn1_get_alg_null() argument 432 if( ( ret = mbedtls_asn1_get_alg( p, end, alg, ¶ms ) ) != 0 ) in mbedtls_asn1_get_alg_null()
|
A D | x509.c | 110 mbedtls_x509_buf *alg ) in mbedtls_x509_get_alg_null() argument 114 if( ( ret = mbedtls_asn1_get_alg_null( p, end, alg ) ) != 0 ) in mbedtls_x509_get_alg_null() 124 mbedtls_x509_buf *alg, mbedtls_x509_buf *params ) in mbedtls_x509_get_alg() argument 128 if( ( ret = mbedtls_asn1_get_alg( p, end, alg, params ) ) != 0 ) in mbedtls_x509_get_alg() 144 static int x509_get_hash_alg( const mbedtls_x509_buf *alg, mbedtls_md_type_t *md_alg ) in x509_get_hash_alg() argument 153 if( alg->tag != ( MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE ) ) in x509_get_hash_alg() 157 p = alg->p; in x509_get_hash_alg() 158 end = p + alg->len; in x509_get_hash_alg()
|
A D | cipher.c | 276 psa_algorithm_t alg; in mbedtls_cipher_setup_psa() local 284 alg = mbedtls_psa_translate_cipher_mode( cipher_info->mode, taglen ); in mbedtls_cipher_setup_psa() 285 if( alg == 0 ) in mbedtls_cipher_setup_psa() 295 cipher_psa->alg = alg; in mbedtls_cipher_setup_psa() 357 psa_set_key_algorithm( &attributes, cipher_psa->alg ); in mbedtls_cipher_setkey() 1270 cipher_psa->alg ); in mbedtls_cipher_crypt() 1276 cipher_psa->alg ); in mbedtls_cipher_crypt() 1359 cipher_psa->alg, in mbedtls_cipher_aead_encrypt() 1439 cipher_psa->alg, in mbedtls_cipher_aead_decrypt()
|
/optee_os/core/drivers/ |
A D | hi16xx_rng.c | 42 vaddr_t alg = (vaddr_t)phys_to_virt(ALG_SC_BASE, MEM_AREA_IO_SEC, in hi16xx_rng_init() local 49 io_write32(alg + ALG_SC_RNG_RESET_DREQ, ALG_SC_SRST_DREQ_RNG); in hi16xx_rng_init()
|
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/ |
A D | asn1.h | 550 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params ); 569 mbedtls_asn1_buf *alg );
|
A D | x509.h | 312 mbedtls_x509_buf *alg ); 314 mbedtls_x509_buf *alg, mbedtls_x509_buf *params );
|
/optee_os/out/arm/export-ta_arm32/include/mbedtls/ |
A D | asn1.h | 550 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params ); 569 mbedtls_asn1_buf *alg );
|
A D | x509.h | 312 mbedtls_x509_buf *alg ); 314 mbedtls_x509_buf *alg, mbedtls_x509_buf *params );
|
A D | cipher_internal.h | 139 psa_algorithm_t alg; member
|
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | asn1.h | 550 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params ); 569 mbedtls_asn1_buf *alg );
|
A D | x509.h | 312 mbedtls_x509_buf *alg ); 314 mbedtls_x509_buf *alg, mbedtls_x509_buf *params );
|
/optee_os/out/arm/export-ta_arm64/include/mbedtls/ |
A D | asn1.h | 550 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params ); 569 mbedtls_asn1_buf *alg );
|
A D | x509.h | 312 mbedtls_x509_buf *alg ); 314 mbedtls_x509_buf *alg, mbedtls_x509_buf *params );
|
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/ |
A D | asn1.h | 550 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params ); 569 mbedtls_asn1_buf *alg );
|
A D | x509.h | 312 mbedtls_x509_buf *alg ); 314 mbedtls_x509_buf *alg, mbedtls_x509_buf *params );
|
A D | cipher_internal.h | 139 psa_algorithm_t alg; member
|
/optee_os/core/drivers/imx/dcp/ |
A D | dcp.c | 498 desc->ctrl1 = hash_alg[hashdata->alg].type; in dcp_sha_do_init() 600 if (digest_size < hash_alg[hashdata->alg].size) { in dcp_sha_do_final() 602 hash_alg[hashdata->alg].size); in dcp_sha_do_final() 607 payload_size = hash_alg[hashdata->alg].size; in dcp_sha_do_final() 611 if (hashdata->alg == DCP_SHA1) in dcp_sha_do_final() 613 if (hashdata->alg == DCP_SHA256) in dcp_sha_do_final()
|