microsoft / go-crypto-winnative

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

Fix 3DES-CBC #47

Closed qmuntal closed 1 year ago

qmuntal commented 1 year ago

NewCBCEncrypter and NewCBCDecrypter implementations for 3DES are broken, we are passing the incorrect algorithm identifier when constructing the BCrypt algorithm handle.

This PR fixes it and adds some tests to ensure there are no regressions.