Home
last modified time | relevance | path

Searched refs:tmp2 (Results 1 – 4 of 4) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_make_key.c14 void *p, *q, *tmp1, *tmp2; in s_rsa_make_key() local
25 if ((err = mp_init_multi(&p, &q, &tmp1, &tmp2, LTC_NULL)) != CRYPT_OK) { in s_rsa_make_key()
35 …if ((err = mp_gcd( tmp1, e, tmp2)) != CRYPT_OK) { goto cleanup; } /* tmp2 = gcd(p-1… in s_rsa_make_key()
36 …} while (mp_cmp_d( tmp2, 1) != 0); /* while e div… in s_rsa_make_key()
42 …if ((err = mp_gcd( tmp1, e, tmp2)) != CRYPT_OK) { goto cleanup; } /* tmp2 = gcd(q-1, e)… in s_rsa_make_key()
43 …} while (mp_cmp_d( tmp2, 1) != 0); /* while e divi… in s_rsa_make_key()
46 …if ((err = mp_sub_d( p, 1, tmp2)) != CRYPT_OK) { goto cleanup; } /* tmp2 = p-1 … in s_rsa_make_key()
48 …if ((err = mp_lcm( tmp1, tmp2, tmp1)) != CRYPT_OK) { goto cleanup; } /* tmp1 = lcm(… in s_rsa_make_key()
62 …if ((err = mp_sub_d( q, 1, tmp2)) != CRYPT_OK) { goto errkey; } /* tmp2 = q-1… in s_rsa_make_key()
64 …if ((err = mp_mod( key->d, tmp2, key->dQ)) != CRYPT_OK) { goto errkey; } /* dQ = d mod… in s_rsa_make_key()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_verify_key.c46 void *tmp1, *tmp2; in dsa_int_validate_pqg() local
65 if ((err = mp_init_multi(&tmp1, &tmp2, LTC_NULL)) != CRYPT_OK) { return err; } in dsa_int_validate_pqg()
69 if ((err = mp_div(tmp1, key->q, tmp1, tmp2)) != CRYPT_OK) { goto error; } in dsa_int_validate_pqg()
70 if (mp_iszero(tmp2) != LTC_MP_YES) { in dsa_int_validate_pqg()
87 mp_clear_multi(tmp2, tmp1, LTC_NULL); in dsa_int_validate_pqg()
/optee_os-3.20.0/core/drivers/pm/sam/
A Dpm_suspend.S23 tmp2 .req r5 label
109 ldrne tmp2, [tmp1, #0]
113 ldrne tmp2, [tmp1, #0x10]
170 ldr tmp2, .pm_mode
173 cmp tmp2, #AT91_PM_ULP0_FAST
213 cmp tmp2, #AT91_PM_ULP0_FAST
378 ldr tmp2, .saved_pllar
381 str tmp2, [pmc, #AT91_CKGR_PLLAR]
384 tst tmp2, #(AT91_PMC_MUL & 0xff0000)
437 ldr tmp2, .saved_mckr
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/twofish/
A Dtwofish.c347 unsigned char tmp[4], tmp2[4], M[8*4]; in s_twofish_setup() local
387 h_func(tmp, tmp2, M, k, 0); in s_twofish_setup()
388 LOAD32L(A, tmp2); in s_twofish_setup()
394 h_func(tmp, tmp2, M, k, 1); in s_twofish_setup()
395 LOAD32L(B, tmp2); in s_twofish_setup()

Completed in 6 milliseconds