| /optee_os/core/lib/libtomcrypt/src/math/ |
| H A D | ltm_desc.c | 239 static int add(void *a, void *b, void *c) in add() 247 static int addi(void *a, ltc_mp_digit b, void *c) in addi() 255 static int sub(void *a, void *b, void *c) in sub() 263 static int subi(void *a, ltc_mp_digit b, void *c) in subi() 271 static int mul(void *a, void *b, void *c) in mul() 279 static int muli(void *a, ltc_mp_digit b, void *c) in muli() 295 static int sqrtmod_prime(void *a, void *b, void *c) in sqrtmod_prime() 304 static int divide(void *a, void *b, void *c, void *d) in divide() 319 static int modi(void *a, ltc_mp_digit b, ltc_mp_digit *c) in modi() 335 static int gcd(void *a, void *b, void *c) in gcd() [all …]
|
| H A D | gmp_desc.c | 146 char c, *tmp, *q; in read_radix() local 221 static int add(void *a, void *b, void *c) in add() 230 static int addi(void *a, ltc_mp_digit b, void *c) in addi() 239 static int sub(void *a, void *b, void *c) in sub() 248 static int subi(void *a, ltc_mp_digit b, void *c) in subi() 257 static int mul(void *a, void *b, void *c) in mul() 266 static int muli(void *a, ltc_mp_digit b, void *c) in muli() 397 static int divide(void *a, void *b, void *c, void *d) in divide() 425 static int modi(void *a, ltc_mp_digit b, ltc_mp_digit *c) in modi() 435 static int gcd(void *a, void *b, void *c) in gcd() [all …]
|
| H A D | tfm_desc.c | 200 static int add(void *a, void *b, void *c) in add() 209 static int addi(void *a, ltc_mp_digit b, void *c) in addi() 218 static int sub(void *a, void *b, void *c) in sub() 227 static int subi(void *a, ltc_mp_digit b, void *c) in subi() 236 static int mul(void *a, void *b, void *c) in mul() 245 static int muli(void *a, ltc_mp_digit b, void *c) in muli() 265 static int divide(void *a, void *b, void *c, void *d) in divide() 281 static int modi(void *a, ltc_mp_digit b, ltc_mp_digit *c) in modi() 297 static int gcd(void *a, void *b, void *c) in gcd() 307 static int lcm(void *a, void *b, void *c) in lcm() [all …]
|
| /optee_os/core/drivers/crypto/stm32/ |
| H A D | authenc.c | 47 static TEE_Result stm32_ae_gcm_generate_iv(struct stm32_ae_ctx *c, in stm32_ae_gcm_generate_iv() 166 static TEE_Result stm32_ae_ccm_push_b1(struct stm32_ae_ctx *c, in stm32_ae_ccm_push_b1() 211 struct stm32_ae_ctx *c = to_stm32_ae_ctx(dinit->ctx); in stm32_ae_initialize() local 236 struct stm32_ae_ctx *c = to_stm32_ae_ctx(dupdate->ctx); in stm32_ae_update_aad() local 245 struct stm32_ae_ctx *c = to_stm32_ae_ctx(dupdate->ctx); in stm32_ae_update_payload() local 252 static TEE_Result stm32_ae_encdec_final(struct stm32_ae_ctx *c, uint8_t *tag, in stm32_ae_encdec_final() 270 struct stm32_ae_ctx *c = to_stm32_ae_ctx(dfinal->ctx); in stm32_ae_enc_final() local 284 struct stm32_ae_ctx *c = to_stm32_ae_ctx(dfinal->ctx); in stm32_ae_dec_final() local 309 struct stm32_ae_ctx *c = to_stm32_ae_ctx(ctx); in stm32_ae_free() local 324 struct stm32_ae_ctx *c = calloc(1, sizeof(*c)); in alloc_ctx() local
|
| H A D | hash.c | 38 struct stm32_hash_ctx *c = to_stm32_hash_ctx(ctx); in do_hash_init() local 53 struct stm32_hash_ctx *c = to_stm32_hash_ctx(ctx); in do_hash_update() local 68 struct stm32_hash_ctx *c = to_stm32_hash_ctx(ctx); in do_hash_final() local 91 struct stm32_hash_ctx *c = to_stm32_hash_ctx(ctx); in do_hash_free() local 134 struct stm32_hash_ctx *c = NULL; in stm32_hash_allocate() local
|
| H A D | hmac.c | 43 struct stm32_hmac_ctx *c = to_stm32_hmac_ctx(ctx); in do_hmac_init() local 73 struct stm32_hmac_ctx *c = to_stm32_hmac_ctx(ctx); in do_hmac_update() local 93 struct stm32_hmac_ctx *c = to_stm32_hmac_ctx(ctx); in do_hmac_final() local 121 struct stm32_hmac_ctx *c = to_stm32_hmac_ctx(ctx); in do_hmac_free() local 176 struct stm32_hmac_ctx *c = NULL; in stm32_hmac_allocate() local
|
| /optee_os/core/lib/libtomcrypt/src/misc/ |
| H A D | crc32.c | 16 #define CRC32_INDEX(c) (c & 0xff) argument 17 #define CRC32_SHIFTED(c) (c >> 8) argument 19 #define CRC32_INDEX(c) (c >> 24) argument 20 #define CRC32_SHIFTED(c) (c << 8) argument
|
| /optee_os/core/lib/libtomcrypt/src/headers/ |
| H A D | tomcrypt_private.h | 75 const char* c; member 214 #define mp_read_radix(a, b, c) ltc_mp.read_radix(a, b, c) argument 215 #define mp_toradix(a, b, c) ltc_mp.write_radix(a, b, c) argument 218 #define mp_read_unsigned_bin(a, b, c) ltc_mp.unsigned_read(a, b, c) argument 220 #define mp_add(a, b, c) ltc_mp.add(a, b, c) argument 221 #define mp_add_d(a, b, c) ltc_mp.addi(a, b, c) argument 222 #define mp_sub(a, b, c) ltc_mp.sub(a, b, c) argument 223 #define mp_sub_d(a, b, c) ltc_mp.subi(a, b, c) argument 224 #define mp_mul(a, b, c) ltc_mp.mul(a, b, c) argument 225 #define mp_mul_d(a, b, c) ltc_mp.muli(a, b, c) argument [all …]
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | mpi_desc.c | 269 static int add(void *a, void *b, void *c) in add() 277 static int addi(void *a, ltc_mp_digit b, void *c) in addi() 291 static int sub(void *a, void *b, void *c) in sub() 299 static int subi(void *a, ltc_mp_digit b, void *c) in subi() 313 static int mul(void *a, void *b, void *c) in mul() 321 static int muli(void *a, ltc_mp_digit b, void *c) in muli() 339 static int divide(void *a, void *b, void *c, void *d) in divide() 363 static int modi(void *a, ltc_mp_digit b, ltc_mp_digit *c) in modi() 390 static int gcd(void *a, void *b, void *c) in gcd() 399 static int lcm(void *a, void *b, void *c) in lcm() [all …]
|
| H A D | shake.c | 25 struct shake_ctx *c = to_shake_ctx(ctx); in do_shake_init() local 36 struct shake_ctx *c = to_shake_ctx(ctx); in do_sha3_update() local 47 struct shake_ctx *c = to_shake_ctx(ctx); in do_shake_final() local 71 struct shake_ctx *c = to_shake_ctx(ctx); in do_sha3_free_ctx() local
|
| /optee_os/core/lib/libtomcrypt/src/ciphers/ |
| H A D | noekeon.c | 33 #define kTHETA(a, b, c, d) \ argument 39 #define THETA(k, a, b, c, d) \ argument 45 #define GAMMA(a, b, c, d) \ argument 53 #define PI1(a, b, c, d) \ argument 56 #define PI2(a, b, c, d) \ argument 110 ulong32 a,b,c,d,temp; in s_noekeon_ecb_encrypt() local 164 ulong32 a,b,c,d, temp; in s_noekeon_ecb_decrypt() local
|
| /optee_os/lib/libmbedtls/core/ |
| H A D | cmac.c | 39 struct mbed_cmac_ctx *c = to_cmac_ctx(ctx); in mbed_cmac_init() local 63 struct mbed_cmac_ctx *c = to_cmac_ctx(ctx); in mbed_cmac_update() local 74 struct mbed_cmac_ctx *c = to_cmac_ctx(ctx); in mbed_cmac_final() local 103 struct mbed_cmac_ctx *c = to_cmac_ctx(ctx); in mbed_cmac_free_ctx() local 132 struct mbed_cmac_ctx *c = NULL; in crypto_cmac_alloc_ctx() local
|
| /optee_os/core/lib/libtomcrypt/src/hashes/ |
| H A D | md5.c | 38 #define FF(a,b,c,d,M,s,t) \ argument 41 #define GG(a,b,c,d,M,s,t) \ argument 44 #define HH(a,b,c,d,M,s,t) \ argument 47 #define II(a,b,c,d,M,s,t) \ argument 77 #define FF(a,b,c,d,M,s,t) \ argument 80 #define GG(a,b,c,d,M,s,t) \ argument 83 #define HH(a,b,c,d,M,s,t) \ argument 86 #define II(a,b,c,d,M,s,t) \ argument 98 ulong32 i, W[16], a, b, c, d; in ss_md5_compress() local
|
| H A D | rmd128.c | 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 71 #define III(a, b, c, d, x, s) \ argument
|
| H A D | rmd256.c | 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 65 #define III(a, b, c, d, x, s) \ argument
|
| H A D | rmd160.c | 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 89 #define JJJ(a, b, c, d, e, x, s) \ argument
|
| H A D | rmd320.c | 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 84 #define JJJ(a, b, c, d, e, x, s) \ argument
|
| H A D | sha1.c | 42 ulong32 a,b,c,d,e,W[80],i; in ss_sha1_compress() local 66 … #define FF0(a,b,c,d,e,i) e = (ROLc(a, 5) + F0(b,c,d) + e + W[i] + 0x5a827999UL); b = ROLc(b, 30); in ss_sha1_compress() argument 67 … #define FF1(a,b,c,d,e,i) e = (ROLc(a, 5) + F1(b,c,d) + e + W[i] + 0x6ed9eba1UL); b = ROLc(b, 30); in ss_sha1_compress() argument 68 … #define FF2(a,b,c,d,e,i) e = (ROLc(a, 5) + F2(b,c,d) + e + W[i] + 0x8f1bbcdcUL); b = ROLc(b, 30); in ss_sha1_compress() argument 69 … #define FF3(a,b,c,d,e,i) e = (ROLc(a, 5) + F3(b,c,d) + e + W[i] + 0xca62c1d6UL); b = ROLc(b, 30); in ss_sha1_compress() argument
|
| /optee_os/core/crypto/ |
| H A D | sm4-ecb.c | 37 struct sm4_ecb_ctx *c = to_sm4_ecb_ctx(ctx); in sm4_ecb_init() local 54 struct sm4_ecb_ctx *c = to_sm4_ecb_ctx(ctx); in sm4_ecb_update() local 63 struct sm4_ecb_ctx *c = to_sm4_ecb_ctx(ctx); in sm4_ecb_final() local 92 struct sm4_ecb_ctx *c = NULL; in crypto_sm4_ecb_alloc_ctx() local
|
| H A D | sm4-cbc.c | 38 struct sm4_cbc_ctx *c = to_sm4_cbc_ctx(ctx); in sm4_cbc_init() local 57 struct sm4_cbc_ctx *c = to_sm4_cbc_ctx(ctx); in sm4_cbc_update() local 66 struct sm4_cbc_ctx *c = to_sm4_cbc_ctx(ctx); in sm4_cbc_final() local 97 struct sm4_cbc_ctx *c = NULL; in crypto_sm4_cbc_alloc_ctx() local
|
| H A D | sm4-ctr.c | 39 struct sm4_ctr_ctx *c = to_sm4_ctr_ctx(ctx); in sm4_ctr_init() local 54 struct sm4_ctr_ctx *c = to_sm4_ctr_ctx(ctx); in sm4_ctr_update() local 63 struct sm4_ctr_ctx *c = to_sm4_ctr_ctx(ctx); in sm4_ctr_final() local 94 struct sm4_ctr_ctx *c = NULL; in crypto_sm4_ctr_alloc_ctx() local
|
| H A D | sm4-xts.c | 39 struct sm4_xts_ctx *c = to_sm4_xts_ctx(ctx); in sm4_xts_init() local 62 struct sm4_xts_ctx *c = to_sm4_xts_ctx(ctx); in sm4_xts_update() local 72 struct sm4_xts_ctx *c = to_sm4_xts_ctx(ctx); in sm4_xts_final() local 107 struct sm4_xts_ctx *c = NULL; in crypto_sm4_xts_alloc_ctx() local
|
| H A D | aes-cts.c | 55 struct cts_ctx *c = to_cts_ctx(ctx); in cts_init() local 192 struct cts_ctx *c = to_cts_ctx(ctx); in cts_update() local 200 struct cts_ctx *c = to_cts_ctx(ctx); in cts_final() local 208 struct cts_ctx *c = to_cts_ctx(ctx); in cts_free_ctx() local 237 struct cts_ctx *c = calloc(1, sizeof(*c)); in crypto_aes_cts_alloc_ctx() local
|
| /optee_os/core/lib/libtomcrypt/src/pk/asn1/der/utf8/ |
| H A D | der_length_utf8_string.c | 16 unsigned long der_utf8_charsize(const wchar_t c) in der_utf8_charsize() 39 int der_utf8_valid_char(const wchar_t c) in der_utf8_valid_char()
|
| /optee_os/lib/libutee/ |
| H A D | tee_uuid_from_str.c | 12 static int hex(char c) in hex() 27 int c = 0; in parse_hex() local
|