DSAGenParameterSpec
class DSAGenParameterSpec : AlgorithmParameterSpec
| kotlin.Any | |
| ↳ | java.security.spec.DSAGenParameterSpec |
This immutable class specifies the set of parameters used for generating DSA parameters as specified in FIPS 186-3 Digital Signature Standard (DSS).
Summary
| Public constructors | |
|---|---|
DSAGenParameterSpec(primePLen: Int, subprimeQLen: Int)Creates a domain parameter specification for DSA parameter generation using |
|
DSAGenParameterSpec(primePLen: Int, subprimeQLen: Int, seedLen: Int)Creates a domain parameter specification for DSA parameter generation using |
|
| Public methods | |
|---|---|
| Int |
Returns the desired length of the prime P of the to-be-generated DSA domain parameters in bits. |
| Int |
Returns the desired length of the domain parameter seed in bits. |
| Int |
Returns the desired length of the sub-prime Q of the to-be-generated DSA domain parameters in bits. |
Public constructors
DSAGenParameterSpec
DSAGenParameterSpec(
primePLen: Int,
subprimeQLen: Int)
Creates a domain parameter specification for DSA parameter generation using primePLen and subprimeQLen. The value of subprimeQLen is also used as the default length of the domain parameter seed in bits.
| Parameters | |
|---|---|
primePLen |
Int: the desired length of the prime P in bits. |
subprimeQLen |
Int: the desired length of the sub-prime Q in bits. |
| Exceptions | |
|---|---|
java.lang.IllegalArgumentException |
if primePLen or subprimeQLen is illegal per the specification of FIPS 186-3. |
DSAGenParameterSpec
DSAGenParameterSpec(
primePLen: Int,
subprimeQLen: Int,
seedLen: Int)
Creates a domain parameter specification for DSA parameter generation using primePLen, subprimeQLen, and seedLen.
| Parameters | |
|---|---|
primePLen |
Int: the desired length of the prime P in bits. |
subprimeQLen |
Int: the desired length of the sub-prime Q in bits. |
seedLen |
Int: the desired length of the domain parameter seed in bits, shall be equal to or greater than subprimeQLen. |
| Exceptions | |
|---|---|
java.lang.IllegalArgumentException |
if primePLenLen, subprimeQLen, or seedLen is illegal per the specification of FIPS 186-3. |
Public methods
getPrimePLength
fun getPrimePLength(): Int
Returns the desired length of the prime P of the to-be-generated DSA domain parameters in bits.
| Return | |
|---|---|
Int |
the length of the prime P. |
getSeedLength
fun getSeedLength(): Int
Returns the desired length of the domain parameter seed in bits.
| Return | |
|---|---|
Int |
the length of the domain parameter seed. |
getSubprimeQLength
fun getSubprimeQLength(): Int
Returns the desired length of the sub-prime Q of the to-be-generated DSA domain parameters in bits.
| Return | |
|---|---|
Int |
the length of the sub-prime Q. |