Searched refs:BigInt (Results 1 – 2 of 2) sorted by relevance
/optee_rust/examples/big_int-rs/ta/src/ |
A D | main.rs | 20 use optee_utee::BigInt; 49 fn compare(n0: &BigInt, n1: &BigInt) -> Result<()> { in compare() argument 58 fn convert(n0: &BigInt, n1: &BigInt) -> Result<()> { in convert() argument 68 fn add(n0: &BigInt, n1: &BigInt) -> Result<()> { in add() argument 69 let res = BigInt::add(n0, n1); in add() 74 fn sub(n0: &BigInt, n1: &BigInt) -> Result<()> { in sub() argument 80 fn multiply(n0: &BigInt, n1: &BigInt) -> Result<()> { in multiply() argument 86 fn divide(n0: &BigInt, n1: &BigInt) -> Result<()> { in divide() argument 92 fn module(n0: &BigInt, n1: &BigInt) -> Result<()> { in module() argument 104 let mut n0 = BigInt::new(64); in invoke_command() [all …]
|
/optee_rust/optee-utee/src/ |
A D | arithmetical.rs | 26 pub struct BigInt(Vec<BigIntUnit>); struct 28 impl BigInt { impls 240 n: &BigInt, in convert_from_big_int_fmm() argument 254 impl fmt::Display for BigInt { implementation 272 pub fn new(bits: u32, modulus: BigInt) -> Result<Self> { in new() 301 pub fn convert_from_big_int(&mut self, src: &BigInt, n: &BigInt, context: BigIntFMMContext) { in convert_from_big_int() argument 317 n: &BigInt, in compute_fmm() argument
|
Completed in 3 milliseconds