Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

propertyiGroup.PrimeModulus

property PrimeModulus: iDSInteger read GetPrimeModulus write SetPrimeModulus;
The prime p defining the group's underlying field: the modulus in g^k mod p for finite-field (DH/DSA-style) groups, or the field prime of an elliptic curve. Implemented by both the FFC group type (iDiscreteLogField, see StreamSec.DSI.FFC.pas) and the EC curve types (StreamSec.DSI.ECArith.pas / CurveXArith.pas / CurveEdArith.pas); read by GroupOpIteration/ExpModTo-style code during key generation, key agreement and signing on both TLS/SSH client and server sides. Application code typically never sets this directly -- it comes from selecting a standard curve or DH/DSA parameter set.