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)?
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:
Is this really the intended behavior, or should the self tests be changed (if possible)?