Home
last modified time | relevance | path

Searched refs:u1 (Results 1 – 6 of 6) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_verify_hash.c34 void *w, *v, *u1, *u2; in dsa_verify_hash_raw() local
46 if ((err = mp_init_multi(&w, &v, &u1, &u2, NULL)) != CRYPT_OK) { in dsa_verify_hash_raw()
63 …if ((err = mp_read_unsigned_bin(u1, (unsigned char *)hash, hashlen)) != CRYPT_OK) { goto erro… in dsa_verify_hash_raw()
64 …if ((err = mp_mulmod(u1, w, key->q, u1)) != CRYPT_OK) { goto erro… in dsa_verify_hash_raw()
70 …if ((err = mp_exptmod(key->g, u1, key->p, u1)) != CRYPT_OK) { goto erro… in dsa_verify_hash_raw()
72 …if ((err = mp_mulmod(u1, u2, key->p, v)) != CRYPT_OK) { goto erro… in dsa_verify_hash_raw()
82 mp_clear_multi(w, v, u1, u2, NULL); in dsa_verify_hash_raw()
/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Decc_verify_hash.c36 void *r, *s, *v, *w, *u1, *u2, *e, *p, *m, *a, *a_plus3; in ecc_verify_hash_ex() local
52 if ((err = mp_init_multi(&r, &s, &v, &w, &u1, &u2, &e, &a_plus3, NULL)) != CRYPT_OK) { in ecc_verify_hash_ex()
158 …if ((err = mp_mulmod(e, w, p, u1)) != CRYPT_OK) … in ecc_verify_hash_ex()
179 …if ((err = ltc_mp.ecc_ptmul(u1, mG, mG, a, m, 0)) != CRYPT_OK) … in ecc_verify_hash_ex()
189 …if ((err = ltc_mp.ecc_mul2add(mG, u1, mQ, u2, mG, ma, m)) != CRYPT_OK) … in ecc_verify_hash_ex()
207 mp_clear_multi(r, s, v, w, u1, u2, e, a_plus3, NULL); in ecc_verify_hash_ex()
A Decc_recover_key.c39 void *r, *s, *v, *w, *t1, *t2, *u1, *u2, *v1, *v2, *e, *x, *y, *a_plus3; in ecc_recover_key() local
56 …if ((err = mp_init_multi(&r, &s, &v, &w, &t1, &t2, &u1, &u2, &v1, &v2, &e, &x, &y, &a_plus3, NULL)… in ecc_recover_key()
211 …if ((err = mp_mulmod(e, w, p, u1)) != CRYPT_OK) … in ecc_recover_key()
233 …if ((err = ltc_mp.ecc_mul2add(mG, u1, mQ, u2, mG, ma, m)) != CRYPT_OK) … in ecc_recover_key()
261 mp_clear_multi(a_plus3, y, x, e, v2, v1, u2, u1, t2, t1, w, v, s, r, NULL); in ecc_recover_key()
/optee_os/lib/libmbedtls/mbedtls/library/
A Decdsa.c63 mbedtls_mpi u1, u2; /* intermediate values */ member
75 mbedtls_mpi_init( &ctx->u1 ); in ecdsa_restart_ver_init()
88 mbedtls_mpi_free( &ctx->u1 ); in ecdsa_restart_ver_free()
605 mbedtls_mpi e, s_inv, u1, u2; in ecdsa_verify_restartable() local
607 mbedtls_mpi *pu1 = &u1, *pu2 = &u2; in ecdsa_verify_restartable()
611 mbedtls_mpi_init( &u1 ); mbedtls_mpi_init( &u2 ); in ecdsa_verify_restartable()
623 pu1 = &rs_ctx->ver->u1; in ecdsa_verify_restartable()
696 mbedtls_mpi_free( &u1 ); mbedtls_mpi_free( &u2 ); in ecdsa_verify_restartable()
A Dbignum.c1850 static mbedtls_mpi_uint mbedtls_int_div_int( mbedtls_mpi_uint u1, in mbedtls_int_div_int() argument
1866 if( 0 == d || u1 >= d ) in mbedtls_int_div_int()
1874 dividend = (mbedtls_t_udbl) u1 << biL; in mbedtls_int_div_int()
1897 u1 = u1 << s; in mbedtls_int_div_int()
1898 u1 |= ( u0 >> ( biL - s ) ) & ( -(mbedtls_mpi_sint)s >> ( biL - 1 ) ); in mbedtls_int_div_int()
1910 q1 = u1 / d1; in mbedtls_int_div_int()
1911 r0 = u1 - d1 * q1; in mbedtls_int_div_int()
1921 rAX = ( u1 * radix ) + ( u0_msw - q1 * d ); in mbedtls_int_div_int()
2222 mbedtls_mpi_uint u0, u1, *d; in mpi_montmul() local
2236 u1 = ( d[0] + u0 * B->p[0] ) * mm; in mpi_montmul()
[all …]
/optee_os/core/lib/libtomcrypt/src/stream/sosemanuk/
A Dsosemanuk.c659 S(u0, u1, u2, u3, u4); \ in _sosemanuk_internal()
678 ulong32 u0, u1, u2, u3, u4; in _sosemanuk_internal() local
682 STEP(01, 02, 03, 04, 05, 06, 07, 08, 09, 00, v1, u1); in _sosemanuk_internal()
687 STEP(05, 06, 07, 08, 09, 00, 01, 02, 03, 04, v1, u1); in _sosemanuk_internal()
692 STEP(09, 00, 01, 02, 03, 04, 05, 06, 07, 08, v1, u1); in _sosemanuk_internal()
697 STEP(03, 04, 05, 06, 07, 08, 09, 00, 01, 02, v1, u1); in _sosemanuk_internal()
702 STEP(07, 08, 09, 00, 01, 02, 03, 04, 05, 06, v1, u1); in _sosemanuk_internal()

Completed in 13 milliseconds