Skip to content

Add C example #4

Open
Open
@paulhowardarm

Description

@paulhowardarm

Summary

Add a simple C example to the "Hello, Parsec" demo suite.

Details

A C example would need to look slightly different from the other examples, all of which use a named key to perform RSA decryption of an input string. This pattern cannot be replicated in C, because there is no C interface to Parsec that understands Parsec's notion of named keys. It is therefore not possible to write a C Parsec program that uses a named key that was provisioned in advance using something like the parsec-tool, which is the general pattern of this demo. A C example would need to provision and use its own key and then delete it again at the end. A good starting point would be to copy/paste code from the test suite of the Parsec SE driver here: https://github.com/parallaxsecond/parsec-se-driver/tree/main/ci/c-tests - although this example actually performs an ECC signature, it could trivially be reworked to do the same kind of RSA workflow that the other demos are doing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions