| Modifier and Type | Class and Description |
|---|---|
| public static class | FipsDSA.
Parameters for DSA domain parameter generation. |
| public static class | FipsDSA.
Domain parameter generator for DSA. |
| public static class | FipsDSA.
Domain parameter validator for DSA. |
| private static class | |
| public static class | FipsDSA.
Parameters for DSA key pair generation. |
| public static class | FipsDSA.
DSA key pair generator. |
| public static class | FipsDSA.
Operator factory for creating DSA based signing and verification operators. |
| public static class | FipsDSA.
Parameters for DSA signatures. |
| Modifier and Type | Field and Description |
|---|---|
| public static final FipsAlgorithm | ALGORITHM
DSA key marker, can be used for creating general purpose DSA keys. |
| public static final FipsDSA. | DSA
DSA algorithm parameter source - default is SHA-1 |
| private static final EngineProvider |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static DsaParameters | |
| private static DsaPrivateKeyParameters | |
| private static void |
| ALGORITHM | back to summary |
|---|---|
| public static final FipsAlgorithm ALGORITHM DSA key marker, can be used for creating general purpose DSA keys. | |
| DSA | back to summary |
|---|---|
| public static final FipsDSA. DSA algorithm parameter source - default is SHA-1 | |
| ENGINE_PROVIDER | back to summary |
|---|---|
| private static final EngineProvider<DsaSigner> ENGINE_PROVIDER | |
| FipsDSA | back to summary |
|---|---|
| private FipsDSA() | |
| getDomainParams | back to summary |
|---|---|
| private static DsaParameters getDomainParams(DSADomainParameters dsaParams) | |
| getLwKey | back to summary |
|---|---|
| private static DsaPrivateKeyParameters getLwKey(final AsymmetricDSAPrivateKey privKey) | |
| validateKeyPair | back to summary |
|---|---|
| private static void validateKeyPair(AsymmetricCipherKeyPair kp) | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final int | |
| private final BigInteger | |
| private final BigInteger | |
| private final byte[] | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | DomainGenParameters(int
desired length of prime P in bits (the effective key size). strength)Construct just from strength (L) with a default value for N (160 for 1024, 256 for greater) and a default certainty. |
| public | DomainGenParameters(int
desired length of prime P in bits (the effective key size). strength, int certainty level for prime number generation. certainty)Construct just from strength (L) with a default value for N (160 for 1024, 256 for greater). |
| public | DomainGenParameters(int
desired length of prime P in bits (the effective key size). L, int desired length of prime Q in bits. N, int certainty level for prime number generation. certainty)Construct without a usage index, this will do a random construction of G. |
| public | DomainGenParameters(int
desired length of prime P in bits (the effective key size). L, int desired length of prime Q in bits. N, int certainty level for prime number generation. certainty, int a valid usage index. usageIndex)Construct for a specific usage index - this has the effect of using verifiable canonical generation of G. |
| public | DomainGenParameters(BigInteger
the prime P. p, BigInteger the prime Q. q)Construct from initial prime values, this will do a random construction of G. |
| public | DomainGenParameters(BigInteger
the prime P. p, BigInteger the prime Q. q, byte[] seed used in the generation of (p, q). seed, int a valid usage index. usageIndex)Construct for a specific usage index and initial prime values - this has the effect of using verifiable canonical generation of G. |
| pack-priv | DomainGenParameters(int L, int N, int certainty, BigInteger p, BigInteger q, byte[] seed, int usageIndex)
|
| certainty | back to summary |
|---|---|
| private final int certainty | |
| L | back to summary |
|---|---|
| private final int L | |
| N | back to summary |
|---|---|
| private final int N | |
| p | back to summary |
|---|---|
| private final BigInteger p | |
| q | back to summary |
|---|---|
| private final BigInteger q | |
| seed | back to summary |
|---|---|
| private final byte[] seed | |
| usageIndex | back to summary |
|---|---|
| private final int usageIndex | |
| DomainGenParameters | back to summary |
|---|---|
| public DomainGenParameters(int strength) Construct just from strength (L) with a default value for N (160 for 1024, 256 for greater) and a default certainty.
| |
| DomainGenParameters | back to summary |
|---|---|
| public DomainGenParameters(int strength, int certainty) Construct just from strength (L) with a default value for N (160 for 1024, 256 for greater).
| |
| DomainGenParameters | back to summary |
|---|---|
| public DomainGenParameters(int L, int N, int certainty) Construct without a usage index, this will do a random construction of G.
| |
| DomainGenParameters | back to summary |
|---|---|
| public DomainGenParameters(int L, int N, int certainty, int usageIndex) Construct for a specific usage index - this has the effect of using verifiable canonical generation of G.
| |
| DomainGenParameters | back to summary |
|---|---|
| public DomainGenParameters(BigInteger p, BigInteger q) Construct from initial prime values, this will do a random construction of G.
| |
| DomainGenParameters | back to summary |
|---|---|
| public DomainGenParameters(BigInteger p, BigInteger q, byte[] seed, int usageIndex) Construct for a specific usage index and initial prime values - this has the effect of using verifiable canonical generation of G.
| |
| DomainGenParameters | back to summary |
|---|---|
| pack-priv DomainGenParameters(int L, int N, int certainty, BigInteger p, BigInteger q, byte[] seed, int usageIndex) | |
| Modifier and Type | Field and Description |
|---|---|
| private final FipsDigestAlgorithm | |
| private final FipsDSA. | |
| private final SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | DomainParametersGenerator(FipsDSA.
domain generation parameters. parameters,a source of randomness for the parameter generation. random)Default constructor using SHA-256 as the digest. |
| public | DomainParametersGenerator(FipsDigestAlgorithm
digest to use in prime calculations. digestAlgorithm, FipsDSA.domain generation parameters. parameters,a source of randomness for the parameter generation. random)Base constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public DSADomainParameters | Returns: a new set of DSADomainParametersGenerate a new set of DSA domain parameters. |
| digestAlgorithm | back to summary |
|---|---|
| private final FipsDigestAlgorithm digestAlgorithm | |
| parameters | back to summary |
|---|---|
| private final FipsDSA. | |
| random | back to summary |
|---|---|
| private final SecureRandom random | |
| DomainParametersGenerator | back to summary |
|---|---|
| public DomainParametersGenerator(FipsDSA. Default constructor using SHA-256 as the digest.
| |
| DomainParametersGenerator | back to summary |
|---|---|
| public DomainParametersGenerator(FipsDigestAlgorithm digestAlgorithm, FipsDSA. Base constructor.
| |
| generateDomainParameters | back to summary |
|---|---|
| public DSADomainParameters generateDomainParameters() Generate a new set of DSA domain parameters.
| |
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final FipsDigestAlgorithm | |
| private final SecureRandom | |
| private final FipsDSA. |
| Access | Constructor and Description |
|---|---|
| public | DomainParametersValidator(FipsDigestAlgorithm
digest to use in prime calculations. digestAlgorithm, SecureRandom source of randomness for prime number testing. random)Base constructor - for 186-4 |
| public | DomainParametersValidator(FipsDSA.
the version of DSS the validator is for. version,digest to use in prime calculations. digestAlgorithm, SecureRandom source of randomness for prime number testing. random)Base constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private BigInteger | |
| private static int | |
| private byte[] | |
| public boolean | Returns: true if the generator is partially valid, false otherwise.the prime P. p, BigInteger the prime Q. q, BigInteger the generator G associated with P and Q. g)Do a partial validation of g against p and q. |
| private boolean | |
| public boolean | Returns: true if the generator is partially valid, false otherwise.the prime P. p, BigInteger the prime Q. q, byte[] the domain parameter seed used to generate p and q. seed, int the 8 bit usage index for G. index, BigInteger the generator G associated with P and Q. g)Do a full validation of g against p and q by including the seed and index associated with g's related parameters. |
| public boolean | Returns: true if the P and Q values are the expected ones, false otherwise.the prime P. p, BigInteger the prime Q. q, byte[] the seed P and Q were derived from. seed, int the number of iterations required to derive P. counter)Validate P and Q against the passed in seed and counter. |
| private byte[] |
| digestAlgorithm | back to summary |
|---|---|
| private final FipsDigestAlgorithm digestAlgorithm | |
| random | back to summary |
|---|---|
| private final SecureRandom random | |
| version | back to summary |
|---|---|
| private final FipsDSA. | |
| DomainParametersValidator | back to summary |
|---|---|
| public DomainParametersValidator(FipsDigestAlgorithm digestAlgorithm, SecureRandom random) Base constructor - for 186-4
| |
| DomainParametersValidator | back to summary |
|---|---|
| public DomainParametersValidator(FipsDSA. Base constructor.
| |
| digest | back to summary |
|---|---|
| private BigInteger digest(Digest hash, byte[] input) | |
| getMinimumIterations | back to summary |
|---|---|
| private static int getMinimumIterations(int L) | |
| inc | back to summary |
|---|---|
| private byte[] inc(byte[] value) | |
| isPartiallyValidG | back to summary |
|---|---|
| public boolean isPartiallyValidG(BigInteger p, BigInteger q, BigInteger g) Do a partial validation of g against p and q.
| |
| isProbablePrime | back to summary |
|---|---|
| private boolean isProbablePrime(BigInteger x, int iterations) | |
| isValidG | back to summary |
|---|---|
| public boolean isValidG(BigInteger p, BigInteger q, byte[] seed, int index, BigInteger g) Do a full validation of g against p and q by including the seed and index associated with g's related parameters.
| |
| isValidPAndQ | back to summary |
|---|---|
| public boolean isValidPAndQ(BigInteger p, BigInteger q, byte[] seed, int counter) Validate P and Q against the passed in seed and counter.
| |
| seedPlus1 | back to summary |
|---|---|
| private byte[] seedPlus1(byte[] seed) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final FipsDSA. | |
| public static final FipsDSA. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FipsDSA. | |
| public static FipsDSA. |
| FIPS_PUB_186_2 | back to summary |
|---|---|
| public static final FipsDSA. | |
| FIPS_PUB_186_4 | back to summary |
|---|---|
| public static final FipsDSA. | |
| Version | back to summary |
|---|---|
| private Version() | |
| valueOf | back to summary |
|---|---|
| public static FipsDSA. | |
| values | back to summary |
|---|---|
| public static FipsDSA. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public DsaSigner |
| DsaProvider | back to summary |
|---|---|
| private DsaProvider() | |
| createEngine | back to summary |
|---|---|
| public DsaSigner createEngine() Implements org. | |
| Modifier and Type | Field and Description |
|---|---|
| private final DSADomainParameters |
| Access | Constructor and Description |
|---|---|
| public | KeyGenParameters(DSADomainParameters
DSA domain parameters representing the parameter set any generated keys will be for. domainParameters)Base constructor for the default algorithm ID. |
| Modifier and Type | Method and Description |
|---|---|
| public DSADomainParameters | Returns: the DSA domain parameter set.Return the DSA domain parameters for this object. |
| domainParameters | back to summary |
|---|---|
| private final DSADomainParameters domainParameters | |
| KeyGenParameters | back to summary |
|---|---|
| public KeyGenParameters(DSADomainParameters domainParameters) Base constructor for the default algorithm ID.
| |
| getDomainParameters | back to summary |
|---|---|
| public DSADomainParameters getDomainParameters() Return the DSA domain parameters for this object.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final DSADomainParameters | |
| private final DsaKeyPairGenerator | |
| private final DsaKeyGenerationParameters |
| Access | Constructor and Description |
|---|---|
| public | KeyPairGenerator(FipsDSA.
domain parameters and algorithm for the generated key. keyGenParameters,a source of randomness for calculating the private value. random)Construct a key pair generator for DSA keys, |
| Modifier and Type | Method and Description |
|---|---|
| public AsymmetricKeyPair | Returns: a new AsymmetricKeyPair containing a DSA key pair.Implements abstract org. Implements org. |
| domainParameters | back to summary |
|---|---|
| private final DSADomainParameters domainParameters | |
| engine | back to summary |
|---|---|
| private final DsaKeyPairGenerator engine | |
| param | back to summary |
|---|---|
| private final DsaKeyGenerationParameters param | |
| KeyPairGenerator | back to summary |
|---|---|
| public KeyPairGenerator(FipsDSA. Construct a key pair generator for DSA keys,
| |
| generateKeyPair | back to summary |
|---|---|
| public AsymmetricKeyPair Implements abstract org. Implements org. Generate a new DSA key pair.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public FipsOutputSignerUsingSecureRandom | Returns: an OutputSignerUsingSecureRandom.the key to initialize the signature generator with. key, final FipsDSA.parameters required to configure the generation. parametersImplements abstract org. Implements org. |
| public FipsOutputVerifier | Returns: an OutputVerifier.the key to initialize the verifier with. key, final FipsDSA.parameters required to configure the verification. parametersImplements abstract org. Implements org. |
| OperatorFactory | back to summary |
|---|---|
| public OperatorFactory() | |
| createSigner | back to summary |
|---|---|
| public FipsOutputSignerUsingSecureRandom Implements abstract org. Implements org. Return a generator of DSA signatures. Note this operator needs to be associated with a SecureRandom to be fully initialised.
| |
| createVerifier | back to summary |
|---|---|
| public FipsOutputVerifier Implements abstract org. Implements org. Create a verifier for DSA signatures.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final FipsDigestAlgorithm |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public FipsDigestAlgorithm | Returns: the digest algorithmReturn the algorithm for the underlying digest these parameters will use. |
| public FipsDSA. | Returns: a new parameter for signature generation.the digest to use for signature generation. digestAlgorithm)Return a new parameter set with for the passed in digest algorithm. |
| digestAlgorithm | back to summary |
|---|---|
| private final FipsDigestAlgorithm digestAlgorithm | |
| Parameters | back to summary |
|---|---|
| pack-priv Parameters() | |
| Parameters | back to summary |
|---|---|
| private Parameters(FipsDigestAlgorithm digestAlgorithm) | |
| getDigestAlgorithm | back to summary |
|---|---|
| public FipsDigestAlgorithm getDigestAlgorithm() Return the algorithm for the underlying digest these parameters will use.
| |
| withDigestAlgorithm | back to summary |
|---|---|
| public FipsDSA. Return a new parameter set with for the passed in digest algorithm.
| |