public class MayoKeyPairGenerator extends java.lang.Object implements AsymmetricCipherKeyPairGenerator
This generator produces MayoPublicKeyParameters and MayoPrivateKeyParameters based on the
MAYO algorithm parameters. The implementation follows the specification defined in the official MAYO
documentation and reference implementation.
References:
| Constructor and Description |
|---|
MayoKeyPairGenerator() |
| Modifier and Type | Method and Description |
|---|---|
AsymmetricCipherKeyPair |
generateKeyPair()
Generates a new asymmetric key pair following the MAYO algorithm specifications.
|
void |
init(KeyGenerationParameters param)
intialise the key pair generator.
|
public void init(KeyGenerationParameters param)
AsymmetricCipherKeyPairGeneratorinit in interface AsymmetricCipherKeyPairGeneratorparam - the parameters the key pair is to be initialised with.public AsymmetricCipherKeyPair generateKeyPair()
The key generation process follows these steps:
MayoParametersgenerateKeyPair in interface AsymmetricCipherKeyPairGenerator