/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/whirl/ |
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 91 #define SB0(x) sbox0[x] argument 92 #define SB1(x) sbox1[x] argument 93 #define SB2(x) sbox2[x] argument 94 #define SB3(x) sbox3[x] argument 95 #define SB4(x) sbox4[x] argument 96 #define SB5(x) sbox5[x] argument 97 #define SB6(x) sbox6[x] argument [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/ |
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
|
A D | tomcrypt_macros.h | 137 #define STORE32L(x, y) \ argument 243 #define ROR(x,n) _rotr(x,n) argument 244 #define ROL(x,n) _rotl(x,n) argument 245 #define RORc(x,n) ROR(x,n) argument 246 #define ROLc(x,n) ROL(x,n) argument 253 #define ROLc(x,n) ROL(x,n) argument 254 #define RORc(x,n) ROR(x,n) argument 421 #define ROL64(x, y) \ argument 425 #define ROR64(x, y) \ argument 429 #define ROL64c(x, y) \ argument [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/aes/ |
A D | aes_tab.c | 300 #define Te0(x) TE0[x] argument 301 #define Te1(x) RORc(TE0[x], 8) argument 305 #define Td0(x) TD0[x] argument 317 #define Te0(x) TE0[x] argument 318 #define Te1(x) TE1[x] argument 319 #define Te2(x) TE2[x] argument 320 #define Te3(x) TE3[x] argument 322 #define Td0(x) TD0[x] argument 323 #define Td1(x) TD1[x] argument 324 #define Td2(x) TD2[x] argument [all …]
|
/optee_os-3.20.0/core/lib/libfdt/include/ |
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-3.20.0/core/include/drivers/ |
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
|
A D | atmel_shdwc.h | 27 #define AT91_SHDW_WKUPDBC(x) (SHIFT_U32((x), AT91_SHDW_WKUPDBC_SHIFT) & \ argument 35 #define AT91_SHDW_WKUPIS(x) (BIT32((x) + AT91_SHDW_WKUPIS_SHIFT)) argument 40 #define AT91_SHDW_WKUPEN(x) (BIT32(x) & AT91_SHDW_WKUPEN_MASK) argument 43 #define AT91_SHDW_WKUPT(x) (BIT32((x) + AT91_SHDW_WKUPT_SHIFT)) argument
|
A D | gic.h | 23 #define GIC_SGI(x) (x) argument 24 #define GIC_PPI(x) ((x) + GIC_PPI_BASE) argument 25 #define GIC_SPI(x) ((x) + GIC_SPI_BASE) argument
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/sha2/ |
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
|
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-3.20.0/core/lib/libtomcrypt/src/hashes/ |
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 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 67 #define HHH(a, b, c, d, x, s) \ argument [all …]
|
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 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 61 #define HHH(a, b, c, d, x, s) \ argument [all …]
|
A D | rmd160.c | 37 #define F(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 69 #define FFF(a, b, c, d, e, x, s) \ argument 74 #define GGG(a, b, c, d, e, x, s) \ argument 79 #define HHH(a, b, c, d, e, x, s) \ argument 84 #define III(a, b, c, d, e, x, s) \ argument [all …]
|
A D | rmd320.c | 32 #define F(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 64 #define FFF(a, b, c, d, e, x, s) \ argument 69 #define GGG(a, b, c, d, e, x, s) \ argument 74 #define HHH(a, b, c, d, e, x, s) \ argument 79 #define III(a, b, c, d, e, x, s) \ argument [all …]
|
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-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | common.h | 60 #define MBEDTLS_BYTE_0( x ) ( (uint8_t) ( ( x ) & 0xff ) ) argument 61 #define MBEDTLS_BYTE_1( x ) ( (uint8_t) ( ( ( x ) >> 8 ) & 0xff ) ) argument 62 #define MBEDTLS_BYTE_2( x ) ( (uint8_t) ( ( ( x ) >> 16 ) & 0xff ) ) argument 63 #define MBEDTLS_BYTE_3( x ) ( (uint8_t) ( ( ( x ) >> 24 ) & 0xff ) ) argument 64 #define MBEDTLS_BYTE_4( x ) ( (uint8_t) ( ( ( x ) >> 32 ) & 0xff ) ) argument 65 #define MBEDTLS_BYTE_5( x ) ( (uint8_t) ( ( ( x ) >> 40 ) & 0xff ) ) argument 66 #define MBEDTLS_BYTE_6( x ) ( (uint8_t) ( ( ( x ) >> 48 ) & 0xff ) ) argument 67 #define MBEDTLS_BYTE_7( x ) ( (uint8_t) ( ( ( x ) >> 56 ) & 0xff ) ) argument
|
/optee_os-3.20.0/lib/libutils/isoc/arch/arm/ |
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-3.20.0/core/include/kernel/ |
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-3.20.0/lib/libutils/isoc/ |
A D | bget.h | 23 #define _(x) x /* If compiler knows prototypes */ argument 25 #define _(x) () /* It it doesn't */ argument
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/printable_string/ |
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-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/teletex_string/ |
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-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/ia5/ |
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
|
/optee_os-3.20.0/lib/libutils/ext/include/ |
A D | util.h | 44 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) argument 68 #define ROUNDUP_DIV(x, y) (__extension__({ \ argument 82 #define DIV_ROUND_UP(x, y) (((x) + (y) - 1) / (y)) argument 85 #define UDIV_ROUND_NEAREST(x, y) \ argument 91 #define ROUNDDOWN(x, y) (((x) / (y)) * (y)) argument 98 #define IS_ALIGNED(x, a) (((x) & ((a) - 1)) == 0) argument 99 #define IS_ALIGNED_WITH_TYPE(x, type) \ argument 105 #define TO_STR(x) _TO_STR(x) argument 106 #define _TO_STR(x) #x argument 108 #define CONCAT(x, y) _CONCAT(x, y) argument [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/ |
A D | idea.c | 38 #define LOW16(x) ((x)&0xffff) /* compiler should be able to optimize this away if x is 16 bits… argument 39 #define HIGH16(x) ((x)>>16) argument 49 #define STORE16(x,y) { (y)[0] = (unsigned char)(((x)>>8)&255); (y)[1] = (unsigned char)((x)&255); } argument 50 #define LOAD16(x,y) { x = ((ushort16)((y)[0] & 255)<<8) | ((ushort16)((y)[1] & 255)); } argument 52 static ushort16 s_mul_inv(ushort16 x) in s_mul_inv() 64 static ushort16 s_add_inv(ushort16 x) in s_add_inv()
|
/optee_os-3.20.0/lib/libutee/include/ |
A D | utee_defines.h | 235 #define TEE_U64_BSWAP(x) __compiler_bswap64((x)) argument 237 #define TEE_U64_BSWAP(x) ((uint64_t)( \ argument 249 #define TEE_U32_BSWAP(x) __compiler_bswap32((x)) argument 251 #define TEE_U32_BSWAP(x) ((uint32_t)( \ argument 259 #define TEE_U16_BSWAP(x) __compiler_bswap16((x)) argument 261 #define TEE_U16_BSWAP(x) ((uint16_t)( \ argument 267 #define TEE_U64_FROM_BIG_ENDIAN(x) TEE_U64_BSWAP(x) argument 268 #define TEE_U32_FROM_BIG_ENDIAN(x) TEE_U32_BSWAP(x) argument 269 #define TEE_U16_FROM_BIG_ENDIAN(x) TEE_U16_BSWAP(x) argument 270 #define TEE_U64_TO_BIG_ENDIAN(x) TEE_U64_BSWAP(x) argument [all …]
|