Searched refs:BigNumContext (Results 1 – 4 of 4) sorted by relevance
17 use openssl::bn::{BigNum, BigNumContext};61 let mut bncontext = BigNumContext::new()?; in from_sec1_bytes()69 let mut bncontext = BigNumContext::new().unwrap(); in to_sec1_bytes()87 let mut bnctx = openssl::bn::BigNumContext::new()?;126 let mut bncontext = BigNumContext::new().unwrap(); in public_key_bytes()
996 use crate::bn::{BigNum, BigNumContext};1025 let mut ctx = BigNumContext::new().unwrap(); in ec_group_from_components()1034 let mut ctx = BigNumContext::new().unwrap(); in ec_point_set_affine()1053 let mut ctx = BigNumContext::new().unwrap(); in ec_group_set_generator()1104 let mut ctx = BigNumContext::new().unwrap(); in cofactor()1130 let mut ctx = BigNumContext::new().unwrap(); in point_bytes()1144 let mut ctx = BigNumContext::new().unwrap(); in point_owned()1152 let mut ctx = BigNumContext::new().unwrap(); in mul_generator()1165 let mut ctx = BigNumContext::new().unwrap(); in generator()1175 let mut ctx = BigNumContext::new().unwrap(); in key_from_public_key()[all …]
95 pub struct BigNumContext;102 impl BigNumContext { implementation105 pub fn new() -> Result<BigNumContext, ErrorStack> { in new()108 cvt_p(ffi::BN_CTX_new()).map(BigNumContext) in new()115 pub fn new_secure() -> Result<BigNumContext, ErrorStack> { in new_secure()118 cvt_p(ffi::BN_CTX_secure_new()).map(BigNumContext) in new_secure()1270 let mut ctx = BigNumContext::new().unwrap(); in mul()1283 let mut ctx = BigNumContext::new().unwrap(); in div()1296 let mut ctx = BigNumContext::new().unwrap(); in rem()1369 use crate::bn::{BigNum, BigNumContext};[all …]
503 use crate::bn::BigNumContext;523 let mut ctx = BigNumContext::new().unwrap(); in test_pubkey_generation()