Skip to content

Explore ctor crate or equivalent that calls before any other function is called #41

Description

@nnmkhang

We need to call symcrypt_init() each time we enter the API, since we do not know where the API will enter we must call it at every public entry point possible.

This can be avoided by using a crate like ctor that will call before any other function is called, doing this adds the complexity and maintenance of another crate.

Another approach is to refactor the code so that you must init a symcrypt object before calling other method, and all methods would extend from the symcrypt object. This would require refactoring of all of the code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions