/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_internal_asn1_util.c | 29 int cc3xx_asn1_write_len(unsigned char **p, const unsigned char *start, in cc3xx_asn1_write_len() argument 33 if (*p - start < 1) { in cc3xx_asn1_write_len() 37 *--(*p) = (unsigned char)len; in cc3xx_asn1_write_len() 42 if (*p - start < 2) { in cc3xx_asn1_write_len() 46 *--(*p) = (unsigned char)len; in cc3xx_asn1_write_len() 47 *--(*p) = 0x81; in cc3xx_asn1_write_len() 52 if (*p - start < 3) { in cc3xx_asn1_write_len() 56 *--(*p) = (len)&0xFF; in cc3xx_asn1_write_len() 57 *--(*p) = (len >> 8) & 0xFF; in cc3xx_asn1_write_len() 58 *--(*p) = 0x82; in cc3xx_asn1_write_len() [all …]
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/host/src/tests/common/ |
D | multi2_soft.c | 21 static void pi1(ulong32 *p) in pi1() argument 23 p[1] ^= p[0]; in pi1() 26 static void pi2(ulong32 *p, ulong32 *k) in pi2() argument 29 t = (p[1] + k[0]) & 0xFFFFFFFFUL; in pi2() 32 p[0] ^= t; in pi2() 35 static void pi3(ulong32 *p, ulong32 *k) in pi3() argument 38 t = p[0] + k[1]; in pi3() 43 t = ROL(t, 16) ^ (p[0] | t); in pi3() 44 p[1] ^= t; in pi3() 47 static void pi4(ulong32 *p, ulong32 *k) in pi4() argument [all …]
|
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/common/Native_Driver/utilities/str/ |
D | fsl_str.c | 141 static uint32_t PrintGetWidth(const char **p, va_list *ap) in PrintGetWidth() argument 149 c = *(++(*p)); in PrintGetWidth() 163 --(*p); in PrintGetWidth() 172 const char *p = *s; in PrintGetPrecision() local 182 if (*++p == '.') in PrintGetPrecision() 189 char c = *++p; in PrintGetPrecision() 213 --p; in PrintGetPrecision() 221 --p; in PrintGetPrecision() 223 *s = p; in PrintGetPrecision() 384 const char *p = *s; in PrintCheckFlags() local [all …]
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | dhm_alt.c | 35 volatile unsigned char *p = v; while( n-- ) *p++ = 0; in mbedtls_zeroize() local 42 unsigned char **p, in dhm_read_bignum() argument 47 if( end - *p < 2 ) in dhm_read_bignum() 50 n = ( (*p)[0] << 8 ) | (*p)[1]; in dhm_read_bignum() 51 (*p) += 2; in dhm_read_bignum() 53 if( (int)( end - *p ) < n ) in dhm_read_bignum() 56 if( ( ret = mbedtls_mpi_read_binary( X, *p, n ) ) != 0 ) in dhm_read_bignum() 59 (*p) += n; in dhm_read_bignum() 121 if( mbedtls_mpi_cmp_int( N, 0 ) < 0 || ( N->p[0] & 1 ) == 0 ) { in mbedtls_mpi_exp_mod_hw() 157 err = PkiLongNumDiv( A->p, a_len_words, N->p, n_len_words, T.p/*ModRes*/, NULL/*DivRes*/ ); in mbedtls_mpi_exp_mod_hw() [all …]
|
D | mbedtls_common.c | 15 volatile unsigned char *p = NULL; in mbedtls_zeroize_internal() local 21 p = (unsigned char*)v; while( n-- ) *p++ = 0; in mbedtls_zeroize_internal()
|
D | ecp_common.h | 41 if (grp->G.MBEDTLS_PRIVATE(X).MBEDTLS_PRIVATE(p) == NULL) in ecp_get_type() 44 if (grp->G.MBEDTLS_PRIVATE(Y).MBEDTLS_PRIVATE(p) == NULL) in ecp_get_type()
|
D | rsa_alt.c | 102 volatile uint8_t *p = v; while( n-- ) *p++ = 0; in mbedtls_rsa_zeroize() local 132 … if(X == NULL || X->MBEDTLS_PRIVATE(p) != NULL || X->MBEDTLS_PRIVATE(n) != 0 || sizeInWords == 0) { in mbedtls_rsa_uint32_buf_to_mpi() 137 …if( ( X->MBEDTLS_PRIVATE(p) = (uint32_t*)mbedtls_calloc( sizeInWords, sizeof(uint32_t) ) ) == NULL… in mbedtls_rsa_uint32_buf_to_mpi() 142 CC_PalMemCopy(X->MBEDTLS_PRIVATE(p), buf, sizeInWords*CC_32BIT_WORD_SIZE); in mbedtls_rsa_uint32_buf_to_mpi() 472 …bedtls_rsa_uint32_buf_to_mpi( &pCtx->MBEDTLS_PRIVATE(P), pKeyGenData->KGData.p, keySizeWords/2 ) ); in mbedtls_rsa_gen_key() 477 pKeyGenData->KGData.p, nbits/2); /*in*/ in mbedtls_rsa_gen_key() 495 pKeyGenData->KGData.p, pKeyGenData->KGData.q, in mbedtls_rsa_gen_key() 512 … CC_CommonReverseMemcpy( rsaKgOutParams.pPrim, (uint8_t*)pKeyGenData->KGData.p, keySizeBytes/2 ); in mbedtls_rsa_gen_key() 687 … ret = RsaPrimeTestCall( &ccRndCtx, &P->MBEDTLS_PRIVATE(p)[0], mbedtls_mpi_size_in_words(P), in mbedtls_rsa_validate_params_alt() 697 … ret = RsaPrimeTestCall( &ccRndCtx, &Q->MBEDTLS_PRIVATE(p)[0], mbedtls_mpi_size_in_words(Q), in mbedtls_rsa_validate_params_alt() [all …]
|
/trusted-firmware-m-3.6.0/secure_fw/partitions/ns_agent_mailbox/ |
D | tfm_multi_core_mem_check.c | 26 void tfm_get_mem_region_security_attr(const void *p, size_t s, in tfm_get_mem_region_security_attr() argument 31 if (check_address_range(p, s, NS_DATA_START, in tfm_get_mem_region_security_attr() 37 if (check_address_range(p, s, NS_CODE_START, in tfm_get_mem_region_security_attr() 43 if (check_address_range(p, s, S_DATA_START, S_DATA_LIMIT) == SPM_SUCCESS) { in tfm_get_mem_region_security_attr() 48 if (check_address_range(p, s, S_CODE_START, S_CODE_LIMIT) == SPM_SUCCESS) { in tfm_get_mem_region_security_attr() 69 void tfm_get_secure_mem_region_attr(const void *p, size_t s, in tfm_get_secure_mem_region_attr() argument 76 if (check_address_range(p, s, S_DATA_START, S_DATA_LIMIT) == SPM_SUCCESS) { in tfm_get_secure_mem_region_attr() 85 if (check_address_range(p, s, S_CODE_START, S_CODE_LIMIT) == SPM_SUCCESS) { in tfm_get_secure_mem_region_attr() 104 if (check_address_range(p, s, base, limit) == SPM_SUCCESS) { in tfm_get_secure_mem_region_attr() 117 if (check_address_range(p, s, base, limit) == SPM_SUCCESS) { in tfm_get_secure_mem_region_attr() [all …]
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/include/ |
D | cc3xx_internal_asn1_util.h | 66 int cc3xx_asn1_write_len(unsigned char **p, const unsigned char *start, size_t len); 80 int cc3xx_asn1_write_tag(unsigned char **p, const unsigned char *start, 97 int cc3xx_asn1_write_big_integer(unsigned char **p, const unsigned char *start, 114 int cc3xx_asn1_write_int(unsigned char **p, unsigned char *start, int val); 134 psa_status_t cc3xx_asn1_get_tag(unsigned char **p, const unsigned char *end, size_t *len, 154 psa_status_t cc3xx_asn1_get_len(unsigned char **p, const unsigned char *end, 172 psa_status_t cc3xx_asn1_get_int(unsigned char **p, const unsigned char *end, int *val);
|
/trusted-firmware-m-3.6.0/docs/ |
D | index.rst | 13 <p>Introducing the Trusted Firmware-M Project: overview, 14 architecture, features, and licensing.</p> 21 <p>Follow this guide to set up a development environment on your 22 system, and then build and run a sample application.</p> 29 <p>List of supported boards and platforms.</p> 36 <p>As an open-source project, we welcome and encourage the community 37 to submit patches directly to the project.</p> 44 <p>Guidelines for integration with TF-M.</p> 51 <p>Design documents.</p> 58 <p>Requirements, processes, and thread models for ensuring security [all …]
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/corstone1000/ |
D | tfm_hal_multi_core.c | 83 void tfm_hal_get_mem_security_attr(const void *p, size_t s, in tfm_hal_get_mem_security_attr() argument 87 tfm_get_mem_region_security_attr(p, s, p_attr); in tfm_hal_get_mem_security_attr() 90 void tfm_hal_get_secure_access_attr(const void *p, size_t s, in tfm_hal_get_secure_access_attr() argument 94 tfm_get_secure_mem_region_attr(p, s, p_attr); in tfm_hal_get_secure_access_attr() 100 void tfm_hal_get_ns_access_attr(const void *p, size_t s, in tfm_hal_get_ns_access_attr() argument 104 tfm_get_ns_mem_region_attr(p, s, p_attr); in tfm_hal_get_ns_access_attr()
|
/trusted-firmware-m-3.6.0/platform/ext/target/cypress/psoc64/ |
D | tfm_hal_multi_core.c | 110 void tfm_hal_get_mem_security_attr(const void *p, size_t s, in tfm_hal_get_mem_security_attr() argument 114 tfm_get_mem_region_security_attr(p, s, p_attr); in tfm_hal_get_mem_security_attr() 117 void tfm_hal_get_secure_access_attr(const void *p, size_t s, in tfm_hal_get_secure_access_attr() argument 123 SMPU_Get_Access_Rules(p, s, CY_PROT_SPM_DEFAULT, &smpu_attr); in tfm_hal_get_secure_access_attr() 125 tfm_get_secure_mem_region_attr(p, s, p_attr); in tfm_hal_get_secure_access_attr() 138 void tfm_hal_get_ns_access_attr(const void *p, size_t s, in tfm_hal_get_ns_access_attr() argument 143 SMPU_Get_Access_Rules(p, s, CY_PROT_HOST_DEFAULT, &smpu_attr); in tfm_hal_get_ns_access_attr() 145 tfm_get_ns_mem_region_attr(p, s, p_attr); in tfm_hal_get_ns_access_attr()
|
/trusted-firmware-m-3.6.0/secure_fw/spm/core/ |
D | tfm_multi_core.h | 52 void tfm_get_mem_region_security_attr(const void *p, size_t s, 69 void tfm_get_secure_mem_region_attr(const void *p, size_t s, 86 void tfm_get_ns_mem_region_attr(const void *p, size_t s, 100 int32_t tfm_has_access_to_region(const void *p, size_t s, uint32_t flags); 123 int32_t check_address_range(const void *p, size_t s,
|
D | stack_watermark.c | 39 for (const uint32_t *p = (uint32_t *)LOAD_ALLOCED_STACK_ADDR(p_pldi); in used_stack() local 40 p < (uint32_t *)(LOAD_ALLOCED_STACK_ADDR(p_pldi) + p_pldi->stack_size); in used_stack() 41 p++) { in used_stack() 42 if (*p != STACK_WATERMARK_VAL) { in used_stack()
|
/trusted-firmware-m-3.6.0/secure_fw/spm/include/ |
D | current.h | 17 #define SET_CURRENT_COMPONENT(p) THRD_UPDATE_CUR_CTXCTRL(&(p)->ctx_ctrl) argument 23 #define SET_CURRENT_COMPONENT(p) p_current_partition = p argument
|
D | tfm_nspm.h | 25 #define cmse_nsfptr_create(p) ((intptr_t) (p) & ~1) argument
|
/trusted-firmware-m-3.6.0/platform/ext/target/stm/common/hal/accelerator/ |
D | ecp_curves_alt.c | 582 static inline void ecp_mpi_load( mbedtls_mpi *X, const mbedtls_mpi_uint *p, size_t len ) in ecp_mpi_load() argument 586 X->MBEDTLS_PRIVATE(p) = (mbedtls_mpi_uint *) p; in ecp_mpi_load() 597 X->MBEDTLS_PRIVATE(p) = one; in ecp_mpi_set1() 607 const mbedtls_mpi_uint *p, size_t plen, in ecp_group_load() argument 616 ecp_mpi_load( &grp->P, p, plen ); in ecp_group_load() 644 if (grp->A.MBEDTLS_PRIVATE(p) == NULL) in ecp_group_load() 968 #define A( i ) N->MBEDTLS_PRIVATE(p) + (i) * WIDTH 969 #define ADD( i ) add64( p, A( i ), &c ) 970 #define NEXT p += WIDTH; carry64( p, &c ) 971 #define LAST p += WIDTH; *p = c; while( ++p < end ) *p = 0 [all …]
|
D | rsa_alt.c | 257 static int rsa_deduce_phi( const mbedtls_mpi *p, in rsa_deduce_phi() argument 270 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_int( &P1, p, 1 ) ); in rsa_deduce_phi() 475 const mbedtls_mpi *p, in rsa_crt_pka_modexp() argument 506 plen = mbedtls_mpi_size( p ); in rsa_crt_pka_modexp() 509 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( p, p_binary, plen ) ); in rsa_crt_pka_modexp() 1402 unsigned char *p; in mgf_mask() local 1413 p = dst; in mgf_mask() 1431 *p++ ^= mask[i]; in mgf_mask() 1459 unsigned char *p = output; in mbedtls_rsa_rsaes_oaep_encrypt() local 1487 *p++ = 0; in mbedtls_rsa_rsaes_oaep_encrypt() [all …]
|
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/lpcxpresso55s69/Native_Driver/utilities/ |
D | fsl_shell.c | 575 list_element_handle_t p = LIST_GetHead(&shellContextHandle->commandContextListHead); in SHELL_HelpCommand() local 577 while (p != NULL) in SHELL_HelpCommand() 579 shellCommandContextHandle = SHEEL_COMMAND_POINTER(p); in SHELL_HelpCommand() 586 p = LIST_GetNext(p); in SHELL_HelpCommand() 606 list_element_handle_t p; in SHELL_ProcessCommand() local 627 p = LIST_GetHead(&shellContextHandle->commandContextListHead); in SHELL_ProcessCommand() 628 while (p != NULL) in SHELL_ProcessCommand() 630 tmpCommand = SHEEL_COMMAND_POINTER(p); in SHELL_ProcessCommand() 661 p = LIST_GetNext(p); in SHELL_ProcessCommand() 663 if (NULL == p) in SHELL_ProcessCommand() [all …]
|
/trusted-firmware-m-3.6.0/platform/include/ |
D | tfm_hal_multi_core.h | 42 void tfm_hal_get_mem_security_attr(const void *p, size_t s, 55 void tfm_hal_get_secure_access_attr(const void *p, size_t s, 68 void tfm_hal_get_ns_access_attr(const void *p, size_t s,
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_wrst/ |
D | pka_ec_wrst_smul_no_scap.c | 148 char *p; /* a pointer to the current NAF digit */ in PkaBuildNaf() local 162 p = *pNaf + keySzBit + 1; /* start from the last byte */ in PkaBuildNaf() 163 *p = 0; in PkaBuildNaf() 175 --p; in PkaBuildNaf() 177 if (p < *pNaf) { in PkaBuildNaf() 182 *p = (pK[0] & 1) ? ((pK[0] & 2) ? '-' : '+') : '0'; in PkaBuildNaf() 185 if (*p == '-') { in PkaBuildNaf() 203 *pNaf = p; in PkaBuildNaf()
|
/trusted-firmware-m-3.6.0/platform/ext/common/ |
D | test_interrupt.c | 84 __attribute__((used)) static uint32_t is_non_zero(uint32_t *p, uint32_t n) in is_non_zero() argument 87 while(n && p[n - 1] == 0) { in is_non_zero()
|
/trusted-firmware-m-3.6.0/platform/ext/target/arm/rss/common/native_drivers/ |
D | mhu_wrapper_v2_x.c | 172 uint32_t *p; in mhu_send_data() local 197 p = (uint32_t *)send_buffer; in mhu_send_data() 199 err = mhu_v2_x_channel_send(dev, chan, *p++); in mhu_send_data() 256 uint32_t *p; in mhu_receive_data() local 283 p = (uint32_t *)receive_buffer; in mhu_receive_data() 285 err = mhu_v2_x_channel_receive(dev, chan, p++); in mhu_receive_data()
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/ |
D | run_integration_dhm.c | 64 unsigned char *p = NULL; in runIt_dhm() local 100 p = pSke; in runIt_dhm() 106 RUNIT_ASSERT_API(mbedtls_dhm_read_params(pCtxCli, &p, pSke + ske_len) == 0); in runIt_dhm() 132 p = pSke; in runIt_dhm() 137 RUNIT_ASSERT_API(mbedtls_dhm_read_params(pCtxCli, &p, pSke + ske_len) == 0); in runIt_dhm()
|
/trusted-firmware-m-3.6.0/platform/ext/target/cypress/psoc64/libs/core-lib/docs/html/ |
D | jquery.js | 81 …p=0;p=/sw|ne|nw|se|n|s/.test(n)?o.outerHeight():o.outerWidth();var m=["padding",/ne|nw|n/.test(n)?… argument 89 …p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeo… 96 …p={none:0,top:1,bottom:2,left:4,right:8};k.fn.powerTip=function(F,N){if(!this.length){return this}… class in AnonymousFunction1dc0085e15000 115 …p=Math.abs(l.y-t.y);if((q>0||p>0)&&q<=2&&p<=2&&t.timeStamp-l.timeStamp<=300){f=true;if(o){var r=a(… argument
|