Class ExampleScenario10

Object
ExampleScenario10

public class ExampleScenario10 extends Object
Scenario 10 Example (non-streaming):
  • Generates a post-quantum key (ML-KEM-1024) via generateKey(GenerateKeySpec)
  • Exports the resulting key data (JSON) to a file
  • Encrypts a file (non-streaming) with the newly created key
  • Decrypts the file (non-streaming)
  • Validates that the decrypted data matches the original

This scenario illustrates a straightforward (utilitarian) approach to performing a non-streaming encryption/decryption flow using an ML-KEM-1024 key. It also demonstrates exporting the key data (including the public portion) for reference or backup.

  • Constructor Details

    • ExampleScenario10

      public ExampleScenario10()
  • Method Details

    • main

      public static void main(String[] args)
      Entry point for executing Scenario 10.
      Parameters:
      args - Not used.