Class MayoKeyPairGenerator

    • Constructor Detail

      • MayoKeyPairGenerator

        public MayoKeyPairGenerator()
    • Method Detail

      • generateKeyPair

        public AsymmetricCipherKeyPair generateKeyPair()
        Generates a new asymmetric key pair following the MAYO algorithm specifications.

        The key generation process follows these steps:

        1. Initializes parameter dimensions from MayoParameters
        2. Generates secret key seed using a secure random generator
        3. Derives public key seed using SHAKE-256
        4. Expands matrix parameters P1 and P2
        5. Performs GF(16) matrix operations for key material generation
        6. Assembles and packages the public key components
        7. Securely clears temporary buffers containing sensitive data
        Specified by:
        generateKeyPair in interface AsymmetricCipherKeyPairGenerator
        Returns:
        A valid MAYO key pair containing public and private key parameters