2015-03-25 20:02:24 +00:00
|
|
|
# go-fips
|
2014-10-03 03:13:51 +00:00
|
|
|
|
2015-03-25 20:02:24 +00:00
|
|
|
Collect FIPS mode information about your runtime.
|
2014-10-03 03:13:51 +00:00
|
|
|
|
2015-03-25 20:02:24 +00:00
|
|
|
Whether the kernel was booted with FIPS mode parameters. And whether the
|
|
|
|
openssl linked can properly enable FIPS mode.
|
2014-10-03 03:13:51 +00:00
|
|
|
|
2015-03-25 20:02:24 +00:00
|
|
|
|
|
|
|
# Docs
|
|
|
|
|
|
|
|
https://godoc.org/github.com/vbatts/go-fips
|
|
|
|
|
|
|
|
# Setup
|
2014-10-03 03:13:51 +00:00
|
|
|
|
|
|
|
See http://www.openssl.org/docs/fips/UserGuide-2.0.pdf
|
|
|
|
to set up an environment where fips mode can be enabled
|
|
|
|
|
2015-03-25 20:02:24 +00:00
|
|
|
# Building
|
2014-10-03 03:13:51 +00:00
|
|
|
|
2015-03-25 19:10:15 +00:00
|
|
|
```
|
|
|
|
go build .
|
|
|
|
```
|
2014-10-03 03:13:51 +00:00
|
|
|
|
2015-03-25 19:10:15 +00:00
|
|
|
and
|
2014-10-03 03:13:51 +00:00
|
|
|
|
2015-03-25 19:10:15 +00:00
|
|
|
```
|
|
|
|
go build -tags fips .
|
|
|
|
```
|
2014-10-03 03:13:51 +00:00
|
|
|
|
2015-03-25 20:02:24 +00:00
|
|
|
# Testing
|
2014-10-03 03:13:51 +00:00
|
|
|
|
2015-03-25 19:10:15 +00:00
|
|
|
```
|
|
|
|
go test .
|
|
|
|
```
|
2014-10-03 03:13:51 +00:00
|
|
|
|
2015-03-25 19:10:15 +00:00
|
|
|
and
|
2014-10-03 03:13:51 +00:00
|
|
|
|
2015-03-25 19:10:15 +00:00
|
|
|
```
|
|
|
|
go test -tags fips .
|
|
|
|
```
|
2014-10-03 03:13:51 +00:00
|
|
|
|