| /optee_os/core/lib/libtomcrypt/src/hashes/whirl/ |
| H A D | whirltab.c | 80 #define SB0(x) sbox0[x] argument 81 #define SB1(x) ROR64c(sbox0[x], 8) argument 82 #define SB2(x) ROR64c(sbox0[x], 16) argument 83 #define SB3(x) ROR64c(sbox0[x], 24) argument 84 #define SB4(x) ROR64c(sbox0[x], 32) argument 85 #define SB5(x) ROR64c(sbox0[x], 40) argument 86 #define SB6(x) ROR64c(sbox0[x], 48) argument 87 #define SB7(x) ROR64c(sbox0[x], 56) argument 91 #define SB0(x) sbox0[x] argument 92 #define SB1(x) sbox1[x] argument [all …]
|
| /optee_os/core/lib/libtomcrypt/src/headers/ |
| H A D | tomcrypt_argchk.h | 13 #define LTC_ARGCHK(x) do { if (!(x)) { crypt_argchk(#x, __FILE__, __LINE__); } }while(0) argument 14 #define LTC_ARGCHKVD(x) do { if (!(x)) { crypt_argchk(#x, __FILE__, __LINE__); } }while(0) argument 19 #define LTC_ARGCHK(x) assert((x)) argument 20 #define LTC_ARGCHKVD(x) LTC_ARGCHK(x) argument 24 #define LTC_ARGCHK(x) if (!(x)) { fprintf(stderr, "\nwarning: ARGCHK failed at %s:%d\n", __FILE__, … argument 25 #define LTC_ARGCHKVD(x) LTC_ARGCHK(x) argument 29 #define LTC_ARGCHK(x) LTC_UNUSED_PARAM(x) argument 30 #define LTC_ARGCHKVD(x) LTC_ARGCHK(x) argument 34 #define LTC_ARGCHK(x) if (!(x)) return CRYPT_INVALID_ARG; argument 35 #define LTC_ARGCHKVD(x) if (!(x)) return; argument
|
| H A D | tomcrypt_macros.h | 12 #define STORE32L(x, y) \ argument 16 #define LOAD32L(x, y) \ argument 22 #define STORE64L(x, y) \ argument 28 #define LOAD64L(x, y) \ argument 34 #define STORE32H(x, y) \ argument 38 #define LOAD32H(x, y) \ argument 44 #define STORE64H(x, y) \ argument 50 #define LOAD64H(x, y) \ argument 61 #define STORE32H(x, y) \ argument 65 #define LOAD32H(x, y) \ argument [all …]
|
| /optee_os/core/lib/libtomcrypt/src/ciphers/aes/ |
| H A D | aes_tab.c | 300 #define Te0(x) TE0[x] argument 301 #define Te1(x) RORc(TE0[x], 8) argument 302 #define Te2(x) RORc(TE0[x], 16) argument 303 #define Te3(x) RORc(TE0[x], 24) argument 305 #define Td0(x) TD0[x] argument 306 #define Td1(x) RORc(TD0[x], 8) argument 307 #define Td2(x) RORc(TD0[x], 16) argument 308 #define Td3(x) RORc(TD0[x], 24) argument 317 #define Te0(x) TE0[x] argument 318 #define Te1(x) TE1[x] argument [all …]
|
| /optee_os/core/lib/libfdt/include/ |
| H A D | libfdt_env.h | 29 #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) argument 30 #define CPU_TO_FDT16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1)) argument 31 #define CPU_TO_FDT32(x) ((EXTRACT_BYTE(x, 0) << 24) | (EXTRACT_BYTE(x, 1) << 16) | \ argument 33 #define CPU_TO_FDT64(x) ((EXTRACT_BYTE(x, 0) << 56) | (EXTRACT_BYTE(x, 1) << 48) | \ argument 38 static inline uint16_t fdt16_to_cpu(fdt16_t x) in fdt16_to_cpu() 42 static inline fdt16_t cpu_to_fdt16(uint16_t x) in cpu_to_fdt16() 47 static inline uint32_t fdt32_to_cpu(fdt32_t x) in fdt32_to_cpu() 51 static inline fdt32_t cpu_to_fdt32(uint32_t x) in cpu_to_fdt32() 56 static inline uint64_t fdt64_to_cpu(fdt64_t x) in fdt64_to_cpu() 60 static inline fdt64_t cpu_to_fdt64(uint64_t x) in cpu_to_fdt64()
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | common.h | 209 uint8x16_t x = veorq_u8(v1, v2); in mbedtls_xor() local 226 uint64_t x = mbedtls_get_unaligned_uint64(a + i) ^ mbedtls_get_unaligned_uint64(b + i); in mbedtls_xor() local 236 uint32_t x = mbedtls_get_unaligned_uint32(a + i) ^ mbedtls_get_unaligned_uint32(b + i); in mbedtls_xor() local 290 uint64_t x = mbedtls_get_unaligned_uint64(a + i) ^ mbedtls_get_unaligned_uint64(b + i); in mbedtls_xor_no_simd() local 304 uint32_t x = mbedtls_get_unaligned_uint32(a + i) ^ mbedtls_get_unaligned_uint32(b + i); in mbedtls_xor_no_simd() local 383 #define MBEDTLS_HAS_BUILTIN(x) __has_builtin(x) argument 385 #define MBEDTLS_HAS_BUILTIN(x) 0 argument 390 #define MBEDTLS_LIKELY(x) __builtin_expect(!!(x), 1) argument 391 #define MBEDTLS_UNLIKELY(x) __builtin_expect(!!(x), 0) argument 393 #define MBEDTLS_LIKELY(x) x argument [all …]
|
| H A D | constant_time_impl.h | 85 static inline mbedtls_ct_uint_t mbedtls_ct_compiler_opaque(mbedtls_ct_uint_t x) in mbedtls_ct_compiler_opaque() 120 static inline mbedtls_ct_condition_t mbedtls_ct_bool(mbedtls_ct_uint_t x) in mbedtls_ct_bool() 271 static inline mbedtls_ct_condition_t mbedtls_ct_uint_lt(mbedtls_ct_uint_t x, mbedtls_ct_uint_t y) in mbedtls_ct_uint_lt() 382 static inline mbedtls_ct_condition_t mbedtls_ct_uint_ne(mbedtls_ct_uint_t x, mbedtls_ct_uint_t y) in mbedtls_ct_uint_ne() 489 static inline mbedtls_ct_condition_t mbedtls_ct_uint_eq(mbedtls_ct_uint_t x, in mbedtls_ct_uint_eq() 495 static inline mbedtls_ct_condition_t mbedtls_ct_uint_gt(mbedtls_ct_uint_t x, in mbedtls_ct_uint_gt() 501 static inline mbedtls_ct_condition_t mbedtls_ct_uint_ge(mbedtls_ct_uint_t x, in mbedtls_ct_uint_ge() 507 static inline mbedtls_ct_condition_t mbedtls_ct_uint_le(mbedtls_ct_uint_t x, in mbedtls_ct_uint_le() 513 static inline mbedtls_ct_condition_t mbedtls_ct_bool_ne(mbedtls_ct_condition_t x, in mbedtls_ct_bool_ne() 519 static inline mbedtls_ct_condition_t mbedtls_ct_bool_and(mbedtls_ct_condition_t x, in mbedtls_ct_bool_and() [all …]
|
| H A D | alignment.h | 87 uint16_t x; member 90 uint32_t x; member 93 uint64_t x; member 142 static inline void mbedtls_put_unaligned_uint16(void *p, uint16_t x) in mbedtls_put_unaligned_uint16() 194 static inline void mbedtls_put_unaligned_uint32(void *p, uint32_t x) in mbedtls_put_unaligned_uint32() 246 static inline void mbedtls_put_unaligned_uint64(void *p, uint64_t x) in mbedtls_put_unaligned_uint64() 268 #define MBEDTLS_BYTE_0(x) ((uint8_t) ((x) & 0xff)) argument 269 #define MBEDTLS_BYTE_1(x) ((uint8_t) (((x) >> 8) & 0xff)) argument 270 #define MBEDTLS_BYTE_2(x) ((uint8_t) (((x) >> 16) & 0xff)) argument 271 #define MBEDTLS_BYTE_3(x) ((uint8_t) (((x) >> 24) & 0xff)) argument [all …]
|
| /optee_os/core/include/dt-bindings/firewall/ |
| H A D | stm32mp25-rif.h | 65 #define RIF_EXTI1_RESOURCE(x) (x) argument 67 #define RIF_EXTI2_RESOURCE(x) (x) argument 69 #define RIF_FMC_CTRL(x) (x) argument 71 #define RIF_IOPORT_PIN(x) (x) argument 73 #define RIF_HPDMA_CHANNEL(x) (x) argument 75 #define RIF_IPCC_CPU1_CHANNEL(x) ((x) - 1) argument 77 #define RIF_IPCC_CPU2_CHANNEL(x) (((x) - 1) + 16) argument 79 #define RIF_PWR_RESOURCE(x) (x) argument 81 #define RIF_HSEM_RESOURCE(x) (x) argument 84 #define RIF_PWR_RESOURCE_WIO(x) ((x) + 6) argument [all …]
|
| /optee_os/core/include/drivers/ |
| H A D | ls_dspi.h | 16 #define DSPI_CTAR_FMSZ(x) (((x) & 0x0F) << 27) /* Frame Size [1-4] */ argument 20 #define DSPI_CTAR_PCS_SCK(x) (((x) & 0x03) << 22) /* PCSSCK [8-9] */ argument 21 #define DSPI_CTAR_PA_SCK(x) (((x) & 0x03) << 20) /* PASC [10-11] */ argument 22 #define DSPI_CTAR_P_DT(x) (((x) & 0x03) << 18) /* PDT [12-13] */ argument 23 #define DSPI_CTAR_BRP(x) \ argument 25 #define DSPI_CTAR_CS_SCK(x) (((x) & 0x0F) << 12) /* CSSCK [16-19] */ argument 26 #define DSPI_CTAR_A_SCK(x) (((x) & 0x0F) << 8) /* ASC [20-23] */ argument 27 #define DSPI_CTAR_A_DT(x) (((x) & 0x0F) << 4) /* DT [24-27] */ argument 28 #define DSPI_CTAR_BR(x) ((x) & 0x0F) /* Baud Rate Scaler [28-31] */ argument
|
| H A D | atmel_shdwc.h | 27 #define AT91_SHDW_WKUPDBC(x) (SHIFT_U32((x), AT91_SHDW_WKUPDBC_SHIFT) & \ argument 36 #define AT91_SHDW_WKUPIS(x) (BIT32((x) + AT91_SHDW_WKUPIS_SHIFT)) argument 41 #define AT91_SHDW_WKUPEN(x) (BIT32(x) & AT91_SHDW_WKUPEN_MASK) argument 44 #define AT91_SHDW_WKUPT(x) (BIT32((x) + AT91_SHDW_WKUPT_SHIFT)) argument
|
| /optee_os/core/lib/libtomcrypt/src/hashes/sha2/ |
| H A D | sha512.c | 75 #define Ch(x,y,z) (z ^ (x & (y ^ z))) argument 76 #define Maj(x,y,z) (((x | y) & z) | (x & y)) argument 77 #define S(x, n) ROR64c(x, n) argument 78 #define R(x, n) (((x)&CONST64(0xFFFFFFFFFFFFFFFF))>>((ulong64)n)) argument 79 #define Sigma0(x) (S(x, 28) ^ S(x, 34) ^ S(x, 39)) argument 80 #define Sigma1(x) (S(x, 14) ^ S(x, 18) ^ S(x, 41)) argument 81 #define Gamma0(x) (S(x, 1) ^ S(x, 8) ^ R(x, 7)) argument 82 #define Gamma1(x) (S(x, 19) ^ S(x, 61) ^ R(x, 6)) argument
|
| H A D | sha256.c | 50 #define Ch(x,y,z) (z ^ (x & (y ^ z))) argument 51 #define Maj(x,y,z) (((x | y) & z) | (x & y)) argument 52 #define S(x, n) RORc((x),(n)) argument 53 #define R(x, n) (((x)&0xFFFFFFFFUL)>>(n)) argument 54 #define Sigma0(x) (S(x, 2) ^ S(x, 13) ^ S(x, 22)) argument 55 #define Sigma1(x) (S(x, 6) ^ S(x, 11) ^ S(x, 25)) argument 56 #define Gamma0(x) (S(x, 7) ^ S(x, 18) ^ R(x, 3)) argument 57 #define Gamma1(x) (S(x, 17) ^ S(x, 19) ^ R(x, 10)) argument
|
| /optee_os/lib/libutee/include/ |
| H A D | utee_defines.h | 273 #define TEE_U64_BSWAP(x) __compiler_bswap64((x)) argument 275 #define TEE_U64_BSWAP(x) ((uint64_t)( \ argument 287 #define TEE_U32_BSWAP(x) __compiler_bswap32((x)) argument 289 #define TEE_U32_BSWAP(x) ((uint32_t)( \ argument 297 #define TEE_U16_BSWAP(x) __compiler_bswap16((x)) argument 299 #define TEE_U16_BSWAP(x) ((uint16_t)( \ argument 305 #define TEE_U64_FROM_LITTLE_ENDIAN(x) ((uint64_t)(x)) argument 306 #define TEE_U32_FROM_LITTLE_ENDIAN(x) ((uint32_t)(x)) argument 307 #define TEE_U16_FROM_LITTLE_ENDIAN(x) ((uint16_t)(x)) argument 308 #define TEE_U64_TO_LITTLE_ENDIAN(x) ((uint64_t)(x)) argument [all …]
|
| /optee_os/core/lib/libtomcrypt/src/hashes/ |
| H A D | rmd128.c | 37 #define F(x, y, z) ((x) ^ (y) ^ (z)) argument 38 #define G(x, y, z) (((x) & (y)) | (~(x) & (z))) argument 39 #define H(x, y, z) (((x) | ~(y)) ^ (z)) argument 40 #define I(x, y, z) (((x) & (z)) | ((y) & ~(z))) argument 43 #define FF(a, b, c, d, x, s) \ argument 47 #define GG(a, b, c, d, x, s) \ argument 51 #define HH(a, b, c, d, x, s) \ argument 55 #define II(a, b, c, d, x, s) \ argument 59 #define FFF(a, b, c, d, x, s) \ argument 63 #define GGG(a, b, c, d, x, s) \ argument [all …]
|
| H A D | rmd256.c | 31 #define F(x, y, z) ((x) ^ (y) ^ (z)) argument 32 #define G(x, y, z) (((x) & (y)) | (~(x) & (z))) argument 33 #define H(x, y, z) (((x) | ~(y)) ^ (z)) argument 34 #define I(x, y, z) (((x) & (z)) | ((y) & ~(z))) argument 37 #define FF(a, b, c, d, x, s) \ argument 41 #define GG(a, b, c, d, x, s) \ argument 45 #define HH(a, b, c, d, x, s) \ argument 49 #define II(a, b, c, d, x, s) \ argument 53 #define FFF(a, b, c, d, x, s) \ argument 57 #define GGG(a, b, c, d, x, s) \ argument [all …]
|
| H A D | rmd160.c | 37 #define F(x, y, z) ((x) ^ (y) ^ (z)) argument 38 #define G(x, y, z) (((x) & (y)) | (~(x) & (z))) argument 39 #define H(x, y, z) (((x) | ~(y)) ^ (z)) argument 40 #define I(x, y, z) (((x) & (z)) | ((y) & ~(z))) argument 41 #define J(x, y, z) ((x) ^ ((y) | ~(z))) argument 44 #define FF(a, b, c, d, e, x, s) \ argument 49 #define GG(a, b, c, d, e, x, s) \ argument 54 #define HH(a, b, c, d, e, x, s) \ argument 59 #define II(a, b, c, d, e, x, s) \ argument 64 #define JJ(a, b, c, d, e, x, s) \ argument [all …]
|
| H A D | rmd320.c | 32 #define F(x, y, z) ((x) ^ (y) ^ (z)) argument 33 #define G(x, y, z) (((x) & (y)) | (~(x) & (z))) argument 34 #define H(x, y, z) (((x) | ~(y)) ^ (z)) argument 35 #define I(x, y, z) (((x) & (z)) | ((y) & ~(z))) argument 36 #define J(x, y, z) ((x) ^ ((y) | ~(z))) argument 39 #define FF(a, b, c, d, e, x, s) \ argument 44 #define GG(a, b, c, d, e, x, s) \ argument 49 #define HH(a, b, c, d, e, x, s) \ argument 54 #define II(a, b, c, d, e, x, s) \ argument 59 #define JJ(a, b, c, d, e, x, s) \ argument [all …]
|
| H A D | md4.c | 44 #define F(x, y, z) (z ^ (x & (y ^ z))) argument 45 #define G(x, y, z) ((x & y) | (z & (x | y))) argument 46 #define H(x, y, z) ((x) ^ (y) ^ (z)) argument 49 #define ROTATE_LEFT(x, n) ROLc(x, n) argument 54 #define FF(a, b, c, d, x, s) { \ argument 58 #define GG(a, b, c, d, x, s) { \ argument 62 #define HH(a, b, c, d, x, s) { \ argument 73 ulong32 x[16], a, b, c, d; in ss_md4_compress() local
|
| /optee_os/lib/libutils/ext/include/ |
| H A D | util.h | 49 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) argument 54 #define ROUNDUP(x, y) \ argument 121 #define ROUNDUP2_DIV(x, y) \ argument 136 #define ROUNDUP_DIV(x, y) (ROUNDUP((x), (y)) / (__typeof__(x))(y)) argument 139 #define ROUNDDOWN(x, y) (((x) / (__typeof__(x))(y)) * (__typeof__(x))(y)) argument 152 #define DIV_ROUND_UP(x, y) (((x) + (y) - 1) / (y)) argument 155 #define UDIV_ROUND_NEAREST(x, y) \ argument 160 #define ROUNDUP(x, y) ((((x) + (y) - 1) / (y)) * (y)) argument 161 #define ROUNDDOWN(x, y) (((x) / (y)) * (y)) argument 162 #define UDIV_ROUND_NEAREST(x, y) (((x) + ((y) / 2)) / (y)) argument [all …]
|
| /optee_os/core/include/kernel/ |
| H A D | tee_misc.h | 14 #define TEE_B2HS_HSBUF_SIZE(x) ((x) * 2 + 1) argument 15 #define TEE_HS2B_BBUF_SIZE(x) ((x + 1) >> 1) argument
|
| /optee_os/lib/libutils/isoc/arch/arm/ |
| H A D | setjmp_a32.S | 44 #define SYM(x) CONCAT (__USER_LABEL_PREFIX__, x) argument 47 #define TYPE(x) .type SYM(x),function argument 48 #define SIZE(x) .size SYM(x), . - SYM(x) argument 50 #define TYPE(x) argument 51 #define SIZE(x) argument
|
| /optee_os/core/lib/libtomcrypt/src/pk/asn1/der/printable_string/ |
| H A D | der_length_printable_string.c | 93 int x; in der_printable_char_encode() local 104 int x; in der_printable_value_decode() local 122 unsigned long x; in der_length_printable_string() local
|
| /optee_os/core/lib/libtomcrypt/src/pk/asn1/der/teletex_string/ |
| H A D | der_length_teletex_string.c | 137 int x; in der_teletex_char_encode() local 148 int x; in der_teletex_value_decode() local 166 unsigned long x; in der_length_teletex_string() local
|
| /optee_os/core/lib/libtomcrypt/src/pk/asn1/der/ia5/ |
| H A D | der_length_ia5_string.c | 121 int x; in der_ia5_char_encode() local 132 int x; in der_ia5_value_decode() local 150 unsigned long x; in der_length_ia5_string() local
|