Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ePass: Do not return positive exit code when the digest is not supported
The code paths for the ECDSA signatures provide SHA1 and SHA256 padding. Any other padding should return an error as unsopported operation, but given that the variable r was reused for some temporary calculation it returned positive value, which was handled by the calling code as a success. Moreover, the calling code in use_key() function skipped the key operation with this return value causing returning the uninitialized memory to the calling process.
- Loading branch information