File: fips.py

package info (click to toggle)
m2crypto 0.46.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,932 kB
  • sloc: python: 22,921; makefile: 213; ansic: 94; sh: 17
file content (5 lines) | stat: -rw-r--r-- 137 bytes parent folder | download
1
2
3
4
5
try:
    with open("/proc/sys/crypto/fips_enabled") as f:
        fips_mode = int(f.read())
except (IOError, OSError):
    fips_mode = 0