Package javacard.security
Interface PrimalityTestParamSpec
-
- All Superinterfaces:
AlgorithmParameterSpec
public interface PrimalityTestParamSpec extends AlgorithmParameterSpec
ThePrimalityTestParamSpec
interface can be used for key pair generation (e.g RSA) for configuring the primality test algorithm.- Since:
- 3.1
- See Also:
KeyPair.genKeyPair(AlgorithmParameterSpec)
-
-
Field Summary
Fields Modifier and Type Field Description static short
FERMAT_TEST
Defines the Fermat probabilistic primality teststatic short
MILLER_RABIN_TEST
Defines the Miller Rabin probabilistic primality test
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description short
getRounds()
Gets the number of rounds to perform primality test.short
getType()
Returns the constant defining the primality test to use
-
-
-
Field Detail
-
MILLER_RABIN_TEST
static final short MILLER_RABIN_TEST
Defines the Miller Rabin probabilistic primality test- See Also:
- Constant Field Values
-
FERMAT_TEST
static final short FERMAT_TEST
Defines the Fermat probabilistic primality test- See Also:
- Constant Field Values
-
-