| /optee_os/core/arch/arm/dts/ |
| H A D | sama5d2-pinfunc.h | 12 #define PIN_PA0__QSPI0_SCK PINMUX_PIN(PIN_PA0, 2, 1) 13 #define PIN_PA0__D0 PINMUX_PIN(PIN_PA0, 6, 2) 17 #define PIN_PA1__QSPI0_CS PINMUX_PIN(PIN_PA1, 2, 1) 18 #define PIN_PA1__D1 PINMUX_PIN(PIN_PA1, 6, 2) 19 #define PIN_PA2 2 22 #define PIN_PA2__QSPI0_IO0 PINMUX_PIN(PIN_PA2, 2, 1) 23 #define PIN_PA2__D2 PINMUX_PIN(PIN_PA2, 6, 2) 27 #define PIN_PA3__QSPI0_IO1 PINMUX_PIN(PIN_PA3, 2, 1) 28 #define PIN_PA3__D3 PINMUX_PIN(PIN_PA3, 6, 2) 32 #define PIN_PA4__QSPI0_IO2 PINMUX_PIN(PIN_PA4, 2, 1) [all …]
|
| H A D | sama7g5-pinfunc.h | 1 /* SPDX-License-Identifier: BSD-2-Clause */ 12 #define PIN_PA0__FLEXCOM0_IO0 PINMUX_PIN(PIN_PA0, 2, 1) 14 #define PIN_PA0__PWML0 PINMUX_PIN(PIN_PA0, 5, 2) 18 #define PIN_PA1__FLEXCOM0_IO1 PINMUX_PIN(PIN_PA1, 2, 1) 22 #define PIN_PA2 2 25 #define PIN_PA2__FLEXCOM0_IO2 PINMUX_PIN(PIN_PA2, 2, 1) 33 #define PIN_PA3__FLEXCOM0_IO3 PINMUX_PIN(PIN_PA3, 2, 1) 41 #define PIN_PA4__FLEXCOM0_IO4 PINMUX_PIN(PIN_PA4, 2, 1) 49 #define PIN_PA5__FLEXCOM1_IO0 PINMUX_PIN(PIN_PA5, 2, 1) 57 #define PIN_PA6__FLEXCOM1_IO1 PINMUX_PIN(PIN_PA6, 2, 1) [all …]
|
| /optee_os/mk/ |
| H A D | compile.mk | 32 -Wformat-nonliteral -Wformat-security -Wformat=2 -Winit-self \ 48 -Wold-style-definition -Wstrict-aliasing=2 \ 52 comp-cflags-warns-2:= $(comp-cflags-warns-1) $(comp-cflags-warns-medium) 53 comp-cflags-warns-3:= $(comp-cflags-warns-2) $(comp-cflags-warns-low) 69 objs += $2 70 comp-dep-$2 := $$(dir $2).$$(notdir $2).d 71 comp-cmd-file-$2:= $$(dir $2).$$(notdir $2).cmd 72 comp-sm-$2 := $(sm) 73 comp-lib-$2 := $(libname)-$(sm) 75 cleanfiles := $$(cleanfiles) $$(comp-dep-$2) $$(comp-cmd-file-$2) $2 [all …]
|
| /optee_os/core/arch/arm/crypto/ |
| H A D | sha512_armv8a_ce_a64.S | 1 /* SPDX-License-Identifier: BSD-2-Clause */ 12 .irp b,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 14 .set .Lv\b\().2d, \b 83 ld1 {v\rc1\().2d}, [x4], #16 85 add v5.2d, v\rc0\().2d, v\in0\().2d 89 add v\i3\().2d, v\i3\().2d, v5.2d 92 sha512su0 v\in0\().2d, v\in1\().2d 94 sha512h q\i3, q6, v7.2d 96 sha512su1 v\in0\().2d, v\in2\().2d, v5.2d 98 add v\i4\().2d, v\i1\().2d, v\i3\().2d [all …]
|
| H A D | sha3_armv8a_ce_a64.S | 1 /* SPDX-License-Identifier: BSD-2-Clause */ 12 .irp b,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,\ 14 .set .Lv\b\().2d, \b 19 * ARMv8.2 Crypto Extensions instructions 105 /* bit 2 set? -> SHA-224 */ 106 tbnz x3, #2, 2f 117 2: ld1 {v29.8b}, [x1], #8 139 rax1 v30.2d, v29.2d, v26.2d // bc[0] 140 rax1 v26.2d, v26.2d, v28.2d // bc[2] 141 rax1 v28.2d, v28.2d, v25.2d // bc[4] [all …]
|
| H A D | ghash-ce-core_a64.S | 1 /* SPDX-License-Identifier: BSD-2-Clause */ 74 pmull2 \rd\().1q, \rn\().2d, \rm\().2d 79 ext t5.8b, \ad\().8b, \ad\().8b, #2 // A2 102 __pmull_p8_tail \rq, \ad\().16b, SHASH.16b, 16b, 2, sh1, sh2, sh3, sh4 119 uzp1 t4.2d, t3.2d, t5.2d 120 uzp2 t3.2d, t3.2d, t5.2d 121 uzp1 t6.2d, t7.2d, t9.2d 122 uzp2 t7.2d, t7.2d, t9.2d 137 zip2 t5.2d, t4.2d, t3.2d 138 zip1 t3.2d, t4.2d, t3.2d [all …]
|
| H A D | sha256_armv8a_ce_a32.S | 1 /* SPDX-License-Identifier: BSD-2-Clause */ 67 add_update 1, 0, 1, 2, 3 68 add_update 0, 1, 2, 3, 0 69 add_update 1, 2, 3, 0, 1 70 add_update 0, 3, 0, 1, 2 71 add_update 1, 0, 1, 2, 3 72 add_update 0, 1, 2, 3, 0 73 add_update 1, 2, 3, 0, 1 74 add_update 0, 3, 0, 1, 2 75 add_update 1, 0, 1, 2, 3 [all …]
|
| /optee_os/lib/libutils/isoc/arch/arm/softfloat/source/ |
| H A D | s_countLeadingZeros8.c | 17 2. Redistributions in binary form must reproduce the above copyright notice, 45 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 46 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
| /optee_os/core/include/dt-bindings/clock/ |
| H A D | stm32mp13-clksrc.h | 12 #define CMD_CLK 2 41 #define DIV_PLL2DIVQ 2 85 #define MUX_MLAHB 2 136 #define CLK_MPU_PLL1P CLKSRC(MUX_MPU, 2) 141 #define CLK_AXI_PLL2P CLKSRC(MUX_AXI, 2) 145 #define CLK_MLAHBS_CSI CLKSRC(MUX_MLAHB, 2) 153 #define CLK_PLL3_CSI CLKSRC(MUX_PLL3, 2) 157 #define CLK_PLL4_CSI CLKSRC(MUX_PLL4, 2) 161 #define CLK_RTC_LSI CLKSRC(MUX_RTC, 2) 166 #define CLK_MCO1_CSI CLK_SRC(CK_MCO1, 2) [all …]
|
| /optee_os/core/include/drivers/ |
| H A D | stm32mp25_rcc.h | 1 /* SPDX-License-Identifier: BSD-2-Clause */ 735 #define RCC_HWRSTSCLRR_PADRSTF BIT(2) 752 #define RCC_C1HWRSTSCLRR_C1P1RSTF BIT(2) 760 #define RCC_C1BOOTRSTSSETR_PADRSTF BIT(2) 783 #define RCC_C1BOOTRSTSCLRR_PADRSTF BIT(2) 806 #define RCC_C2BOOTRSTSSETR_PADRSTF BIT(2) 828 #define RCC_C2BOOTRSTSCLRR_PADRSTF BIT(2) 859 #define RCC_STBYBOOTCR_COLD_CPU2 BIT(2) 870 #define RCC_BDCR_LSERDY BIT(2) 888 #define RCC_BDCR_LSERDY_BIT 2 [all …]
|
| H A D | stm32mp21_rcc.h | 1 /* SPDX-License-Identifier: BSD-2-Clause */ 667 #define RCC_HWRSTSCLRR_PADRSTF BIT(2) 690 #define RCC_C1BOOTRSTSSETR_PADRSTF BIT(2) 711 #define RCC_C1BOOTRSTSCLRR_PADRSTF BIT(2) 732 #define RCC_C2BOOTRSTSSETR_PADRSTF BIT(2) 751 #define RCC_C2BOOTRSTSCLRR_PADRSTF BIT(2) 781 #define RCC_STBYBOOTCR_COLD_CPU2 BIT(2) 792 #define RCC_BDCR_LSERDY BIT(2) 796 #define RCC_BDCR_LSEDRV_WIDTH 2 823 #define RCC_C1CIESETR_HSIRDYIE BIT(2) [all …]
|
| /optee_os/core/lib/libtomcrypt/src/hashes/sha2/ |
| H A D | sha256.c | 20 { 2, 16, 840, 1, 101, 3, 4, 2, 1, }, 54 #define Sigma0(x) (S(x, 2) ^ S(x, 13) ^ S(x, 22)) 84 W[i] = Gamma1(W[i - 2]) + W[i - 7] + Gamma0(W[i - 15]) + W[i - 16]; in ss_sha256_compress() 96 RND(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],i); in ss_sha256_compress() 98 S[4] = S[3]; S[3] = S[2]; S[2] = S[1]; S[1] = S[0]; S[0] = t; in ss_sha256_compress() 107 RND(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],0,0x428a2f98); in ss_sha256_compress() 108 RND(S[7],S[0],S[1],S[2],S[3],S[4],S[5],S[6],1,0x71374491); in ss_sha256_compress() 109 RND(S[6],S[7],S[0],S[1],S[2],S[3],S[4],S[5],2,0xb5c0fbcf); in ss_sha256_compress() 110 RND(S[5],S[6],S[7],S[0],S[1],S[2],S[3],S[4],3,0xe9b5dba5); in ss_sha256_compress() 111 RND(S[4],S[5],S[6],S[7],S[0],S[1],S[2],S[3],4,0x3956c25b); in ss_sha256_compress() [all …]
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | arm32_sysreg.txt | 15 CSSELR c0 2 c0 0 RW Cache Size Selection Register 18 ID_DFR0 c0 0 c1 2 RO Debug Feature Register 0 21 ID_ISAR2 c0 0 c2 2 RO Instruction Set Attribute Register 2 27 ID_MMFR2 c0 0 c1 6 RO Memory Model Feature Register 2 34 TCMTR c0 0 c0 2 RO TCM Type Register 47 TTBCR c2 0 c0 2 RW Translation Table Base Control Register 58 IFAR c6 0 c0 2 RW Instruction Fault Address Register 63 CPACR c1 0 c0 2 RW Coprocessor Access Control Register 71 DCCISW c7 0 c14 2 WO Data cache clean and invalidate by set/way 74 DCCSW c7 0 c10 2 WO Data cache clean by set/way [all …]
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | ecp_invasive.h | 102 * in range `0 <= X < 2 * N` (where N is the modulus). 124 * in range `0 <= X < 2 * N` (where N is the modulus). 140 /** Fast quasi-reduction modulo p521 = 2^521 - 1 (FIPS 186-3 D.2.5) 146 * in range `0 <= X < 2 * N` (where N is the modulus). 168 * in range `0 <= X < 2 * N` (where N is the modulus). 184 /** Fast quasi-reduction modulo p192k1 = 2^192 - R, 185 * with R = 2^32 + 2^12 + 2^8 + 2^7 + 2^6 + 2^3 + 1 = 0x01000011C9 191 * in range `0 <= X < 2 * N` (where N is the modulus). 208 /** Fast quasi-reduction modulo p224k1 = 2^224 - R, 209 * with R = 2^32 + 2^12 + 2^11 + 2^9 + 2^7 + 2^4 + 2 + 1 = 0x0100001A93 [all …]
|
| H A D | ssl_client.c | 68 * opaque HostName<1..2^16-1>; in ssl_write_hostname_ext() 71 * ServerName server_name_list<1..2^16-1> in ssl_write_hostname_ext() 76 p += 2; in ssl_write_hostname_ext() 79 p += 2; in ssl_write_hostname_ext() 82 p += 2; in ssl_write_hostname_ext() 87 p += 2; in ssl_write_hostname_ext() 107 * opaque ProtocolName<1..2^8-1>; 110 * ProtocolName protocol_name_list<2..2^16-1> 131 /* Check we have enough space for the extension type (2 bytes), the in ssl_write_alpn_ext() 132 * extension length (2 bytes) and the protocol_name_list length (2 bytes). in ssl_write_alpn_ext() [all …]
|
| H A D | pkwrite.h | 39 #define MBEDTLS_PK_RSA_PUB_DER_MAX_BYTES (38 + 2 * MBEDTLS_MPI_MAX_SIZE) 48 * prime1 INTEGER, 1 + 3 + MPI_MAX / 2 + 1 49 * prime2 INTEGER, 1 + 3 + MPI_MAX / 2 + 1 50 * exponent1 INTEGER, 1 + 3 + MPI_MAX / 2 + 1 51 * exponent2 INTEGER, 1 + 3 + MPI_MAX / 2 + 1 52 * coefficient INTEGER, 1 + 3 + MPI_MAX / 2 + 1 56 #define MBEDTLS_MPI_MAX_SIZE_2 (MBEDTLS_MPI_MAX_SIZE / 2 + \ 57 MBEDTLS_MPI_MAX_SIZE % 2) 84 * SubjectPublicKeyInfo ::= SEQUENCE { 1 + 2 88 * subjectPublicKey BIT STRING 1 + 2 + 1 [1] [all …]
|
| /optee_os/core/drivers/crypto/crypto_api/include/ |
| H A D | drvcrypt_asn1_oid.h | 1 /* SPDX-License-Identifier: BSD-2-Clause */ 30 * iso(1) member-body(2) 32 * joint-iso-itu-t(2) country(16) 68 * digestAlgorithm(2) 78 * iso(1) member-body(2) us(840) rsadsi(113549) digestAlgorithm(2) 5 81 * iso(1) identified-organization(3) oiw(14) secsig(3) algorithms(2) 26 84 * joint-iso-itu-t(2) country(16) us(840) organization(1) gov(101) 85 * csor(3) nistalgorithm(4) hashalgs(2) 4 88 * joint-iso-itu-t(2) country(16) us(840) organization(1) gov(101) 89 * csor(3) nistalgorithm(4) hashalgs(2) 1 [all …]
|
| /optee_os/core/lib/libtomcrypt/src/ciphers/aes/ |
| H A D | aes.c | 70 return (Te4_3[LTC_BYTE(temp, 2)]) ^ in setup_mix() 81 Td1(255 & Te4[LTC_BYTE(temp, 2)]) ^ in setup_mix2() 110 if (num_rounds != 0 && num_rounds != (10 + ((keylen/8)-2)*2)) { in SETUP() 114 skey->rijndael.Nr = 10 + ((keylen/8)-2)*2; in SETUP() 125 LOAD32H(rk[2], key + 8); in SETUP() 132 rk[6] = rk[2] ^ rk[5]; in SETUP() 150 rk[ 8] = rk[ 2] ^ rk[ 7]; in SETUP() 172 rk[10] = rk[ 2] ^ rk[ 9]; in SETUP() 211 temp = rrk[2]; in SETUP() 212 rk[2] = setup_mix2(temp); in SETUP() [all …]
|
| /optee_os/core/lib/libtomcrypt/src/pk/ecc/ |
| H A D | ecc_import_pkcs8.c | 80 /* Setup for CASE 2 */ in ecc_import_pkcs8() 92 * 0:d=0 hl=2 l= 100 cons: SEQUENCE in ecc_import_pkcs8() 93 * 2:d=1 hl=2 l= 1 prim: INTEGER :00 in ecc_import_pkcs8() 94 * 5:d=1 hl=2 l= 16 cons: SEQUENCE (== *seq) in ecc_import_pkcs8() 95 * 7:d=2 hl=2 l= 7 prim: OBJECT :id-ecPublicKey in ecc_import_pkcs8() 96 … * 16:d=2 hl=2 l= 5 prim: OBJECT :(== *curve_oid (e.g. secp256k1 (== 1.3.132.0.10))) in ecc_import_pkcs8() 97 * 23:d=1 hl=2 l= 77 prim: OCTET STRING :bytes (== *priv_key) in ecc_import_pkcs8() 106 /* CASE 2: explicit curve parameters (AKA long variant): in ecc_import_pkcs8() 108 * 3:d=1 hl=2 l= 1 prim: INTEGER :00 in ecc_import_pkcs8() 110 * 9:d=2 hl=2 l= 7 prim: OBJECT :id-ecPublicKey in ecc_import_pkcs8() [all …]
|
| /optee_os/lib/libutee/include/ |
| H A D | utee_syscalls_asm.S | 1 /* SPDX-License-Identifier: BSD-2-Clause */ 10 UTEE_SYSCALL _utee_log, TEE_SCN_LOG, 2 12 UTEE_SYSCALL __utee_panic, TEE_SCN_PANIC, 2 36 UTEE_SYSCALL _utee_get_time, TEE_SCN_GET_TIME, 2 42 UTEE_SYSCALL _utee_cryp_state_copy, TEE_SCN_CRYP_STATE_COPY, 2 58 UTEE_SYSCALL _utee_cryp_obj_get_info, TEE_SCN_CRYP_OBJ_GET_INFO, 2 61 TEE_SCN_CRYP_OBJ_RESTRICT_USAGE, 2 73 UTEE_SYSCALL _utee_cryp_obj_copy, TEE_SCN_CRYP_OBJ_COPY, 2 78 TEE_SCN_CRYP_RANDOM_NUMBER_GENERATE, 2 109 UTEE_SYSCALL _utee_storage_start_enum, TEE_SCN_STORAGE_ENUM_START, 2 [all …]
|
| /optee_os/core/arch/arm/include/crypto/ |
| H A D | ghash-ce-core.h | 1 /* SPDX-License-Identifier: BSD-2-Clause */ 12 uint64_t h[2]; 13 uint64_t h2[2]; 14 uint64_t h3[2]; 15 uint64_t h4[2]; 18 void pmull_ghash_update_p64(int blocks, uint64_t dg[2], const uint8_t *src, 21 void pmull_ghash_update_p8(int blocks, uint64_t dg[2], const uint8_t *src, 27 void pmull_gcm_encrypt(int blocks, uint64_t dg[2], uint8_t dst[], 34 void pmull_gcm_decrypt(int blocks, uint64_t dg[2], uint8_t dst[],
|
| /optee_os/lib/libutils/isoc/include/ |
| H A D | limits.h | 1 /* SPDX-License-Identifier: BSD-2-Clause */ 36 #define UCHAR_MAX (SCHAR_MAX * 2U + 1U) 38 #define UCHAR_MAX (SCHAR_MAX * 2 + 1) 42 #define USHRT_MAX (SHRT_MAX * 2U + 1U) 44 #define USHRT_MAX (SHRT_MAX * 2 + 1) 47 #define UINT_MAX (INT_MAX * 2U + 1U) 49 #define ULONG_MAX (LONG_MAX * 2UL + 1UL) 50 #define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
|
| /optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
| H A D | oid.h | 39 #define MBEDTLS_OID_X509_EXT_KEY_USAGE (1 << 2) 62 #define MBEDTLS_OID_ISO_MEMBER_BODIES "\x2a" /* {iso(1) member-body(2)} */ 64 #define MBEDTLS_OID_ISO_CCITT_DS "\x55" /* {joint-iso-ccitt(2) ds(5)} */ 65 #define MBEDTLS_OID_ISO_ITU_COUNTRY "\x60" /* {joint-iso-itu-t(2) country(16)}… 73 …MBEDTLS_OID_ORG_RSA_DATA_SECURITY /* {iso(1) member-body(2) us(840… 101 … /* {joint-iso-itu-t(2) country(16) us(840)… 104 … MBEDTLS_OID_ISO_ITU_US_ORG MBEDTLS_OID_ORG_GOV /* {joint-iso-itu-t(2) country(16) us(840)… 107 …ID_ISO_ITU_US_ORG MBEDTLS_OID_ORG_NETSCAPE /* Netscape OID {joint-iso-itu-t(2) country(16) us(840)… 110 …MBEDTLS_OID_ISO_CCITT_DS "\x1D" /**< id-ce OBJECT IDENTIFIER ::= {joint-iso-ccitt(2) ds(5) 29} */ 112 #define MBEDTLS_OID_NIST_ALG MBEDTLS_OID_GOV "\x03\x04" /** { joint-iso-itu-t(2)… [all …]
|
| /optee_os/core/pta/tests/ |
| H A D | invoke.c | 1 // SPDX-License-Identifier: BSD-2-Clause 99 * Case 2: command parameters type are: 3 input value, 1 output value 112 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_NONE) && in test_entry_params() 120 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_NONE) && in test_entry_params() 128 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_VALUE_INOUT) && in test_entry_params() 130 p[2].value.a = p[2].value.a + p[2].value.b; in test_entry_params() 136 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_NONE) && in test_entry_params() 142 /* case 2a: 3 input value arguments, 1 output value argument */ in test_entry_params() 145 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_VALUE_INPUT) && in test_entry_params() 147 p[0].value.a = p[1].value.a + p[2].value.a + p[3].value.a; in test_entry_params() [all …]
|
| /optee_os/core/include/drivers/sam/ |
| H A D | at91_ddr.h | 1 /* SPDX-License-Identifier: BSD-2-Clause */ 18 #define AT91_DDRSDRC_MODE_PRECHARGE 2 35 #define AT91_DDRSDRC_NC_SDR10 SHIFT_U32(2, 0) 39 #define AT91_DDRSDRC_NC_DDR11 SHIFT_U32(2, 0) 42 #define AT91_DDRSDRC_NR SHIFT_U32(3, 2) 43 #define AT91_DDRSDRC_NR_11 SHIFT_U32(0, 2) 44 #define AT91_DDRSDRC_NR_12 BIT(2) 45 #define AT91_DDRSDRC_NR_13 SHIFT_U32(2, 2) 46 #define AT91_DDRSDRC_NR_14 SHIFT_U32(3, 2) 49 #define AT91_DDRSDRC_CAS_2 SHIFT_U32(2, 4) [all …]
|