Skip to content

API contract for init() expects re-initing #426

@nils-ohlmeier

Description

@nils-ohlmeier

It surprised me to learn the internal self test calls init() several times and appears to expect that the underlying crypto library get re-initialized with the new key.

From other APIs I would expect the when calling an init function a second time it either:

  • after checking if init was called at least once already return right away
  • return an error on calling init more then once

Is this really the intended behavior, or should the self tests be changed (if possible)?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions