pub struct EcGroup { /* private fields */ }
Implementations§
source§impl EcGroup
impl EcGroup
pub fn new(group: EcGroupId) -> Result<EcGroup>
sourcepub fn from_parameters(
p: Mpi,
a: Mpi,
b: Mpi,
g_x: Mpi,
g_y: Mpi,
order: Mpi
) -> Result<EcGroup>
pub fn from_parameters( p: Mpi, a: Mpi, b: Mpi, g_x: Mpi, g_y: Mpi, order: Mpi ) -> Result<EcGroup>
Initialize an EcGroup with custom group parameters.
HAZMAT: This function DOES NOT perform a full check on parameters against all known attacks. The caller MUST make sure that parameters are trusted. Failing to comply with this requirement may result in the use of INSECURE curves. Prefer EcGroup::new with known curves listed in EcGroupId.