# we might set SHLIB_MARK to '$(SHARED_LIBS)'.
SHLIB_MARK=
-DIRS= fips crypto ssl $(SHLIB_MARK) apps test tools
+DIRS= crypto fips ssl $(SHLIB_MARK) apps test tools
SHLIBDIRS= fips crypto ssl
# dirs in crypto to build
exit(0);
*/
+#ifdef FIPS
FIPS_mode_set(1);
+#endif
ERR_load_crypto_strings();
if (argc > 1)
{
#endif
#include <openssl/fips.h>
+#ifdef FIPS
+
static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp);
static int dsa_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig,
{
return BN_mod_exp_mont(r, a, p, m, ctx, m_ctx);
}
+
+#else /* ndef FIPS */
+
+static void *dummy=&dummy;
+
+#endif /* ndef FIPS */
unsigned char sig[256];
unsigned int siglen;
+#ifdef FIPS
FIPS_mode_set(1);
-
+#endif
if (bio_err == NULL)
bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
FP=$1
shift
-$TOP/fips/sha1/fips_standalone_sha1 $@ | diff -u $FP -
+egrep '^CFLAG=.*-DFIPS ' $TOP/Makefile || exit 0
+$TOP/fips/sha1/fips_standalone_sha1 $@ | diff -u $FP -
-SHA1(fips_sha1dgst.c)= 5b541eae6c5dc9caad9ad4fb90cb840ff48b5904
+SHA1(fips_sha1dgst.c)= 609e2cbf5d3cdcf318ec10238a0e82b93b78e6b5
SHA1(fips_sha_locl.h)= 677427c495b571991f013939ea7e5dea87828f8c
SHA1(fips_md32_common.h)= 4f41bcde24750b3b8c99a06bcba2fe06ff8db4d0
#include "fips_sha_locl.h"
-#endif /* def FIPS */
+#else /* ndef FIPS */
+
+static void *dummy=&dummy;
+
+#endif /* ndef FIPS */
#endif
int main(int argc,char **argv)
{
+#ifdef FIPS
int n;
if(argc < 2)
printf("%02x",md[i]);
printf("\n");
}
+#endif
return 0;
}
SHA1(fips_standalone_sha1.c)= b6c1f9f1ea9a231c0520460ee1e009f721fbc121
-SHA1(fips_sha1dgst.c)= 5b541eae6c5dc9caad9ad4fb90cb840ff48b5904
+SHA1(fips_sha1dgst.c)= 609e2cbf5d3cdcf318ec10238a0e82b93b78e6b5
SHA1(fips_sha_locl.h)= 677427c495b571991f013939ea7e5dea87828f8c
SHA1(fips_md32_common.h)= 4f41bcde24750b3b8c99a06bcba2fe06ff8db4d0