| /optee_os/core/lib/libtomcrypt/src/hashes/sha2/ |
| H A D | sha256.c | 52 #define S(x, n) RORc((x),(n)) macro 54 #define Sigma0(x) (S(x, 2) ^ S(x, 13) ^ S(x, 22)) 55 #define Sigma1(x) (S(x, 6) ^ S(x, 11) ^ S(x, 25)) 56 #define Gamma0(x) (S(x, 7) ^ S(x, 18) ^ R(x, 3)) 57 #define Gamma1(x) (S(x, 17) ^ S(x, 19) ^ R(x, 10)) 66 ulong32 S[8], W[64], t0, t1; in ss_sha256_compress() local 74 S[i] = md->sha256.state[i]; 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() 97 t = S[7]; S[7] = S[6]; S[6] = S[5]; S[5] = S[4]; 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() [all …]
|
| H A D | sha512.c | 77 #define S(x, n) ROR64c(x, n) macro 79 #define Sigma0(x) (S(x, 28) ^ S(x, 34) ^ S(x, 39)) 80 #define Sigma1(x) (S(x, 14) ^ S(x, 18) ^ S(x, 41)) 81 #define Gamma0(x) (S(x, 1) ^ S(x, 8) ^ R(x, 7)) 82 #define Gamma1(x) (S(x, 19) ^ S(x, 61) ^ R(x, 6)) 91 ulong64 S[8], W[80], t0, t1; in ss_sha512_compress() local 96 S[i] = md->sha512.state[i]; in ss_sha512_compress() 112 t0 = S[7] + Sigma1(S[4]) + Ch(S[4], S[5], S[6]) + K[i] + W[i]; in ss_sha512_compress() 113 t1 = Sigma0(S[0]) + Maj(S[0], S[1], S[2]); in ss_sha512_compress() 114 S[7] = S[6]; in ss_sha512_compress() [all …]
|
| /optee_os/core/arch/arm/crypto/ |
| H A D | sub.mk | 2 srcs-$(CFG_ARM64_core) += ghash-ce-core_a64.S 3 srcs-$(CFG_ARM32_core) += ghash-ce-core_a32.S 9 srcs-$(CFG_ARM64_core) += aes_modes_armv8a_ce_a64.S 10 aflags-aes_modes_armv8a_ce_a64.S-y += -DINTERLEAVE=4 11 srcs-$(CFG_ARM32_core) += aes_modes_armv8a_ce_a32.S 16 srcs-$(CFG_ARM64_core) += sha1_armv8a_ce_a64.S 17 srcs-$(CFG_ARM32_core) += sha1_armv8a_ce_a32.S 22 srcs-$(CFG_ARM64_core) += sha256_armv8a_ce_a64.S 23 srcs-$(CFG_ARM32_core) += sha256_armv8a_ce_a32.S 28 srcs-$(CFG_ARM64_core) += sha512_armv8a_ce_a64.S [all …]
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | sub.mk | 10 srcs-$(CFG_ARM32_core) += spin_lock_a32.S 11 srcs-$(CFG_ARM64_core) += spin_lock_a64.S 12 srcs-$(CFG_ARM32_core) += tlb_helpers_a32.S 13 srcs-$(CFG_ARM64_core) += tlb_helpers_a64.S 14 srcs-$(CFG_ARM64_core) += cache_helpers_a64.S 15 srcs-$(CFG_ARM32_core) += cache_helpers_a32.S 16 srcs-$(CFG_PL310) += tz_ssvce_pl310_a32.S 19 srcs-$(CFG_ARM32_core) += thread_a32.S 20 srcs-$(CFG_ARM64_core) += thread_a64.S 24 srcs-$(CFG_ARM32_core) += arch_scall_a32.S [all …]
|
| H A D | link.mk | 4 link-script = $(if $(wildcard $(platform-dir)/kern.ld.S), \ 5 $(platform-dir)/kern.ld.S, \ 6 $(arch-dir)/kernel/kern.ld.S) 87 cleanfiles += $(link-out-dir)/text_unpaged.ld.S 88 $(link-out-dir)/text_unpaged.ld.S: $(link-out-dir)/unpaged.o 93 cleanfiles += $(link-out-dir)/rodata_unpaged.ld.S 94 $(link-out-dir)/rodata_unpaged.ld.S: $(link-out-dir)/unpaged.o 117 cleanfiles += $(link-out-dir)/text_init.ld.S 118 $(link-out-dir)/text_init.ld.S: $(link-out-dir)/init.o 123 cleanfiles += $(link-out-dir)/rodata_init.ld.S [all …]
|
| /optee_os/core/lib/libtomcrypt/src/ciphers/twofish/ |
| H A D | twofish.c | 272 #define S1 skey->twofish.S[0] 273 #define S2 skey->twofish.S[1] 274 #define S3 skey->twofish.S[2] 275 #define S4 skey->twofish.S[3] 305 g = g ^ key->twofish.S[4*i++ + y]; in s_g_func() 344 unsigned char S[4*4], tmpx0, tmpx1; in s_twofish_setup() local 373 rs_mult(M+(x*8), S+(x*4)); in s_twofish_setup() 377 rs_mult(M+(x*8), skey->twofish.S+(x*4)); in s_twofish_setup() 411 skey->twofish.S[0][x] = mds_column_mult(sbox(1, (sbox(0, tmpx0 ^ S[0]) ^ S[4])),0); in s_twofish_setup() 412 skey->twofish.S[1][x] = mds_column_mult(sbox(0, (sbox(0, tmpx1 ^ S[1]) ^ S[5])),1); in s_twofish_setup() [all …]
|
| /optee_os/core/arch/riscv/kernel/ |
| H A D | sub.mk | 1 srcs-y += spinlock.S 2 srcs-y += cache_helpers_rv.S 3 srcs-y += csr_detect.S 11 srcs-y += entry.S 13 srcs-y += thread_rv.S 15 srcs-y += arch_scall_rv.S 18 srcs-$(CFG_SEMIHOSTING) += semihosting_rv.S 20 srcs-y += thread_optee_abi_rv.S
|
| /optee_os/ldelf/ |
| H A D | sub.mk | 2 srcs-$(CFG_ARM32_$(sm)) += start_a32.S 3 srcs-$(CFG_ARM64_$(sm)) += start_a64.S 4 srcs-$(CFG_ARM32_$(sm)) += syscalls_a32.S 5 srcs-$(CFG_ARM64_$(sm)) += syscalls_a64.S 6 srcs-$(CFG_ARM64_$(sm)) += tlsdesc_rel_a64.S 7 srcs-$(CFG_RV64_$(sm)) += start_rv64.S 8 srcs-$(call cfg-one-enabled,CFG_RV32_$(sm) CFG_RV64_$(sm)) += syscalls_rv.S
|
| /optee_os/ |
| H A D | MAINTAINERS | 37 S: Maintained 42 S: Maintained 47 S: Maintained 52 S: Maintained 57 S: Maintained 62 S: Maintained 67 S: Maintained 73 S: Maintained 79 S: Maintained 84 S: Maintained [all …]
|
| /optee_os/lib/libutils/ext/arch/arm/ |
| H A D | sub.mk | 4 srcs-$(CFG_ARM32_$(sm)) += atomic_a32.S 5 srcs-$(CFG_ARM64_$(sm)) += atomic_a64.S 8 srcs-$(CFG_ARM32_$(sm)) += mcount_a32.S 9 srcs-$(CFG_ARM64_$(sm)) += mcount_a64.S
|
| /optee_os/core/lib/libtomcrypt/src/ciphers/ |
| H A D | blowfish.c | 295 …) ((skey->blowfish.S[0][LTC_BYTE(x,3)] + skey->blowfish.S[1][LTC_BYTE(x,2)]) ^ skey->blowfish.S[2]… 306 S1 = skey->blowfish.S[0]; in s_blowfish_encipher() 307 S2 = skey->blowfish.S[1]; in s_blowfish_encipher() 308 S3 = skey->blowfish.S[2]; in s_blowfish_encipher() 309 S4 = skey->blowfish.S[3]; in s_blowfish_encipher() 412 skey->blowfish.S[x][y] = B[0]; in blowfish_expand() 413 skey->blowfish.S[x][y+1] = B[1]; in blowfish_expand() 463 XMEMCPY(skey->blowfish.S, ORIG_S, sizeof(ORIG_S)); in blowfish_setup_with_data() 532 S1 = skey->blowfish.S[0]; in s_blowfish_ecb_decrypt() 533 S2 = skey->blowfish.S[1]; in s_blowfish_ecb_decrypt() [all …]
|
| H A D | rc5.c | 51 ulong32 L[64], *S, A, B, i, j, v, s, t, l; in s_rc5_setup() local 71 S = skey->rc5.K; in s_rc5_setup() 89 XMEMCPY(S, stab, t * sizeof(*S)); in s_rc5_setup() 95 A = S[i] = ROLc(S[i] + A + B, 3); in s_rc5_setup()
|
| /optee_os/core/arch/arm/sm/ |
| H A D | sub.mk | 1 srcs-y += sm_a32.S 3 srcs-$(CFG_PM_ARM32) += pm.c pm_a32.S 4 srcs-$(CFG_PSCI_ARM32) += std_smc.c psci.c psci-helper.S
|
| /optee_os/lib/libutils/isoc/arch/arm/ |
| H A D | sub.mk | 4 srcs-$(CFG_ARM32_$(sm)) += arm32_aeabi_divmod_a32.S 6 srcs-$(CFG_ARM32_$(sm)) += arm32_aeabi_ldivmod_a32.S 18 srcs-$(CFG_ARM32_$(sm)) += setjmp_a32.S 19 srcs-$(CFG_ARM64_$(sm)) += setjmp_a64.S
|
| /optee_os/lib/libutils/ext/arch/riscv/ |
| H A D | sub.mk | 1 srcs-y+= atomic_rv.S 3 srcs-y += mcount_rv.S
|
| /optee_os/core/drivers/pm/sam/ |
| H A D | sub.mk | 1 srcs-y += at91_pm.c pm_suspend.S pm_resume.S
|
| /optee_os/lib/libutee/arch/arm/ |
| H A D | sub.mk | 3 srcs-$(CFG_ARM32_$(sm)) += utee_syscalls_a32.S 4 srcs-$(CFG_ARM64_$(sm)) += utee_syscalls_a64.S
|
| /optee_os/core/lib/libtomcrypt/src/misc/pkcs5/ |
| H A D | pkcs_5_test.c | 34 const char* S; in pkcs_5_test() 169 (unsigned char*)cases_5_2[i].S, cases_5_2[i].S_len, in pkcs_5_test() 187 (unsigned char*)cases_5_1[i].S, in pkcs_5_test() 205 (unsigned char*)cases_5_1o[i].S, in pkcs_5_test()
|
| /optee_os/core/arch/arm/plat-vexpress/ |
| H A D | sub.mk | 4 srcs-$(CFG_ARM32_core) += juno_core_pos_a32.S 5 srcs-$(CFG_ARM64_core) += juno_core_pos_a64.S
|
| /optee_os/core/arch/arm/plat-rcar/ |
| H A D | sub.mk | 3 srcs-${CFG_RCAR_GEN3} += core_pos_a64.S 5 srcs-${CFG_RCAR_ROMAPI} += romapi_call.S
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | sm2-pke.c | 117 ecc_point *S = NULL; in sm2_ltc_pke_decrypt() local 157 S = ltc_ecc_new_point(); in sm2_ltc_pke_decrypt() 158 if (!S) { in sm2_ltc_pke_decrypt() 175 ltc_res = ltc_ecc_mulmod(h, C1, S, ltc_key.dp.A, in sm2_ltc_pke_decrypt() 182 ltc_res = ltc_ecc_is_point_at_infinity(S, ltc_key.dp.prime, in sm2_ltc_pke_decrypt() 295 ltc_ecc_del_point(S); in sm2_ltc_pke_decrypt() 339 ecc_point *S = NULL; in sm2_ltc_pke_encrypt() local 385 S = ltc_ecc_new_point(); in sm2_ltc_pke_encrypt() 386 if (!S) { in sm2_ltc_pke_encrypt() 397 ltc_res = ltc_ecc_mulmod(h, <c_key.pubkey, S, ltc_key.dp.A, in sm2_ltc_pke_encrypt() [all …]
|
| /optee_os/core/arch/arm/plat-rockchip/ |
| H A D | sub.mk | 10 srcs-y += plat_init.S 11 srcs-y += core_pos_a32.S
|
| /optee_os/core/arch/arm/plat-marvell/ |
| H A D | sub.mk | 4 srcs-$(CFG_ARM64_core) += otx2/core_pos.S 7 srcs-$(CFG_ARM64_core) += cn10k/core_pos.S
|
| /optee_os/core/arch/arm/plat-imx/ |
| H A D | sub.mk | 12 srcs-y += a9_plat_init.S 17 srcs-y += a7_plat_init.S
|
| /optee_os/core/lib/libtomcrypt/src/pk/ec25519/ |
| H A D | tweetnacl.c | 139 sv S(gf o,const gf a) in S() function 150 S(c,c); in inv25519() 162 S(c,c); in pow2523() 190 S(d,e); in tweetnacl_crypto_scalarmult() 191 S(f,a); in tweetnacl_crypto_scalarmult() 196 S(b,a); in tweetnacl_crypto_scalarmult() 203 S(b,e); in tweetnacl_crypto_scalarmult() 421 S(num,r[1]); in unpackneg() 426 S(den2,den); in unpackneg() 427 S(den4,den2); in unpackneg() [all …]
|