public final class EdDSA448KeyPairGenerator extends KeyPairGenerator
References:
[1] S. Josefsson, I. Liusvaara, "Edwards-curve Digital Signature Algorithm (EdDSA)", https://tools.ietf.org/html/rfc8032
EdKey
,
EdPublicKey
,
EdPublicKeySpec
,
EdDSAPrivateKey
,
EdDSAPrivateKeySpec
Constructor and Description |
---|
EdDSA448KeyPairGenerator()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
KeyPair |
generateKeyPair() |
void |
initialize(AlgorithmParameterSpec params)
Initializes the key pair generator with the given curve domain parameters.
|
void |
initialize(AlgorithmParameterSpec params,
SecureRandom random)
Initializes the key pair generator with the given curve domain parameters
and the specified
SecureRandom . |
void |
initialize(int keySize)
Initializes the key pair generator with curve domain parameters matching
the given key size.
|
void |
initialize(int keySize,
SecureRandom random)
Initializes the key pair generator with curve domain parameters matching
the given key size and the specified
SecureRandom . |
genKeyPair, getAlgorithm, getInstance, getInstance, getInstance, getProvider
public void initialize(int keySize)
initialize
in class KeyPairGenerator
keySize
- the size of the curve domain parameterspublic void initialize(int keySize, SecureRandom random)
SecureRandom
. Note that
[1] requires the SecureRandom
object to be a NIST SP800-90
PRNG. If the user specifies another type of PRNG, an exception will be
thrown.initialize
in class KeyPairGenerator
keySize
- the size of the curve domain parametersrandom
- the NIST SP800-90 PRNG; if null
an appropriate NIST
SP800-90 PRNG will be selected automaticallypublic void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException
SecureRandom
.initialize
in class KeyPairGenerator
params
- the curve domain parametersrandom
- some PRNG; if null
an appropriate NIST SP800-90 PRNG
will be selected automaticallyInvalidAlgorithmParameterException
public void initialize(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException
initialize
in class KeyPairGenerator
params
- the curve domain parametersInvalidAlgorithmParameterException
public KeyPair generateKeyPair()
generateKeyPair
in class KeyPairGenerator
Copyright © 2011–2022 Stiftung SIC. All rights reserved.