microsoft / go-crypto-winnative

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

Implement FIPS() and run CI test in FIPS mode #9

Closed qmuntal closed 2 years ago

qmuntal commented 2 years ago

The new FIPS() function returns the system-wide FIPS configuration.

FIPS mode can be set by running REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy /v Enabled /t REG_DWORD /f /d 1

I've also modified the github actions to run tests in FIPS and non-FIPS mode 🥳