Interface PrimalityTestParamSpec
- All Superinterfaces:
AlgorithmParameterSpec
The
PrimalityTestParamSpec interface can be used for key
pair generation (e.g RSA) for configuring the primality test algorithm.- Since:
- 3.1
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortDefines the Fermat probabilistic primality teststatic final shortDefines the Miller Rabin probabilistic primality test -
Method Summary
-
Field Details
-
MILLER_RABIN_TEST
static final short MILLER_RABIN_TESTDefines the Miller Rabin probabilistic primality test- See Also:
-
FERMAT_TEST
static final short FERMAT_TESTDefines the Fermat probabilistic primality test- See Also:
-
-
Method Details
-
getType
short getType()Returns the constant defining the primality test to use- Returns:
- the primality test type
-
getRounds
short getRounds()Gets the number of rounds to perform primality test.- Returns:
- number of testing rounds
-