/optee_os/core/lib/libtomcrypt/src/ciphers/safer/ |
A D | saferp.c | 87 #define PHT(b) do { \ argument 130 #define LT(b, b2) do { \ argument 138 #define iLT(b, b2) do { \ argument 157 static void _lt(unsigned char *b, unsigned char *b2) in _lt() 162 static void _ilt(unsigned char *b, unsigned char *b2) in _ilt() 168 #define ROUND(b, i) _round(b, i, skey) argument 171 #define iROUND(b, i) _iround(b, i, skey) argument 174 #define LT(b, b2) _lt(b, b2) argument 177 #define iLT(b, b2) _ilt(b, b2) argument 344 unsigned char b[16]; in saferp_ecb_encrypt() local [all …]
|
/optee_os/core/lib/libtomcrypt/src/math/ |
A D | ltm_desc.c | 67 static int neg(void *a, void *b) in neg() 74 static int copy(void *a, void *b) in copy() 81 static int init_copy(void **a, void *b) in init_copy() 90 static int set_int(void *a, ltc_mp_digit b) in set_int() 127 static int compare(void *a, void *b) in compare() 215 static int add(void *a, void *b, void *c) in add() 231 static int sub(void *a, void *b, void *c) in sub() 247 static int mul(void *a, void *b, void *c) in mul() 263 static int sqr(void *a, void *b) in sqr() 287 static int div_2(void *a, void *b) in div_2() [all …]
|
A D | gmp_desc.c | 38 static int neg(void *a, void *b) in neg() 46 static int copy(void *a, void *b) in copy() 54 static int init_copy(void **a, void *b) in init_copy() 63 static int set_int(void *a, ltc_mp_digit b) in set_int() 88 static int compare(void *a, void *b) in compare() 228 static int add(void *a, void *b, void *c) in add() 246 static int sub(void *a, void *b, void *c) in sub() 264 static int mul(void *a, void *b, void *c) in mul() 282 static int sqr(void *a, void *b) in sqr() 423 static int div_2(void *a, void *b) in div_2() [all …]
|
A D | tfm_desc.c | 61 static int neg(void *a, void *b) in neg() 69 static int copy(void *a, void *b) in copy() 77 static int init_copy(void **a, void *b) in init_copy() 86 static int set_int(void *a, ltc_mp_digit b) in set_int() 117 static int compare(void *a, void *b) in compare() 207 static int add(void *a, void *b, void *c) in add() 225 static int sub(void *a, void *b, void *c) in sub() 243 static int mul(void *a, void *b, void *c) in mul() 261 static int sqr(void *a, void *b) in sqr() 279 static int div_2(void *a, void *b) in div_2() [all …]
|
/optee_os/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_private.h | 162 #define mp_neg(a, b) ltc_mp.neg(a, b) argument 163 #define mp_copy(a, b) ltc_mp.copy(a, b) argument 165 #define mp_set(a, b) ltc_mp.set_int(a, b) argument 182 #define mp_add(a, b, c) ltc_mp.add(a, b, c) argument 184 #define mp_sub(a, b, c) ltc_mp.sub(a, b, c) argument 186 #define mp_mul(a, b, c) ltc_mp.mul(a, b, c) argument 188 #define mp_sqr(a, b) ltc_mp.sqr(a, b) argument 191 #define mp_div_2(a, b) ltc_mp.div_2(a, b) argument 194 #define mp_gcd(a, b, c) ltc_mp.gcd(a, b, c) argument 195 #define mp_lcm(a, b, c) ltc_mp.lcm(a, b, c) argument [all …]
|
/optee_os/lib/libutils/isoc/arch/arm/ |
A D | arm32_aeabi_softfloat.c | 110 int __aeabi_dcmpeq(aeabi_double_t a, aeabi_double_t b) in __aeabi_dcmpeq() 115 int __aeabi_dcmplt(aeabi_double_t a, aeabi_double_t b) in __aeabi_dcmplt() 120 int __aeabi_dcmple(aeabi_double_t a, aeabi_double_t b) in __aeabi_dcmple() 125 int __aeabi_dcmpge(aeabi_double_t a, aeabi_double_t b) in __aeabi_dcmpge() 130 int __aeabi_dcmpgt(aeabi_double_t a, aeabi_double_t b) in __aeabi_dcmpgt() 140 aeabi_float_t __aeabi_fadd(aeabi_float_t a, aeabi_float_t b) in __aeabi_fadd() 170 int __aeabi_fcmpeq(aeabi_float_t a, aeabi_float_t b) in __aeabi_fcmpeq() 175 int __aeabi_fcmplt(aeabi_float_t a, aeabi_float_t b) in __aeabi_fcmplt() 180 int __aeabi_fcmple(aeabi_float_t a, aeabi_float_t b) in __aeabi_fcmple() 185 int __aeabi_fcmpge(aeabi_float_t a, aeabi_float_t b) in __aeabi_fcmpge() [all …]
|
/optee_os/core/lib/libtomcrypt/ |
A D | mpi_desc.c | 86 static int neg(void *a, void *b) in neg() 94 static int copy(void *a, void *b) in copy() 101 static int init_copy(void **a, void *b) in init_copy() 110 static int set_int(void *a, ltc_mp_digit b) in set_int() 153 static int compare(void *a, void *b) in compare() 270 static int add(void *a, void *b, void *c) in add() 292 static int sub(void *a, void *b, void *c) in sub() 314 static int mul(void *a, void *b, void *c) in mul() 334 static int sqr(void *a, void *b) in sqr() 352 static int div_2(void *a, void *b) in div_2() [all …]
|
/optee_os/core/kernel/ |
A D | tee_misc.c | 34 uint32_t tee_b2hs(uint8_t *b, uint8_t *hs, uint32_t blen, uint32_t hslen) in tee_b2hs() 50 uint32_t tee_hs2b(uint8_t *hs, uint8_t *b, uint32_t hslen, uint32_t blen) in tee_hs2b() 71 static bool is_valid_conf_and_notnull_size(paddr_t b, paddr_size_t bl, in is_valid_conf_and_notnull_size() 84 bool core_is_buffer_inside(paddr_t b, paddr_size_t bl, in core_is_buffer_inside() 97 bool core_is_buffer_outside(paddr_t b, paddr_size_t bl, in core_is_buffer_outside() 110 bool core_is_buffer_intersect(paddr_t b, paddr_size_t bl, in core_is_buffer_intersect()
|
/optee_os/lib/libutils/ext/include/ |
A D | compiler.h | 28 #define __printf(a, b) __attribute__((format(printf, a, b))) argument 81 #define __compiler_add_overflow(a, b, res) \ argument 84 #define __compiler_sub_overflow(a, b, res) \ argument 87 #define __compiler_mul_overflow(a, b, res) \ argument 103 #define __INTOF_ADD(c, a, b) (__extension__({ \ argument 141 #define __INTOF_SUB(c, a, b) (__extension__({ \ argument 220 #define __INTOF_MUL(c, a, b) (__extension__({ \ argument 238 #define __compiler_add_overflow(a, b, res) __INTOF_ADD(*(res), (a), (b)) argument 239 #define __compiler_sub_overflow(a, b, res) __INTOF_SUB(*(res), (a), (b)) argument 240 #define __compiler_mul_overflow(a, b, res) __INTOF_MUL(*(res), (a), (b)) argument
|
A D | util.h | 20 #define MAX(a, b) \ argument 25 #define MIN(a, b) \ argument 30 #define MAX(a, b) (((a) > (b)) ? (a) : (b)) argument 31 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) argument 40 #define MAX_UNSAFE(a, b) (((a) > (b)) ? (a) : (b)) argument 41 #define MIN_UNSAFE(a, b) (((a) < (b)) ? (a) : (b)) argument 150 #define ADD_OVERFLOW(a, b, res) __compiler_add_overflow((a), (b), (res)) argument 151 #define SUB_OVERFLOW(a, b, res) __compiler_sub_overflow((a), (b), (res)) argument 152 #define MUL_OVERFLOW(a, b, res) __compiler_mul_overflow((a), (b), (res)) argument 155 #define CMP_TRILEAN(a, b) \ argument
|
/optee_os/out/arm/export-ta_arm32/include/ |
A D | compiler.h | 28 #define __printf(a, b) __attribute__((format(printf, a, b))) argument 81 #define __compiler_add_overflow(a, b, res) \ argument 84 #define __compiler_sub_overflow(a, b, res) \ argument 87 #define __compiler_mul_overflow(a, b, res) \ argument 103 #define __INTOF_ADD(c, a, b) (__extension__({ \ argument 141 #define __INTOF_SUB(c, a, b) (__extension__({ \ argument 220 #define __INTOF_MUL(c, a, b) (__extension__({ \ argument 238 #define __compiler_add_overflow(a, b, res) __INTOF_ADD(*(res), (a), (b)) argument 239 #define __compiler_sub_overflow(a, b, res) __INTOF_SUB(*(res), (a), (b)) argument 240 #define __compiler_mul_overflow(a, b, res) __INTOF_MUL(*(res), (a), (b)) argument
|
A D | util.h | 20 #define MAX(a, b) \ argument 25 #define MIN(a, b) \ argument 30 #define MAX(a, b) (((a) > (b)) ? (a) : (b)) argument 31 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) argument 40 #define MAX_UNSAFE(a, b) (((a) > (b)) ? (a) : (b)) argument 41 #define MIN_UNSAFE(a, b) (((a) < (b)) ? (a) : (b)) argument 150 #define ADD_OVERFLOW(a, b, res) __compiler_add_overflow((a), (b), (res)) argument 151 #define SUB_OVERFLOW(a, b, res) __compiler_sub_overflow((a), (b), (res)) argument 152 #define MUL_OVERFLOW(a, b, res) __compiler_mul_overflow((a), (b), (res)) argument 155 #define CMP_TRILEAN(a, b) \ argument
|
/optee_os/out/arm/export-ta_arm64/include/ |
A D | compiler.h | 28 #define __printf(a, b) __attribute__((format(printf, a, b))) argument 81 #define __compiler_add_overflow(a, b, res) \ argument 84 #define __compiler_sub_overflow(a, b, res) \ argument 87 #define __compiler_mul_overflow(a, b, res) \ argument 103 #define __INTOF_ADD(c, a, b) (__extension__({ \ argument 141 #define __INTOF_SUB(c, a, b) (__extension__({ \ argument 220 #define __INTOF_MUL(c, a, b) (__extension__({ \ argument 238 #define __compiler_add_overflow(a, b, res) __INTOF_ADD(*(res), (a), (b)) argument 239 #define __compiler_sub_overflow(a, b, res) __INTOF_SUB(*(res), (a), (b)) argument 240 #define __compiler_mul_overflow(a, b, res) __INTOF_MUL(*(res), (a), (b)) argument
|
A D | util.h | 20 #define MAX(a, b) \ argument 25 #define MIN(a, b) \ argument 30 #define MAX(a, b) (((a) > (b)) ? (a) : (b)) argument 31 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) argument 40 #define MAX_UNSAFE(a, b) (((a) > (b)) ? (a) : (b)) argument 41 #define MIN_UNSAFE(a, b) (((a) < (b)) ? (a) : (b)) argument 150 #define ADD_OVERFLOW(a, b, res) __compiler_add_overflow((a), (b), (res)) argument 151 #define SUB_OVERFLOW(a, b, res) __compiler_sub_overflow((a), (b), (res)) argument 152 #define MUL_OVERFLOW(a, b, res) __compiler_mul_overflow((a), (b), (res)) argument 155 #define CMP_TRILEAN(a, b) \ argument
|
/optee_os/out/arm/export-ta_arm32/host_include/ |
A D | compiler.h | 28 #define __printf(a, b) __attribute__((format(printf, a, b))) argument 81 #define __compiler_add_overflow(a, b, res) \ argument 84 #define __compiler_sub_overflow(a, b, res) \ argument 87 #define __compiler_mul_overflow(a, b, res) \ argument 103 #define __INTOF_ADD(c, a, b) (__extension__({ \ argument 141 #define __INTOF_SUB(c, a, b) (__extension__({ \ argument 220 #define __INTOF_MUL(c, a, b) (__extension__({ \ argument 238 #define __compiler_add_overflow(a, b, res) __INTOF_ADD(*(res), (a), (b)) argument 239 #define __compiler_sub_overflow(a, b, res) __INTOF_SUB(*(res), (a), (b)) argument 240 #define __compiler_mul_overflow(a, b, res) __INTOF_MUL(*(res), (a), (b)) argument
|
A D | util.h | 20 #define MAX(a, b) \ argument 25 #define MIN(a, b) \ argument 30 #define MAX(a, b) (((a) > (b)) ? (a) : (b)) argument 31 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) argument 40 #define MAX_UNSAFE(a, b) (((a) > (b)) ? (a) : (b)) argument 41 #define MIN_UNSAFE(a, b) (((a) < (b)) ? (a) : (b)) argument 150 #define ADD_OVERFLOW(a, b, res) __compiler_add_overflow((a), (b), (res)) argument 151 #define SUB_OVERFLOW(a, b, res) __compiler_sub_overflow((a), (b), (res)) argument 152 #define MUL_OVERFLOW(a, b, res) __compiler_mul_overflow((a), (b), (res)) argument 155 #define CMP_TRILEAN(a, b) \ argument
|
/optee_os/out/arm/export-ta_arm64/host_include/ |
A D | compiler.h | 28 #define __printf(a, b) __attribute__((format(printf, a, b))) argument 81 #define __compiler_add_overflow(a, b, res) \ argument 84 #define __compiler_sub_overflow(a, b, res) \ argument 87 #define __compiler_mul_overflow(a, b, res) \ argument 103 #define __INTOF_ADD(c, a, b) (__extension__({ \ argument 141 #define __INTOF_SUB(c, a, b) (__extension__({ \ argument 220 #define __INTOF_MUL(c, a, b) (__extension__({ \ argument 238 #define __compiler_add_overflow(a, b, res) __INTOF_ADD(*(res), (a), (b)) argument 239 #define __compiler_sub_overflow(a, b, res) __INTOF_SUB(*(res), (a), (b)) argument 240 #define __compiler_mul_overflow(a, b, res) __INTOF_MUL(*(res), (a), (b)) argument
|
A D | util.h | 20 #define MAX(a, b) \ argument 25 #define MIN(a, b) \ argument 30 #define MAX(a, b) (((a) > (b)) ? (a) : (b)) argument 31 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) argument 40 #define MAX_UNSAFE(a, b) (((a) > (b)) ? (a) : (b)) argument 41 #define MIN_UNSAFE(a, b) (((a) < (b)) ? (a) : (b)) argument 150 #define ADD_OVERFLOW(a, b, res) __compiler_add_overflow((a), (b), (res)) argument 151 #define SUB_OVERFLOW(a, b, res) __compiler_sub_overflow((a), (b), (res)) argument 152 #define MUL_OVERFLOW(a, b, res) __compiler_mul_overflow((a), (b), (res)) argument 155 #define CMP_TRILEAN(a, b) \ argument
|
/optee_os/lib/libutils/isoc/ |
A D | qsort.c | 36 #define min(a, b) (a) < (b) ? a : b argument 53 swapfunc(char *a, char *b, int n, int swaptype) in swapfunc() 60 #define swap(a, b) \ argument 67 #define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype) argument 69 med3(char *a, char *b, char *c, int (*cmp)(const void *, const void *)) in med3()
|
/optee_os/core/lib/libtomcrypt/src/ciphers/ |
A D | noekeon.c | 40 #define kTHETA(a, b, c, d) \ argument 46 #define THETA(k, a, b, c, d) \ argument 52 #define GAMMA(a, b, c, d) \ argument 60 #define PI1(a, b, c, d) \ argument 63 #define PI2(a, b, c, d) \ argument 117 ulong32 a,b,c,d,temp; in _noekeon_ecb_encrypt() local 171 ulong32 a,b,c,d, temp; in _noekeon_ecb_decrypt() local
|
/optee_os/core/lib/libtomcrypt/src/hashes/ |
A D | md5.c | 45 #define FF(a,b,c,d,M,s,t) \ argument 48 #define GG(a,b,c,d,M,s,t) \ argument 51 #define HH(a,b,c,d,M,s,t) \ argument 54 #define II(a,b,c,d,M,s,t) \ argument 84 #define FF(a,b,c,d,M,s,t) \ argument 87 #define GG(a,b,c,d,M,s,t) \ argument 90 #define HH(a,b,c,d,M,s,t) \ argument 93 #define II(a,b,c,d,M,s,t) \ argument 105 ulong32 i, W[16], a, b, c, d; in _md5_compress() local
|
A D | rmd128.c | 50 #define FF(a, b, c, d, x, s) \ argument 54 #define GG(a, b, c, d, x, s) \ argument 58 #define HH(a, b, c, d, x, s) \ argument 62 #define II(a, b, c, d, x, s) \ argument 66 #define FFF(a, b, c, d, x, s) \ argument 70 #define GGG(a, b, c, d, x, s) \ argument 74 #define HHH(a, b, c, d, x, s) \ argument 78 #define III(a, b, c, d, x, s) \ argument
|
A D | rmd256.c | 44 #define FF(a, b, c, d, x, s) \ argument 48 #define GG(a, b, c, d, x, s) \ argument 52 #define HH(a, b, c, d, x, s) \ argument 56 #define II(a, b, c, d, x, s) \ argument 60 #define FFF(a, b, c, d, x, s) \ argument 64 #define GGG(a, b, c, d, x, s) \ argument 68 #define HHH(a, b, c, d, x, s) \ argument 72 #define III(a, b, c, d, x, s) \ argument
|
A D | rmd160.c | 51 #define FF(a, b, c, d, e, x, s) \ argument 56 #define GG(a, b, c, d, e, x, s) \ argument 61 #define HH(a, b, c, d, e, x, s) \ argument 66 #define II(a, b, c, d, e, x, s) \ argument 71 #define JJ(a, b, c, d, e, x, s) \ argument 76 #define FFF(a, b, c, d, e, x, s) \ argument 81 #define GGG(a, b, c, d, e, x, s) \ argument 86 #define HHH(a, b, c, d, e, x, s) \ argument 91 #define III(a, b, c, d, e, x, s) \ argument 96 #define JJJ(a, b, c, d, e, x, s) \ argument
|
A D | rmd320.c | 46 #define FF(a, b, c, d, e, x, s) \ argument 51 #define GG(a, b, c, d, e, x, s) \ argument 56 #define HH(a, b, c, d, e, x, s) \ argument 61 #define II(a, b, c, d, e, x, s) \ argument 66 #define JJ(a, b, c, d, e, x, s) \ argument 71 #define FFF(a, b, c, d, e, x, s) \ argument 76 #define GGG(a, b, c, d, e, x, s) \ argument 81 #define HHH(a, b, c, d, e, x, s) \ argument 86 #define III(a, b, c, d, e, x, s) \ argument 91 #define JJJ(a, b, c, d, e, x, s) \ argument
|