Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/encauth/gcm/
A Dgcm_gf_mult.c150 B[M(3)][i] = B[M(1)][i] ^ B[M(2)][i]; in gcm_gf_mult()
151 B[M(5)][i] = B[M(1)][i] ^ B[M(4)][i]; in gcm_gf_mult()
152 B[M(6)][i] = B[M(2)][i] ^ B[M(4)][i]; in gcm_gf_mult()
153 B[M(9)][i] = B[M(1)][i] ^ B[M(8)][i]; in gcm_gf_mult()
154 B[M(10)][i] = B[M(2)][i] ^ B[M(8)][i]; in gcm_gf_mult()
155 B[M(12)][i] = B[M(8)][i] ^ B[M(4)][i]; in gcm_gf_mult()
158 B[M(7)][i] = B[M(3)][i] ^ B[M(4)][i]; in gcm_gf_mult()
159 B[M(11)][i] = B[M(3)][i] ^ B[M(8)][i]; in gcm_gf_mult()
160 B[M(13)][i] = B[M(1)][i] ^ B[M(12)][i]; in gcm_gf_mult()
161 B[M(14)][i] = B[M(6)][i] ^ B[M(8)][i]; in gcm_gf_mult()
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_mulmod_timing.c34 ecc_point *tG, *M[3]; in ltc_ecc_mulmod() local
66 M[i] = ltc_ecc_new_point(); in ltc_ecc_mulmod()
67 if (M[i] == NULL) { in ltc_ecc_mulmod()
69 ltc_ecc_del_point(M[j]); in ltc_ecc_mulmod()
118 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
119 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
126 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
127 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
131 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[i^1], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
132 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.c35 ecc_point *tG, *M[8]; in ltc_ecc_mulmod() local
67 M[i] = ltc_ecc_new_point(); in ltc_ecc_mulmod()
68 if (M[i] == NULL) { in ltc_ecc_mulmod()
70 ltc_ecc_del_point(M[j]); in ltc_ecc_mulmod()
94 if ((err = ltc_mp.ecc_ptdbl(tG, M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
95 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
96 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
100 if ((err = ltc_mp.ecc_ptadd(M[j-9], tG, M[j-8], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
146 if ((err = ltc_ecc_copy_point(M[bitbuf-8], R)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
157 … 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/lib/libmbedtls/mbedtls/library/
A Decp_curves.c1248 M.s = 1; in ecp_mod_p521()
1252 M.p = Mp; in ecp_mod_p521()
1294 M.s = 1; in ecp_mod_p255()
1298 M.p = Mp; in ecp_mod_p255()
1310 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_int( &M, &M, 19 ) ); in ecp_mod_p255()
1351 M.s = 1; in ecp_mod_p448()
1356 M.p = Mp; in ecp_mod_p448()
1368 Q = M; in ecp_mod_p448()
1379 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mpi( &M, &M, &Q ) ); in ecp_mod_p448()
1418 M.s = 1; in ecp_mod_koblitz()
[all …]
A Decp.c1520 mbedtls_mpi M, S, T, U; in ecp_double_jac() local
1532 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_int( &M, &S, 3 ) ); MOD_ADD( M ); in ecp_double_jac()
1538 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_int( &M, &S, 3 ) ); MOD_ADD( M ); in ecp_double_jac()
1547 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mod( grp, &M, &M, &S ) ); in ecp_double_jac()
1562 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mod( grp, &T, &M, &M ) ); in ecp_double_jac()
1568 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mod( grp, &S, &S, &M ) ); in ecp_double_jac()
2116 mbedtls_mpi M, mm; in ecp_comb_recode_scalar() local
2118 mbedtls_mpi_init( &M ); in ecp_comb_recode_scalar()
2129 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &M, m ) ); in ecp_comb_recode_scalar()
2134 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/core/lib/libtomcrypt/src/pk/ec25519/
A Dtweetnacl.c148 M(o,a,a); in S()
199 M(a,c,a); in tweetnacl_crypto_scalarmult()
200 M(c,b,e); in tweetnacl_crypto_scalarmult()
207 M(c,c,a); in tweetnacl_crypto_scalarmult()
208 M(a,d,f); in tweetnacl_crypto_scalarmult()
209 M(d,b,x); in tweetnacl_crypto_scalarmult()
251 M(a, a, t); in add()
254 M(b, b, t); in add()
432 M(t,t,den); in unpackneg()
435 M(t,t,num); in unpackneg()
[all …]
/optee_os/core/lib/libtomcrypt/src/ciphers/twofish/
A Dtwofish.c254 y[0] = (unsigned char)(sbox(1, (ulong32)y[0]) ^ M[4 * (6 + offset) + 0]); in h_func()
266 …0] = (unsigned char)(sbox(1, sbox(0, sbox(0, (ulong32)y[0]) ^ M[4 * (2 + offset) + 0]) ^ M[4 * (0 … in h_func()
267 …1] = (unsigned char)(sbox(0, sbox(0, sbox(1, (ulong32)y[1]) ^ M[4 * (2 + offset) + 1]) ^ M[4 * (0 … in h_func()
268 …2] = (unsigned char)(sbox(1, sbox(1, sbox(0, (ulong32)y[2]) ^ M[4 * (2 + offset) + 2]) ^ M[4 * (0 … in h_func()
269 …3] = (unsigned char)(sbox(0, sbox(1, sbox(1, (ulong32)y[3]) ^ M[4 * (2 + offset) + 3]) ^ M[4 * (0 … in h_func()
354 unsigned char tmp[4], tmp2[4], M[8*4]; in _twofish_setup() local
374 M[x] = key[x] & 255; in _twofish_setup()
380 rs_mult(M+(x*8), S+(x*4)); in _twofish_setup()
384 rs_mult(M+(x*8), skey->twofish.S+(x*4)); in _twofish_setup()
394 h_func(tmp, tmp2, M, k, 0); in _twofish_setup()
[all …]
/optee_os/core/lib/libtomcrypt/src/hashes/
A Dmd5.c45 #define FF(a,b,c,d,M,s,t) \ argument
46 a = (a + F(b,c,d) + M + t); a = ROL(a, s) + b;
48 #define GG(a,b,c,d,M,s,t) \ argument
49 a = (a + G(b,c,d) + M + t); a = ROL(a, s) + b;
51 #define HH(a,b,c,d,M,s,t) \ argument
52 a = (a + H(b,c,d) + M + t); a = ROL(a, s) + b;
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
[all …]
/optee_os/core/arch/arm/plat-stm32mp1/
A Dconf.mk7 flavorlist-cryp-512M = $(flavor_dts_file-157C_DK2)
9 flavorlist-no_cryp-512M = $(flavor_dts_file-157A_DK1)
14 flavorlist-no_cryp = $(flavorlist-no_cryp-512M)
16 flavorlist-512M = $(flavorlist-cryp-512M) \
17 $(flavorlist-no_cryp-512M)
45 ifneq ($(filter $(CFG_EMBED_DTB_SOURCE_FILE),$(flavorlist-512M)),)
/optee_os/core/lib/libtomcrypt/src/mac/f9/
A Df9_test.c29 unsigned char K[16], M[128], T[4]; in f9_test()
60 … if ((err = f9_memory(idx, tests[x].K, 16, tests[x].M, tests[x].msglen, T, &taglen)) != CRYPT_OK) { in f9_test()
/optee_os/core/lib/libtomcrypt/src/mac/xcbc/
A Dxcbc_test.c29 unsigned char K[16], M[34], T[16]; in xcbc_test()
110 …if ((err = xcbc_memory(idx, tests[x].K, 16, tests[x].M, tests[x].msglen, T, &taglen)) != CRYPT_OK)… in xcbc_test()
/optee_os/core/lib/libtomcrypt/src/math/
A Dgmp_desc.c294 mpz_t t1, C, Q, S, Z, M, T, R, two; in sqrtmod_prime() local
310 mpz_init(S); mpz_init(Z); mpz_init(M); in sqrtmod_prime()
360 mpz_set(M, S); in sqrtmod_prime()
377 mpz_sub_ui(t1, M, i); in sqrtmod_prime()
392 mpz_set_ui(M, i); in sqrtmod_prime()
398 mpz_clear(S); mpz_clear(Z); mpz_clear(M); in sqrtmod_prime()
/optee_os/
A DMAINTAINERS26 3. The last entry ("THE REST") lists the overall maintainers (M:) and the
291 M: Joakim Bech <joakim.bech@linaro.org> [@jbech-linaro]
292 M: Jens Wiklander <jens.wiklander@linaro.org> [@jenswi-linaro]
293 M: Jerome Forissier <jerome@forissier.org> [@jforissier]
294 M: Linaro <op-tee@linaro.org> [@OP-TEE/linaro]
/optee_os/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/lib/libmbedtls/mbedtls/
A DChangeLog106 shared library. Reported by Guillermo Garcia M. in #4411.
108 Arm Cortex-M. Fixes #4530.
696 Contributed by Koh M. Nakagawa in #3326.
1000 Bernhard M. Wiedemann in #2357.
2912 (suggested by Thorsten Mühlfelder).
4308 by Jonathan M. McCune)

Completed in 31 milliseconds