diff --git a/.gitignore b/.gitignore index 4b3571f6a..e97abd057 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ tags cyassl-config cyassl.sublime* fips.c +fips_test.c ctaocrypt/benchmark/benchmark ctaocrypt/test/testctaocrypt examples/client/client diff --git a/cyassl/ctaocrypt/fips_test.h b/cyassl/ctaocrypt/fips_test.h new file mode 100644 index 000000000..e4f1e6751 --- /dev/null +++ b/cyassl/ctaocrypt/fips_test.h @@ -0,0 +1,43 @@ +/* fips_test.h + * + * Copyright (C) 2006-2013 wolfSSL Inc. + * + * This file is part of CyaSSL. + * + * CyaSSL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * CyaSSL is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + */ + + +#ifndef CTAO_CRYPT_FIPS_TEST_H +#define CTAO_CRYPT_FIPS_TEST_H + +#include + + +#ifdef __cplusplus + extern "C" { +#endif + +/* Known Answer Test string inputs are hex */ + +CYASSL_LOCAL int DoKnownAnswerTests(void); + + +#ifdef __cplusplus + } /* extern "C" */ +#endif + +#endif /* CTAO_CRYPT_FIPS_TEST_H */ + diff --git a/cyassl/ctaocrypt/include.am b/cyassl/ctaocrypt/include.am index 5c38659ef..9206435a4 100644 --- a/cyassl/ctaocrypt/include.am +++ b/cyassl/ctaocrypt/include.am @@ -14,6 +14,7 @@ nobase_include_HEADERS+= \ cyassl/ctaocrypt/dsa.h \ cyassl/ctaocrypt/ecc.h \ cyassl/ctaocrypt/error.h \ + cyassl/ctaocrypt/fips_test.h \ cyassl/ctaocrypt/hc128.h \ cyassl/ctaocrypt/hmac.h \ cyassl/ctaocrypt/integer.h \ diff --git a/src/include.am b/src/include.am index ce201cf2a..0673e151b 100644 --- a/src/include.am +++ b/src/include.am @@ -38,6 +38,7 @@ endif if BUILD_FIPS src_libcyassl_la_SOURCES += ctaocrypt/src/fips.c +src_libcyassl_la_SOURCES += ctaocrypt/src/fips_test.c endif if BUILD_CODING