Class ExampleScenario16
Object
ExampleScenario16
Scenario 16 Example:
- Create (generate) a post-quantum asymmetric key (ML-KEM-1024).
- Export the entire key (JSON), which includes the public key.
- Encrypt a file using the public key (utility-stream) without storing that key on the server.
- Decrypt the file using the private key (kid) in streaming mode.
- Validate that the decrypted content matches the original data.
This scenario demonstrates how to generate an ML-KEM-1024 key, export it to obtain the public key in JSON form, then encrypt a file on the client side with that public key (no need to store it on the server), and finally decrypt using the corresponding private key stored on the server.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ExampleScenario16
public ExampleScenario16()
-
-
Method Details
-
main
Main entry point for Scenario 16.- Parameters:
args
- Not used.
-