| /optee_os/core/drivers/pm/sam/ |
| H A D | pm_suspend.S | 27 tmp2 .req r5 label 96 ldr tmp2, .sramc_base 99 ldr tmp1, [tmp2, #UDDRC_PCTRL_0] 101 str tmp1, [tmp2, #UDDRC_PCTRL_0] 103 ldr tmp1, [tmp2, #UDDRC_PCTRL_1] 105 str tmp1, [tmp2, #UDDRC_PCTRL_1] 107 ldr tmp1, [tmp2, #UDDRC_PCTRL_2] 109 str tmp1, [tmp2, #UDDRC_PCTRL_2] 111 ldr tmp1, [tmp2, #UDDRC_PCTRL_3] 113 str tmp1, [tmp2, #UDDRC_PCTRL_3] [all …]
|
| /optee_os/core/lib/libtomcrypt/src/pk/rsa/ |
| H A D | rsa_make_key.c | 14 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/core/lib/libtomcrypt/src/pk/dsa/ |
| H A D | dsa_verify_key.c | 46 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/core/lib/libtomcrypt/src/ciphers/twofish/ |
| H A D | twofish.c | 347 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()
|
| /optee_os/core/arch/arm/crypto/ |
| H A D | sm4_armv8a_aese_a64.S | 139 .macro sbox, des, src, tmp1, tmp2 argument 141 multi_matrix \des, TAHMaskV, TALMaskV, \tmp2 144 multi_matrix \des, ATAHMaskV, ATALMaskV, \tmp2 147 .macro sbox_double, des0, src0, des1, src1, tmp1, tmp2 argument 150 multi_matrix \des0, TAHMaskV, TALMaskV, \tmp2 151 multi_matrix \des1, TAHMaskV, TALMaskV, \tmp2 154 multi_matrix \des0, ATAHMaskV, ATALMaskV, \tmp2 156 multi_matrix \des1, ATAHMaskV, ATALMaskV, \tmp2
|