Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/pk/rsa/
H A Drsa_exptmod.c29 void *rnd, *rndi /* inverse of rnd */; in rsa_exptmod() local
52 &rnd, &rndi, in rsa_exptmod()
70 err = mp_rand(rnd, mp_get_digit_count(key->N)); in rsa_exptmod()
76 err = mp_invmod(rnd, key->N, rndi); in rsa_exptmod()
82 err = mp_exptmod( rnd, key->e, key->N, rnd); in rsa_exptmod()
88 err = mp_mulmod( tmp, rnd, key->N, tmp); in rsa_exptmod()
166 rndi, rnd, in rsa_exptmod()
/optee_os/core/arch/arm/plat-rockchip/
H A Dplatform_rk3588.c112 uint32_t rnd = 0; in hw_get_random_bytes() local
155 rnd = io_read32(trng_s_base + TRNG_S_RAND); in hw_get_random_bytes()
159 memcpy((uint8_t *)buf + (blen - remaining), &rnd, copy_len); in hw_get_random_bytes()
/optee_os/core/drivers/
H A Dstm32_tamp.c1005 uint32_t rnd = 0; in stm32_tamp_set_seed() local
1007 if (crypto_rng_read(&rnd, sizeof(uint32_t))) in stm32_tamp_set_seed()
1010 io_write32(base + _TAMP_ATSEEDR, rnd); in stm32_tamp_set_seed()
/optee_os/ldelf/
H A Dta_elf.c768 size_t rnd = 0; in get_pad_begin() local
778 rnd = rnd32 % (max - min); in get_pad_begin()
781 return (min + rnd) * SMALL_PAGE_SIZE; in get_pad_begin()