5.7.9. SE05X Export Transient objects

This example does following steps:

  • Generate a Transient ECC Key

  • Export that to a blob

  • Sign some dummy data with that key

  • Store the signature in local file for future use.

After running this example, you can run Section 5.7.10 SE05X Import Transient objects

Note

This example needs File system access and hence it is not applicable for embedded platforms.

The exported files are current working directory.

5.7.9.1. Visual Studio - Debug settings

Kindly set debug Working Directory to $(TargetDir) in project’s debug stettings. This ensures that the examples SE05X Export Transient objects and SE05X Import Transient objects work seamlessly.

5.7.9.2. Console output

If everything is successful, the output will be similar to:

App   :INFO :Running Example ex_sss_export.c
App   :INFO :Export ec key to 'export_serializedECKey.bin'!!!
App   :INFO :Signing Successful !!!
App   :INFO :Export signature key to 'export_serializedSingedData.bin'.
App   :INFO :ex_sss_export Example Success !!!...
App   :INFO :ex_sss Finished