public final class McElieceKeyPairGeneratorSpi extends KeyPairGeneratorSpi
Constructor and Description |
---|
McElieceKeyPairGeneratorSpi() |
Modifier and Type | Method and Description |
---|---|
KeyPair |
generateKeyPair()
Generates a KeyPair consisting of a McEliecePrivateKey
and McEliecePublicKey depending on the initialization
of this object.
|
void |
initialize(AlgorithmParameterSpec params,
SecureRandom random)
Initializes the key pair generator using the specified parameter set
and source of randomness.
|
void |
initialize(int keysize,
SecureRandom random) |
public void initialize(int keysize, SecureRandom random) throws InvalidParameterException
initialize
in class KeyPairGeneratorSpi
InvalidParameterException
public void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException
initialize
in class KeyPairGeneratorSpi
params
- the parameter set used to generate the keys.random
- a source of randomInvalidAlgorithmParameterException
- if the given parameters are inappropriate for this key pair generator.public KeyPair generateKeyPair()
generateKeyPair
in class KeyPairGeneratorSpi
Copyright © 2020–2023 Stiftung SIC. All rights reserved.