Class ExampleScenario15

Object
ExampleScenario15

public class ExampleScenario15 extends Object
Scenario 15 Example:
  • Create (generate) a post-quantum signature key (Dilithium5) via GenerateKeySpec.
  • Export the entire key (JSON), which includes the public key.
  • Sign a file in streaming mode with the private key on the server.
  • Verify the signature using verifySignatureUtilityStream, reading the exported JSON to extract the public key.

This scenario demonstrates how to generate a Dilithium5 key, sign a file in streaming mode, and verify the signature without storing the public key on the server. Instead, we use the verifySignatureUtilityStream method with the exported public key from the JSON file.

  • Constructor Details

    • ExampleScenario15

      public ExampleScenario15()
  • Method Details

    • main

      public static void main(String[] args)
      Main entry point for Scenario 15.
      Parameters:
      args - Not used.