File: fips.py

package info (click to toggle)
m2crypto 0.42.0-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,788 kB
  • sloc: python: 9,087; makefile: 154; ansic: 77; sh: 5
file content (5 lines) | stat: -rw-r--r-- 137 bytes parent folder | download | duplicates (4)
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