microsoft / go-crypto-winnative

Go crypto backend for Windows using CNG
MIT License
28 stars 3 forks source link

Error messages are formatted as Win32 error code instead of NT Status values #68

Open qmuntal opened 2 weeks ago

qmuntal commented 2 weeks ago

All BCrypt functions return NT Status values instead of Win32 error codes. Our autogenerated bindings tread them as Win32 error codes, so they are not correctly translated into its human readable form when the error is displayed, e.g. in a panic trace.

We should teach mksyscall to treat the errors as NT Status values.