serenity icon indicating copy to clipboard operation
serenity copied to clipboard

LibCrypto: PK encrypt/decrypt/sign/verify methods do not return errors

Open ADKaster opened this issue 2 years ago • 0 comments

Instead these methods return void, and the implementations log their errors to dbgln. This makes it hard for callers to react to errors and report them properly. Currently thinking of Web Crypto as one user.

This is probably an issue throughout LibCrypto/LibTLS as well? I believe the DER decoder methods have the same issue.

ADKaster avatar Mar 15 '24 20:03 ADKaster