crypto: fix error code handling in ParsePrivateKey()
#42400
Closed
ParsePrivateKey()
#42400