Skip to content

Have a spare copy of the public and private keys #30

@sfluhrer

Description

@sfluhrer

Right now, the get_public_key and get_private_key functions return a const pointer into the live copy of the public/private key. What that implies is that we really assume that the application won't overwrite those buffers, and if they do, bad things would happen.

Now, we could view as such an overwrite is violating the API, and so we needn't care about these bad things. On the other hand, keeping a spare copy of the public and private keys would be safer.

This issue is to ask whether it's worth going to that extent

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions