Class ExampleScenario13

Object
ExampleScenario13

public final class ExampleScenario13 extends Object

Scenario 13 – Legacy RSA → PQC ML-KEM Migration

Friction-free migration of legacy RSA-2048 ciphertext to post-quantum protection (ML-KEM-768), without exposing plaintext outside the HSM:

  1. Generate a local PKCS#12 with RSA-2048 (Bouncy Castle).
  2. Import the PKCS#12 into Anka Secure (decrypt-only).
  3. Export the public key and encrypt a file client-side via encryptFileUtilityStream.
  4. Generate an ML-KEM-768 key on the platform.
  5. Server-side re-encryption: RSA-2048 → ML-KEM-768.
  6. Stream-decrypt ML-KEM ciphertext with new key.
  7. Validate that decrypted data matches original.

Requires CLI initialisation and Bouncy Castle on the classpath.

  • Constructor Details

    • ExampleScenario13

      public ExampleScenario13()
  • Method Details

    • main

      public static void main(String[] args)