Home
last modified time | relevance | path

Searched refs:M (Results 1 – 18 of 18) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/gcm/
A Dgcm_gf_mult.c143 B[M(3)][i] = B[M(1)][i] ^ B[M(2)][i]; in gcm_gf_mult()
144 B[M(5)][i] = B[M(1)][i] ^ B[M(4)][i]; in gcm_gf_mult()
145 B[M(6)][i] = B[M(2)][i] ^ B[M(4)][i]; in gcm_gf_mult()
146 B[M(9)][i] = B[M(1)][i] ^ B[M(8)][i]; in gcm_gf_mult()
147 B[M(10)][i] = B[M(2)][i] ^ B[M(8)][i]; in gcm_gf_mult()
148 B[M(12)][i] = B[M(8)][i] ^ B[M(4)][i]; in gcm_gf_mult()
151 B[M(7)][i] = B[M(3)][i] ^ B[M(4)][i]; in gcm_gf_mult()
152 B[M(11)][i] = B[M(3)][i] ^ B[M(8)][i]; in gcm_gf_mult()
153 B[M(13)][i] = B[M(1)][i] ^ B[M(12)][i]; in gcm_gf_mult()
154 B[M(14)][i] = B[M(6)][i] ^ B[M(8)][i]; in gcm_gf_mult()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_mulmod_timing.c27 ecc_point *tG, *M[3]; in ltc_ecc_mulmod() local
59 M[i] = ltc_ecc_new_point(); in ltc_ecc_mulmod()
60 if (M[i] == NULL) { in ltc_ecc_mulmod()
62 ltc_ecc_del_point(M[j]); in ltc_ecc_mulmod()
111 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
112 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
119 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
120 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
124 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[i^1], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
125 if ((err = ltc_mp.ecc_ptdbl(M[i], M[i], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
[all …]
A Dltc_ecc_mulmod.c28 ecc_point *tG, *M[8]; in ltc_ecc_mulmod() local
60 M[i] = ltc_ecc_new_point(); in ltc_ecc_mulmod()
61 if (M[i] == NULL) { in ltc_ecc_mulmod()
63 ltc_ecc_del_point(M[j]); in ltc_ecc_mulmod()
87 if ((err = ltc_mp.ecc_ptdbl(tG, M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
88 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
89 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
93 if ((err = ltc_mp.ecc_ptadd(M[j-9], tG, M[j-8], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
139 if ((err = ltc_ecc_copy_point(M[bitbuf-8], R)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
150 … if ((err = ltc_mp.ecc_ptadd(R, M[bitbuf-8], R, ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
[all …]
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Decp_curves.c1250 M.s = 1; in ecp_mod_p521()
1254 M.p = Mp; in ecp_mod_p521()
1296 M.s = 1; in ecp_mod_p255()
1300 M.p = Mp; in ecp_mod_p255()
1312 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_int( &M, &M, 19 ) ); in ecp_mod_p255()
1353 M.s = 1; in ecp_mod_p448()
1358 M.p = Mp; in ecp_mod_p448()
1370 Q = M; in ecp_mod_p448()
1381 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mpi( &M, &M, &Q ) ); in ecp_mod_p448()
1420 M.s = 1; in ecp_mod_koblitz()
[all …]
A Decp.c1519 mbedtls_mpi M, S, T, U; in ecp_double_jac() local
1531 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_int( &M, &S, 3 ) ); MOD_ADD( M ); in ecp_double_jac()
1537 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_int( &M, &S, 3 ) ); MOD_ADD( M ); in ecp_double_jac()
1546 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mod( grp, &M, &M, &S ) ); in ecp_double_jac()
1561 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mod( grp, &T, &M, &M ) ); in ecp_double_jac()
1567 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mod( grp, &S, &S, &M ) ); in ecp_double_jac()
2115 mbedtls_mpi M, mm; in ecp_comb_recode_scalar() local
2117 mbedtls_mpi_init( &M ); in ecp_comb_recode_scalar()
2128 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &M, m ) ); in ecp_comb_recode_scalar()
2133 ecp_comb_recode_core( k, d, w, &M ); in ecp_comb_recode_scalar()
[all …]
A Ddhm.c155 static int dhm_random_below( mbedtls_mpi *R, const mbedtls_mpi *M, in dhm_random_below() argument
160 MBEDTLS_MPI_CHK( mbedtls_mpi_random( R, 3, M, f_rng, p_rng ) ); in dhm_random_below()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ec25519/
A Dtweetnacl.c141 M(o,a,a); in S()
192 M(a,c,a); in tweetnacl_crypto_scalarmult()
193 M(c,b,e); in tweetnacl_crypto_scalarmult()
200 M(c,c,a); in tweetnacl_crypto_scalarmult()
201 M(a,d,f); in tweetnacl_crypto_scalarmult()
202 M(d,b,x); in tweetnacl_crypto_scalarmult()
248 M(a, a, t); in add()
251 M(b, b, t); in add()
429 M(t,t,den); in unpackneg()
432 M(t,t,num); in unpackneg()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/twofish/
A Dtwofish.c247 y[0] = (unsigned char)(sbox(1, (ulong32)y[0]) ^ M[4 * (6 + offset) + 0]); in h_func()
259 …0] = (unsigned char)(sbox(1, sbox(0, sbox(0, (ulong32)y[0]) ^ M[4 * (2 + offset) + 0]) ^ M[4 * (0 … in h_func()
260 …1] = (unsigned char)(sbox(0, sbox(0, sbox(1, (ulong32)y[1]) ^ M[4 * (2 + offset) + 1]) ^ M[4 * (0 … in h_func()
261 …2] = (unsigned char)(sbox(1, sbox(1, sbox(0, (ulong32)y[2]) ^ M[4 * (2 + offset) + 2]) ^ M[4 * (0 … in h_func()
262 …3] = (unsigned char)(sbox(0, sbox(1, sbox(1, (ulong32)y[3]) ^ M[4 * (2 + offset) + 3]) ^ M[4 * (0 … in h_func()
347 unsigned char tmp[4], tmp2[4], M[8*4]; in s_twofish_setup() local
367 M[x] = key[x] & 255; in s_twofish_setup()
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()
387 h_func(tmp, tmp2, M, k, 0); in s_twofish_setup()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/
A Dmd5.c38 #define FF(a,b,c,d,M,s,t) \ argument
39 a = (a + F(b,c,d) + M + t); a = ROL(a, s) + b;
41 #define GG(a,b,c,d,M,s,t) \ argument
42 a = (a + G(b,c,d) + M + t); a = ROL(a, s) + b;
44 #define HH(a,b,c,d,M,s,t) \ argument
45 a = (a + H(b,c,d) + M + t); a = ROL(a, s) + b;
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
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/f9/
A Df9_test.c22 unsigned char K[16], M[128], T[4]; in f9_test()
53 … if ((err = f9_memory(idx, tests[x].K, 16, tests[x].M, tests[x].msglen, T, &taglen)) != CRYPT_OK) { in f9_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/xcbc/
A Dxcbc_test.c22 unsigned char K[16], M[34], T[16]; in xcbc_test()
103 …if ((err = xcbc_memory(idx, tests[x].K, 16, tests[x].M, tests[x].msglen, T, &taglen)) != CRYPT_OK)… in xcbc_test()
/optee_os-3.20.0/core/arch/arm/plat-stm32mp1/
A Dconf.mk11 flavorlist-cryp-512M = $(flavor_dts_file-157C_DK2) \
14 flavorlist-no_cryp-512M = $(flavor_dts_file-157A_DK1)
22 flavorlist-no_cryp = $(flavorlist-no_cryp-512M) \
25 flavorlist-512M = $(flavorlist-cryp-512M) \
26 $(flavorlist-no_cryp-512M)
123 ifneq ($(filter $(CFG_EMBED_DTB_SOURCE_FILE),$(flavorlist-512M)),)
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/
A Dgmp_desc.c287 mpz_t t1, C, Q, S, Z, M, T, R, two; in sqrtmod_prime() local
303 mpz_init(S); mpz_init(Z); mpz_init(M); in sqrtmod_prime()
353 mpz_set(M, S); in sqrtmod_prime()
370 mpz_sub_ui(t1, M, i); in sqrtmod_prime()
385 mpz_set_ui(M, i); in sqrtmod_prime()
391 mpz_clear(S); mpz_clear(Z); mpz_clear(M); in sqrtmod_prime()
/optee_os-3.20.0/core/arch/arm/crypto/
A Dghash-ce-core_a32.S102 veor t1q, t1q, t3q @ M = G + H
107 veor t1l, t1l, t1h @ t1 = (M) (P2 + P3) << 16
/optee_os-3.20.0/
A DMAINTAINERS26 3. The last entry ("THE REST") lists the overall maintainers (M:) and the
303 M: Joakim Bech <joakim.bech@linaro.org> [@jbech-linaro]
304 M: Jens Wiklander <jens.wiklander@linaro.org> [@jenswi-linaro]
305 M: Jerome Forissier <jerome.forissier@linaro.org> [@jforissier]
/optee_os-3.20.0/core/arch/riscv/
A Driscv.mk51 ifneq (y,$(call cfg-one-enabled,CFG_RISCV_M_MODE M CFG_RISCV_S_MODE))
/optee_os-3.20.0/core/arch/arm/dts/
A Dstm32mp15xx-dhcom-som.dtsi238 "DHCOM-R", "DHCOM-M", "", "",
/optee_os-3.20.0/lib/libmbedtls/mbedtls/
A DChangeLog321 shared library. Reported by Guillermo Garcia M. in #4411.
323 Arm Cortex-M. Fixes #4530.
911 Contributed by Koh M. Nakagawa in #3326.
1215 Bernhard M. Wiedemann in #2357.
3127 (suggested by Thorsten Mühlfelder).
4523 by Jonathan M. McCune)

Completed in 29 milliseconds