On Thu, 2022-03-03 at 13:54 -0300, Santino Mazza wrote:
Hello Hans, thanks for your review. About returning the errors of bcrypt from a ncrypt function (Like the calls to BCryptOpenAlgorithmProvider() from NCryptImportKey), I try to prevent doing that because both functions return two different types of errors, ncrypt returns SECURITY_STATUS and bcrypt returns NTSTATUS.
The errors may need translation of course. I don't think we can avoid this if we're going to use bcrypt.