Add tools for checking and enabling FIPS mode
The code needed for checking whether FIPS is enabled and to use OpenSSL's implementation of hash algorithms instead of Ruby's will be needed by any Ruby GitLab project. This code was extracted from the main GitLab Rails app.
Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/360174