mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Remove cyassl
This commit is contained in:
@ -1,38 +0,0 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
|
||||||
# Visual C++ Express 2005
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ctaocrypt", "ctaocrypt.vcproj", "{BF0EA0C1-3F4C-4767-B79E-7B2A391F7D62}"
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test", "test\test.vcproj", "{D04BDF66-664A-4D59-BEAC-8AB2D5809C21}"
|
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
|
||||||
{BF0EA0C1-3F4C-4767-B79E-7B2A391F7D62} = {BF0EA0C1-3F4C-4767-B79E-7B2A391F7D62}
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "benchmark", "benchmark\benchmark.vcproj", "{615AEC46-5595-4DEA-9490-DBD5DE0F8772}"
|
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
|
||||||
{BF0EA0C1-3F4C-4767-B79E-7B2A391F7D62} = {BF0EA0C1-3F4C-4767-B79E-7B2A391F7D62}
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Win32 = Debug|Win32
|
|
||||||
Release|Win32 = Release|Win32
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{BF0EA0C1-3F4C-4767-B79E-7B2A391F7D62}.Debug|Win32.ActiveCfg = Debug|Win32
|
|
||||||
{BF0EA0C1-3F4C-4767-B79E-7B2A391F7D62}.Debug|Win32.Build.0 = Debug|Win32
|
|
||||||
{BF0EA0C1-3F4C-4767-B79E-7B2A391F7D62}.Release|Win32.ActiveCfg = Release|Win32
|
|
||||||
{BF0EA0C1-3F4C-4767-B79E-7B2A391F7D62}.Release|Win32.Build.0 = Release|Win32
|
|
||||||
{D04BDF66-664A-4D59-BEAC-8AB2D5809C21}.Debug|Win32.ActiveCfg = Debug|Win32
|
|
||||||
{D04BDF66-664A-4D59-BEAC-8AB2D5809C21}.Debug|Win32.Build.0 = Debug|Win32
|
|
||||||
{D04BDF66-664A-4D59-BEAC-8AB2D5809C21}.Release|Win32.ActiveCfg = Release|Win32
|
|
||||||
{D04BDF66-664A-4D59-BEAC-8AB2D5809C21}.Release|Win32.Build.0 = Release|Win32
|
|
||||||
{615AEC46-5595-4DEA-9490-DBD5DE0F8772}.Debug|Win32.ActiveCfg = Debug|Win32
|
|
||||||
{615AEC46-5595-4DEA-9490-DBD5DE0F8772}.Debug|Win32.Build.0 = Debug|Win32
|
|
||||||
{615AEC46-5595-4DEA-9490-DBD5DE0F8772}.Release|Win32.ActiveCfg = Release|Win32
|
|
||||||
{615AEC46-5595-4DEA-9490-DBD5DE0F8772}.Release|Win32.Build.0 = Release|Win32
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
@ -1,319 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<VisualStudioProject
|
|
||||||
ProjectType="Visual C++"
|
|
||||||
Version="8.00"
|
|
||||||
Name="ctaocrypt"
|
|
||||||
ProjectGUID="{BF0EA0C1-3F4C-4767-B79E-7B2A391F7D62}"
|
|
||||||
Keyword="Win32Proj"
|
|
||||||
>
|
|
||||||
<Platforms>
|
|
||||||
<Platform
|
|
||||||
Name="Win32"
|
|
||||||
/>
|
|
||||||
</Platforms>
|
|
||||||
<ToolFiles>
|
|
||||||
</ToolFiles>
|
|
||||||
<Configurations>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
OutputDirectory="Debug"
|
|
||||||
IntermediateDirectory="Debug"
|
|
||||||
ConfigurationType="4"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories="include"
|
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;OPENSSL_EXTRA"
|
|
||||||
MinimalRebuild="true"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="3"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="true"
|
|
||||||
DebugInformationFormat="4"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLibrarianTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Release|Win32"
|
|
||||||
OutputDirectory="Release"
|
|
||||||
IntermediateDirectory="Release"
|
|
||||||
ConfigurationType="4"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalIncludeDirectories="include"
|
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;OPENSSL_EXTRA"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="true"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLibrarianTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
</Configurations>
|
|
||||||
<References>
|
|
||||||
</References>
|
|
||||||
<Files>
|
|
||||||
<Filter
|
|
||||||
Name="Header Files"
|
|
||||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
|
||||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\aes.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\arc4.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\asn.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\coding.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\config.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\des3.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\dh.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\dsa.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\error-crypt.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\hmac.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\integer.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\md4.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\md5.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\misc.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\mpi_class.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\mpi_superclass.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\chacha.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\random.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\rsa.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\sha.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\sha256.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\include\types.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="Resource Files"
|
|
||||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
|
|
||||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
|
||||||
>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="Source Files"
|
|
||||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
|
||||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\aes.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\arc4.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\asn.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\coding.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\des3.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\dh.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\dsa.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\hmac.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\integer.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\md4.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\md5.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\wc_port.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\chacha.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\random.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\rsa.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\sha.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\sha256.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
</Files>
|
|
||||||
<Globals>
|
|
||||||
</Globals>
|
|
||||||
</VisualStudioProject>
|
|
@ -1 +0,0 @@
|
|||||||
/* dummy file for autoconf */
|
|
@ -1 +0,0 @@
|
|||||||
/* dummy file for autoconf */
|
|
@ -1 +0,0 @@
|
|||||||
/* dummy file for autoconf */
|
|
@ -1,29 +0,0 @@
|
|||||||
/* misc.c
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef NO_INLINE
|
|
||||||
#include <wolfssl/wolfcrypt/misc.h>
|
|
||||||
#else
|
|
||||||
/* for inline includes */
|
|
||||||
#define WOLFSSL_MISC_INCLUDED
|
|
||||||
#include <wolfcrypt/src/misc.c>
|
|
||||||
#endif
|
|
@ -1 +0,0 @@
|
|||||||
/* dummy file for autoconf */
|
|
@ -1 +0,0 @@
|
|||||||
/* dummy file for autoconf */
|
|
@ -1 +0,0 @@
|
|||||||
/* dummy file for autoconf */
|
|
@ -1 +0,0 @@
|
|||||||
/* dummy file for autoconf */
|
|
@ -1 +0,0 @@
|
|||||||
/* dummy file for autoconf */
|
|
@ -1,54 +0,0 @@
|
|||||||
/* wolfcrypt_first.c
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/* This file needs to be linked first in order to work correctly */
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include <config.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* in case user set HAVE_FIPS there */
|
|
||||||
#include <cyassl/ctaocrypt/settings.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_FIPS
|
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
|
||||||
#pragma code_seg(".fipsA$a")
|
|
||||||
#pragma const_seg(".fipsB$a")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* read only start address */
|
|
||||||
const unsigned int wolfCrypt_FIPS_ro_start[] =
|
|
||||||
{ 0x1a2b3c4d, 0x00000001 };
|
|
||||||
|
|
||||||
|
|
||||||
/* first function of text/code segment */
|
|
||||||
int wolfCrypt_FIPS_first(void);
|
|
||||||
int wolfCrypt_FIPS_first(void)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* HAVE_FIPS */
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
|||||||
/* wolfcrypt_last.c
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/* This file needs to be linked last in order to work correctly */
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include <config.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* in case user set HAVE_FIPS there */
|
|
||||||
#include <cyassl/ctaocrypt/settings.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_FIPS
|
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
|
||||||
#pragma code_seg(".fipsA$l")
|
|
||||||
#pragma const_seg(".fipsB$l")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* last function of text/code segment */
|
|
||||||
int wolfCrypt_FIPS_last(void);
|
|
||||||
int wolfCrypt_FIPS_last(void)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* read only end address */
|
|
||||||
const unsigned int wolfCrypt_FIPS_ro_end[] =
|
|
||||||
{ 0x1a2b3c4d, 0xffffffff };
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* HAVE_FIPS */
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
|||||||
/* callbacks.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#include <wolfssl/callbacks.h>
|
|
@ -1,10 +0,0 @@
|
|||||||
/* certs_test.h */
|
|
||||||
|
|
||||||
#include <wolfssl/certs_test.h>
|
|
||||||
|
|
||||||
#ifndef CYASSL_CERTS_TEST_H
|
|
||||||
#define CYASSL_CERTS_TEST_H WOLFSSL_CERTS_TEST_H
|
|
||||||
#else
|
|
||||||
#undef CYASSL_CERTS_TEST_H
|
|
||||||
#define CYASSL_CERTS_TEST_H WOLFSSL_CERTS_TEST_H
|
|
||||||
#endif
|
|
23
cyassl/crl.h
23
cyassl/crl.h
@ -1,23 +0,0 @@
|
|||||||
/* crl.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#include <wolfssl/crl.h>
|
|
@ -1,61 +0,0 @@
|
|||||||
/* aes.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_AES
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_AES_H
|
|
||||||
#define CTAO_CRYPT_AES_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/aes.h>
|
|
||||||
#define AesSetKey wc_AesSetKey
|
|
||||||
#define AesSetIV wc_AesSetIV
|
|
||||||
#define AesCbcEncrypt wc_AesCbcEncrypt
|
|
||||||
#define AesCbcDecrypt wc_AesCbcDecrypt
|
|
||||||
#define AesCbcDecryptWithKey wc_AesCbcDecryptWithKey
|
|
||||||
|
|
||||||
/* AES-CTR */
|
|
||||||
#ifdef WOLFSSL_AES_COUNTER
|
|
||||||
#define AesCtrEncrypt wc_AesCtrEncrypt
|
|
||||||
#endif
|
|
||||||
/* AES-DIRECT */
|
|
||||||
#if defined(WOLFSSL_AES_DIRECT)
|
|
||||||
#define AesEncryptDirect wc_AesEncryptDirect
|
|
||||||
#define AesDecryptDirect wc_AesDecryptDirect
|
|
||||||
#define AesSetKeyDirect wc_AesSetKeyDirect
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_AESGCM
|
|
||||||
#define AesGcmSetKey wc_AesGcmSetKey
|
|
||||||
#define AesGcmEncrypt wc_AesGcmEncrypt
|
|
||||||
#define AesGcmDecrypt wc_AesGcmDecrypt
|
|
||||||
#define GmacSetKey wc_GmacSetKey
|
|
||||||
#define GmacUpdate wc_GmacUpdate
|
|
||||||
#endif /* HAVE_AESGCM */
|
|
||||||
#ifdef HAVE_AESCCM
|
|
||||||
#define AesCcmSetKey wc_AesCcmSetKey
|
|
||||||
#define AesCcmEncrypt wc_AesCcmEncrypt
|
|
||||||
#define AesCcmDecrypt wc_AesCcmDecrypt
|
|
||||||
#endif /* HAVE_AESCCM */
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_AES_H */
|
|
||||||
#endif /* NO_AES */
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
|||||||
/* arc4.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_ARC4_H
|
|
||||||
#define CTAO_CRYPT_ARC4_H
|
|
||||||
|
|
||||||
/* for arc4 reverse compatibility */
|
|
||||||
#ifndef NO_RC4
|
|
||||||
#include <wolfssl/wolfcrypt/arc4.h>
|
|
||||||
#define Arc4Process wc_Arc4Process
|
|
||||||
#define Arc4SetKey wc_Arc4SetKey
|
|
||||||
#define Arc4AsyncInit wc_Arc4AsyncInit
|
|
||||||
#define Arc4AsyncFree wc_Arc4AsyncFree
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_ARC4_H */
|
|
||||||
|
|
@ -1,48 +0,0 @@
|
|||||||
/* asn.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_ASN
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_ASN_H
|
|
||||||
#define CTAO_CRYPT_ASN_H
|
|
||||||
|
|
||||||
/* pull in compatibility for each include */
|
|
||||||
#include <cyassl/ctaocrypt/dh.h>
|
|
||||||
#include <cyassl/ctaocrypt/dsa.h>
|
|
||||||
#include <cyassl/ctaocrypt/sha.h>
|
|
||||||
#include <cyassl/ctaocrypt/md5.h>
|
|
||||||
#include <cyassl/ctaocrypt/asn_public.h> /* public interface */
|
|
||||||
#ifdef HAVE_ECC
|
|
||||||
#include <cyassl/ctaocrypt/ecc.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/asn.h>
|
|
||||||
|
|
||||||
#ifndef NO_FILESYSTEM
|
|
||||||
#define CyaSSL_PemCertToDer wc_PemCertToDer
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_ASN_H */
|
|
||||||
|
|
||||||
#endif /* !NO_ASN */
|
|
||||||
|
|
@ -1,75 +0,0 @@
|
|||||||
/* asn_public.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_ASN_PUBLIC_H
|
|
||||||
#define CTAO_CRYPT_ASN_PUBLIC_H
|
|
||||||
|
|
||||||
/* pull in compatibility for each of the includes */
|
|
||||||
#include <cyassl/ctaocrypt/types.h>
|
|
||||||
#include <cyassl/ctaocrypt/types.h>
|
|
||||||
#include <cyassl/ctaocrypt/ecc.h>
|
|
||||||
#ifdef WOLFSSL_CERT_GEN
|
|
||||||
#include <cyassl/ctaocrypt/rsa.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/asn_public.h>
|
|
||||||
#ifdef WOLFSSL_CERT_GEN
|
|
||||||
#define InitCert wc_InitCert
|
|
||||||
#define MakeCert wc_MakeCert
|
|
||||||
|
|
||||||
#ifdef WOLFSSL_CERT_REQ
|
|
||||||
#define MakeCertReq wc_MakeCertReq
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define SignCert wc_SignCert
|
|
||||||
#define MakeSelfCert wc_MakeSelfCert
|
|
||||||
#define SetIssuer wc_SetIssuer
|
|
||||||
#define SetSubject wc_SetSubject
|
|
||||||
|
|
||||||
#ifdef WOLFSSL_ALT_NAMES
|
|
||||||
#define SetAltNames wc_SetAltNames
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define SetIssuerBuffer wc_SetIssuerBuffer
|
|
||||||
#define SetSubjectBuffer wc_SetSubjectBuffer
|
|
||||||
#define SetAltNamesBuffer wc_SetAltNamesBuffer
|
|
||||||
#define SetDatesBuffer wc_SetDatesBuffer
|
|
||||||
|
|
||||||
#endif /* WOLFSSL_CERT_GEN */
|
|
||||||
|
|
||||||
#if defined(WOLFSSL_KEY_GEN) || defined(WOLFSSL_CERT_GEN)
|
|
||||||
#define DerToPem wc_DerToPem
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_ECC
|
|
||||||
/* private key helpers */
|
|
||||||
#define EccPrivateKeyDecode wc_EccPrivateKeyDecode
|
|
||||||
#define EccKeyToDer wc_EccKeyToDer
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* DER encode signature */
|
|
||||||
#define EncodeSignature wc_EncodeSignature
|
|
||||||
#define GetCTC_HashOID wc_GetCTC_HashOID
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_ASN_PUBLIC_H */
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
|||||||
/*
|
|
||||||
BLAKE2 reference source code package - reference C implementations
|
|
||||||
|
|
||||||
Written in 2012 by Samuel Neves <sneves@dei.uc.pt>
|
|
||||||
|
|
||||||
To the extent possible under law, the author(s) have dedicated all copyright
|
|
||||||
and related and neighboring rights to this software to the public domain
|
|
||||||
worldwide. This software is distributed without any warranty.
|
|
||||||
|
|
||||||
You should have received a copy of the CC0 Public Domain Dedication along with
|
|
||||||
this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
|
||||||
*/
|
|
||||||
/* blake2-impl.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAOCRYPT_BLAKE2_IMPL_H
|
|
||||||
#define CTAOCRYPT_BLAKE2_IMPL_H
|
|
||||||
|
|
||||||
#include <cyassl/ctaocrypt/types.h>
|
|
||||||
#include <wolfssl/wolfcrypt/blake2-impl.h>
|
|
||||||
|
|
||||||
#endif /* CTAOCRYPT_BLAKE2_IMPL_H */
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
BLAKE2 reference source code package - reference C implementations
|
|
||||||
|
|
||||||
Written in 2012 by Samuel Neves <sneves@dei.uc.pt>
|
|
||||||
|
|
||||||
To the extent possible under law, the author(s) have dedicated all copyright
|
|
||||||
and related and neighboring rights to this software to the public domain
|
|
||||||
worldwide. This software is distributed without any warranty.
|
|
||||||
|
|
||||||
You should have received a copy of the CC0 Public Domain Dedication along with
|
|
||||||
this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
|
||||||
*/
|
|
||||||
/* blake2-int.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAOCRYPT_BLAKE2_INT_H
|
|
||||||
#define CTAOCRYPT_BLAKE2_INT_H
|
|
||||||
|
|
||||||
#include <cyassl/ctaocrypt/types.h>
|
|
||||||
#include <wolfssl/wolfcrypt/blake2-int.h>
|
|
||||||
|
|
||||||
#endif /* CTAOCRYPT_BLAKE2_INT_H */
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
|||||||
/* blake2.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_BLAKE2
|
|
||||||
|
|
||||||
#ifndef CTAOCRYPT_BLAKE2_H
|
|
||||||
#define CTAOCRYPT_BLAKE2_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/blake2.h>
|
|
||||||
|
|
||||||
/* for blake2 reverse compatibility */
|
|
||||||
#ifndef HAVE_FIPS
|
|
||||||
#define InitBlake2b wc_InitBlake2b
|
|
||||||
#define Blake2bUpdate wc_Blake2bUpdate
|
|
||||||
#define Blake2bFinal wc_Blake2bFinal
|
|
||||||
#else
|
|
||||||
/* name for when fips hmac calls blake */
|
|
||||||
#define wc_InitBlake2b InitBlake2b
|
|
||||||
#define wc_Blake2bUpdate Blake2bUpdate
|
|
||||||
#define wc_Blake2bFinal Blake2bFinal
|
|
||||||
#endif /* HAVE_FIPS */
|
|
||||||
|
|
||||||
#endif /* CTAOCRYPT_BLAKE2_H */
|
|
||||||
#endif /* HAVE_BLAKE2 */
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
|||||||
/* camellia.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_CAMELLIA_H
|
|
||||||
#define CTAO_CRYPT_CAMELLIA_H
|
|
||||||
|
|
||||||
|
|
||||||
/* for camellia reverse compatibility */
|
|
||||||
#ifdef HAVE_CAMELLIA
|
|
||||||
#include <wolfssl/wolfcrypt/camellia.h>
|
|
||||||
#define CamelliaSetKey wc_CamelliaSetKey
|
|
||||||
#define CamelliaSetIV wc_CamelliaSetIV
|
|
||||||
#define CamelliaEncryptDirect wc_CamelliaEncryptDirect
|
|
||||||
#define CamelliaDecryptDirect wc_CamelliaDecryptDirect
|
|
||||||
#define CamelliaCbcEncrypt wc_CamelliaCbcEncrypt
|
|
||||||
#define CamelliaCbcDecrypt wc_CamelliaCbcDecrypt
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_CAMELLIA_H */
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
|||||||
/* chacha.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_CHACHA_H
|
|
||||||
#define CTAO_CRYPT_CHACHA_H
|
|
||||||
|
|
||||||
|
|
||||||
/* for chacha reverse compatibility */
|
|
||||||
#ifdef HAVE_CHACHA
|
|
||||||
#include <wolfssl/wolfcrypt/chacha.h>
|
|
||||||
#define Chacha_Process wc_Chacha_Process
|
|
||||||
#define Chacha_SetKey wc_Chacha_SetKey
|
|
||||||
#define Chacha_SetIV wc_Chacha_SetIV
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_CHACHA_H */
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
|||||||
/* coding.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_CODING_H
|
|
||||||
#define CTAO_CRYPT_CODING_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/coding.h>
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_CODING_H */
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
|||||||
/* compress.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_LIBZ
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_COMPRESS_H
|
|
||||||
#define CTAO_CRYPT_COMPRESS_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/compress.h>
|
|
||||||
|
|
||||||
/* reverse compatibility */
|
|
||||||
#define Compress wc_Compress
|
|
||||||
#define DeCompress wc_DeCompress
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_COMPRESS_H */
|
|
||||||
|
|
||||||
#endif /* HAVE_LIBZ */
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
|||||||
/* des3.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_DES3
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_DES3_H
|
|
||||||
#define CTAO_CRYPT_DES3_H
|
|
||||||
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/des3.h>
|
|
||||||
#define Des_SetKey wc_Des_SetKey
|
|
||||||
#define Des_SetIV wc_Des_SetIV
|
|
||||||
#define Des_CbcEncrypt wc_Des_CbcEncrypt
|
|
||||||
#define Des_CbcDecrypt wc_Des_CbcDecrypt
|
|
||||||
#define Des_EcbEncrypt wc_Des_EcbEncrypt
|
|
||||||
#define Des_CbcDecryptWithKey wc_Des_CbcDecryptWithKey
|
|
||||||
#define Des3_SetKey wc_Des3_SetKey
|
|
||||||
#define Des3_SetIV wc_Des3_SetIV
|
|
||||||
#define Des3_CbcEncrypt wc_Des3_CbcEncrypt
|
|
||||||
#define Des3_CbcDecrypt wc_Des3_CbcDecrypt
|
|
||||||
#define Des3_CbcDecryptWithKey wc_Des3_CbcDecryptWithKey
|
|
||||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
|
||||||
#define Des3AsyncInit wc_Des3AsyncInit
|
|
||||||
#define Des3AsyncFree wc_Des3AsyncFree
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* NO_DES3 */
|
|
||||||
#endif /* CTAO_CRYPT_DES3_H */
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
|||||||
/* dh.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_DH
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_DH_H
|
|
||||||
#define CTAO_CRYPT_DH_H
|
|
||||||
|
|
||||||
/* for dh reverse compatibility */
|
|
||||||
#include <wolfssl/wolfcrypt/dh.h>
|
|
||||||
#define InitDhKey wc_InitDhKey
|
|
||||||
#define FreeDhKey wc_FreeDhKey
|
|
||||||
#define DhGenerateKeyPair wc_DhGenerateKeyPair
|
|
||||||
#define DhAgree wc_DhAgree
|
|
||||||
#define DhKeyDecode wc_DhKeyDecode
|
|
||||||
#define DhSetKey wc_DhSetKey
|
|
||||||
#define DhParamsLoad wc_DhParamsLoad
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_DH_H */
|
|
||||||
|
|
||||||
#endif /* NO_DH */
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
|||||||
/* dsa.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_DSA
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_DSA_H
|
|
||||||
#define CTAO_CRYPT_DSA_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/dsa.h>
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_DSA_H */
|
|
||||||
#endif /* NO_DSA */
|
|
||||||
|
|
@ -1,69 +0,0 @@
|
|||||||
/* ecc.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_ECC
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_ECC_H
|
|
||||||
#define CTAO_CRYPT_ECC_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/ecc.h>
|
|
||||||
|
|
||||||
/* includes for compatibility */
|
|
||||||
#include <cyassl/ctaocrypt/types.h>
|
|
||||||
#include <cyassl/ctaocrypt/integer.h>
|
|
||||||
#include <cyassl/ctaocrypt/random.h>
|
|
||||||
|
|
||||||
/* for ecc reverse compatibility */
|
|
||||||
#ifdef HAVE_ECC
|
|
||||||
#define ecc_make_key wc_ecc_make_key
|
|
||||||
#define ecc_shared_secret wc_ecc_shared_secret
|
|
||||||
#define ecc_sign_hash wc_ecc_sign_hash
|
|
||||||
#define ecc_verify_hash wc_ecc_verify_hash
|
|
||||||
#define ecc_init wc_ecc_init
|
|
||||||
#define ecc_free wc_ecc_free
|
|
||||||
#define ecc_fp_free wc_ecc_fp_free
|
|
||||||
#define ecc_export_x963 wc_ecc_export_x963
|
|
||||||
#define ecc_size wc_ecc_size
|
|
||||||
#define ecc_sig_size wc_ecc_sig_size
|
|
||||||
#define ecc_export_x963_ex wc_ecc_export_x963_ex
|
|
||||||
#define ecc_import_x963 wc_ecc_import_x963
|
|
||||||
#define ecc_import_private_key wc_ecc_import_private_key
|
|
||||||
#define ecc_rs_to_sig wc_ecc_rs_to_sig
|
|
||||||
#define ecc_import_raw wc_ecc_import_raw
|
|
||||||
#define ecc_export_private_only wc_ecc_export_private_only
|
|
||||||
|
|
||||||
#ifdef HAVE_ECC_ENCRYPT
|
|
||||||
/* ecc encrypt */
|
|
||||||
#define ecc_ctx_new wc_ecc_ctx_new
|
|
||||||
#define ecc_ctx_free wc_ecc_ctx_free
|
|
||||||
#define ecc_ctx_reset wc_ecc_ctx_reset
|
|
||||||
#define ecc_ctx_get_own_salt wc_ecc_ctx_get_own_salt
|
|
||||||
#define ecc_ctx_set_peer_salt wc_ecc_ctx_set_peer_salt
|
|
||||||
#define ecc_ctx_set_info wc_ecc_ctx_set_info
|
|
||||||
#define ecc_encrypt wc_ecc_encrypt
|
|
||||||
#define ecc_decrypt wc_ecc_decrypt
|
|
||||||
#endif /* HAVE_ECC_ENCRYPT */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_ECC_H */
|
|
||||||
#endif /* HAVE_ECC */
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
|||||||
/* error-crypt.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_ERROR_H
|
|
||||||
#define CTAO_CRYPT_ERROR_H
|
|
||||||
|
|
||||||
/* for name change and fips compatibility @wc_fips */
|
|
||||||
#include <wolfssl/wolfcrypt/error-crypt.h>
|
|
||||||
#define CTaoCryptErrorString wc_ErrorString
|
|
||||||
#define CTaoCryptGetErrorString wc_GetErrorString
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_ERROR_H */
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
|||||||
/* fips_test.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_FIPS_TEST_H
|
|
||||||
#define CTAO_CRYPT_FIPS_TEST_H
|
|
||||||
|
|
||||||
#include <cyassl/ctaocrypt/types.h>
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Known Answer Test string inputs are hex, internal */
|
|
||||||
CYASSL_LOCAL int DoKnownAnswerTests(char*, int);
|
|
||||||
|
|
||||||
|
|
||||||
/* FIPS failure callback */
|
|
||||||
typedef void(*wolfCrypt_fips_cb)(int ok, int err, const char* hash);
|
|
||||||
|
|
||||||
/* Public set function */
|
|
||||||
CYASSL_API int wolfCrypt_SetCb_fips(wolfCrypt_fips_cb cbf);
|
|
||||||
|
|
||||||
/* Public get status functions */
|
|
||||||
CYASSL_API int wolfCrypt_GetStatus_fips(void);
|
|
||||||
CYASSL_API const char* wolfCrypt_GetCoreHash_fips(void);
|
|
||||||
|
|
||||||
#ifdef HAVE_FORCE_FIPS_FAILURE
|
|
||||||
/* Public function to force failure mode for operational testing */
|
|
||||||
CYASSL_API int wolfCrypt_SetStatus_fips(int);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
} /* extern "C" */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_FIPS_TEST_H */
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
|||||||
/* hmac.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_HMAC
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_HMAC_H
|
|
||||||
#define CTAO_CRYPT_HMAC_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/hmac.h>
|
|
||||||
#define HmacSetKey wc_HmacSetKey
|
|
||||||
#define HmacUpdate wc_HmacUpdate
|
|
||||||
#define HmacFinal wc_HmacFinal
|
|
||||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
|
||||||
#define HmacAsyncInit wc_HmacAsyncInit
|
|
||||||
#define HmacAsyncFree wc_HmacAsyncFree
|
|
||||||
#endif
|
|
||||||
#define CyaSSL_GetHmacMaxSize wolfSSL_GetHmacMaxSize
|
|
||||||
#ifdef HAVE_HKDF
|
|
||||||
#define HKDF wc_HKDF
|
|
||||||
#endif /* HAVE_HKDF */
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_HMAC_H */
|
|
||||||
|
|
||||||
#endif /* NO_HMAC */
|
|
||||||
|
|
@ -1,52 +0,0 @@
|
|||||||
# vim:ft=automake
|
|
||||||
# All paths should be given relative to the root
|
|
||||||
|
|
||||||
EXTRA_DIST+= ctaocrypt/src/misc.c
|
|
||||||
|
|
||||||
nobase_include_HEADERS+= \
|
|
||||||
cyassl/ctaocrypt/aes.h \
|
|
||||||
cyassl/ctaocrypt/arc4.h \
|
|
||||||
cyassl/ctaocrypt/asn.h \
|
|
||||||
cyassl/ctaocrypt/asn_public.h \
|
|
||||||
cyassl/ctaocrypt/poly1305.h \
|
|
||||||
cyassl/ctaocrypt/camellia.h \
|
|
||||||
cyassl/ctaocrypt/coding.h \
|
|
||||||
cyassl/ctaocrypt/compress.h \
|
|
||||||
cyassl/ctaocrypt/des3.h \
|
|
||||||
cyassl/ctaocrypt/dh.h \
|
|
||||||
cyassl/ctaocrypt/dsa.h \
|
|
||||||
cyassl/ctaocrypt/ecc.h \
|
|
||||||
cyassl/ctaocrypt/error-crypt.h \
|
|
||||||
cyassl/ctaocrypt/fips_test.h \
|
|
||||||
cyassl/ctaocrypt/hmac.h \
|
|
||||||
cyassl/ctaocrypt/integer.h \
|
|
||||||
cyassl/ctaocrypt/md2.h \
|
|
||||||
cyassl/ctaocrypt/md4.h \
|
|
||||||
cyassl/ctaocrypt/md5.h \
|
|
||||||
cyassl/ctaocrypt/misc.h \
|
|
||||||
cyassl/ctaocrypt/pkcs7.h \
|
|
||||||
cyassl/ctaocrypt/wc_port.h \
|
|
||||||
cyassl/ctaocrypt/pwdbased.h \
|
|
||||||
cyassl/ctaocrypt/chacha.h \
|
|
||||||
cyassl/ctaocrypt/random.h \
|
|
||||||
cyassl/ctaocrypt/ripemd.h \
|
|
||||||
cyassl/ctaocrypt/rsa.h \
|
|
||||||
cyassl/ctaocrypt/settings.h \
|
|
||||||
cyassl/ctaocrypt/settings_comp.h \
|
|
||||||
cyassl/ctaocrypt/sha256.h \
|
|
||||||
cyassl/ctaocrypt/sha512.h \
|
|
||||||
cyassl/ctaocrypt/sha.h \
|
|
||||||
cyassl/ctaocrypt/blake2.h \
|
|
||||||
cyassl/ctaocrypt/blake2-int.h \
|
|
||||||
cyassl/ctaocrypt/blake2-impl.h \
|
|
||||||
cyassl/ctaocrypt/tfm.h \
|
|
||||||
cyassl/ctaocrypt/types.h \
|
|
||||||
cyassl/ctaocrypt/visibility.h \
|
|
||||||
cyassl/ctaocrypt/logging.h \
|
|
||||||
cyassl/ctaocrypt/memory.h \
|
|
||||||
cyassl/ctaocrypt/mpi_class.h \
|
|
||||||
cyassl/ctaocrypt/mpi_superclass.h
|
|
||||||
|
|
||||||
noinst_HEADERS+= \
|
|
||||||
cyassl/ctaocrypt/port/pic32/pic32mz-crypt.h
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
|||||||
/* integer.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Based on public domain LibTomMath 0.38 by Tom St Denis, tomstdenis@iahu.ca,
|
|
||||||
* http://math.libtomcrypt.com
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_INTEGER_H
|
|
||||||
#define CTAO_CRYPT_INTEGER_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/integer.h>
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_INTEGER_H */
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
|||||||
/* logging.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/* submitted by eof */
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CYASSL_LOGGING_H
|
|
||||||
#define CYASSL_LOGGING_H
|
|
||||||
|
|
||||||
/* for fips compatibility @wc_fips */
|
|
||||||
#include <wolfssl/wolfcrypt/logging.h>
|
|
||||||
#define CYASSL_LEAVE WOLFSSL_LEAVE
|
|
||||||
#define CYASSL_ERROR WOLFSSL_ERROR
|
|
||||||
#define CYASSL_ENTER WOLFSSL_ENTER
|
|
||||||
#define CYASSL_MSG WOLFSSL_MSG
|
|
||||||
/* check old macros possibly declared */
|
|
||||||
#if defined(DEBUG_CYASSL) && !defined(DEBUG_WOLFSSL)
|
|
||||||
#define DEBUG_WOLFSSL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CYASSL_LOGGING_H */
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
|||||||
/* md2.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* check for old macro */
|
|
||||||
#if !defined(CYASSL_MD2) && defined(WOLFSSL_MD2)
|
|
||||||
#define CYASSL_MD2
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CYASSL_MD2
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_MD2_H
|
|
||||||
#define CTAO_CRYPT_MD2_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/md2.h>
|
|
||||||
|
|
||||||
#define InitMd2 wc_InitMd2
|
|
||||||
#define Md2Update wc_Md2Update
|
|
||||||
#define Md2Final wc_Md2Final
|
|
||||||
#define Md2Hash wc_Md2Hash
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_MD2_H */
|
|
||||||
#endif /* CYASSL_MD2 */
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
|||||||
/* md4.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_MD4
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_MD4_H
|
|
||||||
#define CTAO_CRYPT_MD4_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/md4.h>
|
|
||||||
|
|
||||||
#define InitMd4 wc_InitMd4
|
|
||||||
#define Md4Update wc_Md4Update
|
|
||||||
#define Md4Final wc_Md4Final
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_MD4_H */
|
|
||||||
|
|
||||||
#endif /* NO_MD4 */
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
|||||||
/* md5.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_MD5
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_MD5_H
|
|
||||||
#define CTAO_CRYPT_MD5_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/md5.h>
|
|
||||||
|
|
||||||
#ifndef HAVE_FIPS
|
|
||||||
#define InitMd5 wc_InitMd5
|
|
||||||
#define Md5Update wc_Md5Update
|
|
||||||
#define Md5Final wc_Md5Final
|
|
||||||
#define Md5Hash wc_Md5Hash
|
|
||||||
#else
|
|
||||||
/* redfined name so that hmac is calling same function names with fips */
|
|
||||||
#define wc_InitMd5 InitMd5
|
|
||||||
#define wc_Md5Update Md5Update
|
|
||||||
#define wc_Md5Final Md5Final
|
|
||||||
#define wc_Md5Hash Md5Hash
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_MD5_H */
|
|
||||||
#endif /* NO_MD5 */
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
|||||||
/* memory.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/* submitted by eof */
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CYASSL_MEMORY_H
|
|
||||||
#define CYASSL_MEMORY_H
|
|
||||||
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/memory.h>
|
|
||||||
#define CyaSSL_Malloc_cb wolfSSL_Malloc_cb
|
|
||||||
#define CyaSSL_Free_cb wolfSSL_Free_cb
|
|
||||||
#define CyaSSL_Realloc_cb wolfSSL_Realloc_cb
|
|
||||||
#define CyaSSL_SetAllocators wolfSSL_SetAllocators
|
|
||||||
|
|
||||||
/* Public in case user app wants to use XMALLOC/XFREE */
|
|
||||||
#define CyaSSL_Malloc wolfSSL_Malloc
|
|
||||||
#define CyaSSL_Free wolfSSL_Free
|
|
||||||
#define CyaSSL_Realloc wolfSSL_Realloc
|
|
||||||
|
|
||||||
#endif /* CYASSL_MEMORY_H */
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
|||||||
/* misc.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_MISC_H
|
|
||||||
#define CTAO_CRYPT_MISC_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/misc.h>
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_MISC_H */
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
/* mpi_class.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/mpi_class.h>
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
|||||||
/* mpi_superclass.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* super class file for PK algos */
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/mpi_superclass.h>
|
|
||||||
|
|
@ -1,53 +0,0 @@
|
|||||||
/* pkcs7.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_PKCS7
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_PKCS7_H
|
|
||||||
#define CTAO_CRYPT_PKCS7_H
|
|
||||||
|
|
||||||
/* pull in compatibility for old includes */
|
|
||||||
#include <cyassl/ctaocrypt/types.h>
|
|
||||||
#include <cyassl/ctaocrypt/asn.h>
|
|
||||||
#include <cyassl/ctaocrypt/asn_public.h>
|
|
||||||
#include <cyassl/ctaocrypt/random.h>
|
|
||||||
#include <cyassl/ctaocrypt/des3.h>
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/pkcs7.h>
|
|
||||||
|
|
||||||
/* for pkcs7 reverse compatibility */
|
|
||||||
#define SetContentType wc_SetContentType
|
|
||||||
#define GetContentType wc_GetContentType
|
|
||||||
#define CreateRecipientInfo wc_CreateRecipientInfo
|
|
||||||
#define PKCS7_InitWithCert wc_PKCS7_InitWithCert
|
|
||||||
#define PKCS7_Free wc_PKCS7_Free
|
|
||||||
#define PKCS7_EncodeData wc_PKCS7_EncodeData
|
|
||||||
#define PKCS7_EncodeSignedData wc_PKCS7_EncodeSignedData
|
|
||||||
#define PKCS7_VerifySignedData wc_PKCS7_VerifySignedData
|
|
||||||
#define PKCS7_EncodeEnvelopedData wc_PKCS7_EncodeEnvelopedData
|
|
||||||
#define PKCS7_DecodeEnvelopedData wc_PKCS7_DecodeEnvelopedData
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_PKCS7_H */
|
|
||||||
|
|
||||||
#endif /* HAVE_PKCS7 */
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
|||||||
/* poly1305.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_POLY1305
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_POLY1305_H
|
|
||||||
#define CTAO_CRYPT_POLY1305_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/poly1305.h>
|
|
||||||
|
|
||||||
/* for poly1305 reverse compatibility */
|
|
||||||
#define Poly1305SetKey wc_Poly1305SetKey
|
|
||||||
#define Poly1305Update wc_Poly1305Update
|
|
||||||
#define Poly1305Final wc_Poly1305Final
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_POLY1305_H */
|
|
||||||
|
|
||||||
#endif /* HAVE_POLY1305 */
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
|||||||
/* pic32mz-crypt.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef PIC32MZ_CRYPT_H
|
|
||||||
#define PIC32MZ_CRYPT_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/port/pic32/pic32mz-crypt.h>
|
|
||||||
|
|
||||||
#endif /* PIC32MZ_CRYPT_H */
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
|||||||
/* pwdbased.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_PWDBASED
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_PWDBASED_H
|
|
||||||
#define CTAO_CRYPT_PWDBASED_H
|
|
||||||
|
|
||||||
/* for pwdbased reverse compatibility */
|
|
||||||
#include <wolfssl/wolfcrypt/pwdbased.h>
|
|
||||||
#define PBKDF1 wc_PBKDF1
|
|
||||||
#define PBKDF2 wc_PBKDF2
|
|
||||||
#define PKCS12_PBKDF wc_PKCS12_PBKDF
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_PWDBASED_H */
|
|
||||||
#endif /* NO_PWDBASED */
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
|||||||
/* random.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_RANDOM_H
|
|
||||||
#define CTAO_CRYPT_RANDOM_H
|
|
||||||
|
|
||||||
/* for random.h compatibility */
|
|
||||||
#include <wolfssl/wolfcrypt/random.h>
|
|
||||||
#define InitRng wc_InitRng
|
|
||||||
#define RNG_GenerateBlock wc_RNG_GenerateBlock
|
|
||||||
#define RNG_GenerateByte wc_RNG_GenerateByte
|
|
||||||
#define FreeRng wc_FreeRng
|
|
||||||
|
|
||||||
#if defined(HAVE_HASHDRBG) || defined(NO_RC4)
|
|
||||||
#define RNG_HealthTest wc_RNG_HealthTest
|
|
||||||
#endif /* HAVE_HASHDRBG || NO_RC4 */
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_RANDOM_H */
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
|||||||
/* ripemd.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_RIPEMD_H
|
|
||||||
#define CTAO_CRYPT_RIPEME_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/ripemd.h>
|
|
||||||
|
|
||||||
/* for ripemd reverse compatibility */
|
|
||||||
#ifdef WOLFSSL_RIPEMD
|
|
||||||
#define InitRipeMd wc_InitRipeMd
|
|
||||||
#define RipeMdUpdate wc_RipeMdUpdate
|
|
||||||
#define RipeMdFinal wc_RipeMdFinal
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_RIPEMD_H */
|
|
||||||
|
|
@ -1,58 +0,0 @@
|
|||||||
/* rsa.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_RSA
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_RSA_H
|
|
||||||
#define CTAO_CRYPT_RSA_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/rsa.h>
|
|
||||||
/* includes for their compatibility */
|
|
||||||
#include <cyassl/ctaocrypt/integer.h>
|
|
||||||
#include <cyassl/ctaocrypt/random.h>
|
|
||||||
#include <cyassl/ctaocrypt/settings.h>
|
|
||||||
|
|
||||||
#define InitRsaKey wc_InitRsaKey
|
|
||||||
#define FreeRsaKey wc_FreeRsaKey
|
|
||||||
#define RsaPublicEncrypt wc_RsaPublicEncrypt
|
|
||||||
#define RsaPrivateDecryptInline wc_RsaPrivateDecryptInline
|
|
||||||
#define RsaPrivateDecrypt wc_RsaPrivateDecrypt
|
|
||||||
#define RsaSSL_Sign wc_RsaSSL_Sign
|
|
||||||
#define RsaSSL_VerifyInline wc_RsaSSL_VerifyInline
|
|
||||||
#define RsaSSL_Verify wc_RsaSSL_Verify
|
|
||||||
#define RsaEncryptSize wc_RsaEncryptSize
|
|
||||||
#define RsaFlattenPublicKey wc_RsaFlattenPublicKey
|
|
||||||
|
|
||||||
#ifdef WOLFSSL_KEY_GEN
|
|
||||||
#define MakeRsaKey wc_MakeRsaKey
|
|
||||||
#define RsaKeyToDer wc_RsaKeyToDer
|
|
||||||
#define CheckProbablePrime wc_CheckProbablePrime
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
|
||||||
#define RsaAsyncInit wc_RsaAsyncInit
|
|
||||||
#define RsaAsyncFree wc_RsaAsyncFree
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_RSA_H */
|
|
||||||
|
|
||||||
#endif /* NO_RSA */
|
|
@ -1,702 +0,0 @@
|
|||||||
/* settings.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/* Place OS specific preprocessor flags, defines, includes here, will be
|
|
||||||
included into every file because types.h includes it */
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_SETTINGS_H
|
|
||||||
#define CTAO_CRYPT_SETTINGS_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Uncomment next line if using IPHONE */
|
|
||||||
/* #define IPHONE */
|
|
||||||
|
|
||||||
/* Uncomment next line if using ThreadX */
|
|
||||||
/* #define THREADX */
|
|
||||||
|
|
||||||
/* Uncomment next line if using Micrium ucOS */
|
|
||||||
/* #define MICRIUM */
|
|
||||||
|
|
||||||
/* Uncomment next line if using Mbed */
|
|
||||||
/* #define MBED */
|
|
||||||
|
|
||||||
/* Uncomment next line if using Microchip PIC32 ethernet starter kit */
|
|
||||||
/* #define MICROCHIP_PIC32 */
|
|
||||||
|
|
||||||
/* Uncomment next line if using Microchip TCP/IP stack, version 5 */
|
|
||||||
/* #define MICROCHIP_TCPIP_V5 */
|
|
||||||
|
|
||||||
/* Uncomment next line if using Microchip TCP/IP stack, version 6 or later */
|
|
||||||
/* #define MICROCHIP_TCPIP */
|
|
||||||
|
|
||||||
/* Uncomment next line if using PIC32MZ Crypto Engine */
|
|
||||||
/* #define CYASSL_MICROCHIP_PIC32MZ */
|
|
||||||
|
|
||||||
/* Uncomment next line if using FreeRTOS */
|
|
||||||
/* #define FREERTOS */
|
|
||||||
|
|
||||||
/* Uncomment next line if using FreeRTOS Windows Simulator */
|
|
||||||
/* #define FREERTOS_WINSIM */
|
|
||||||
|
|
||||||
/* Uncomment next line if using RTIP */
|
|
||||||
/* #define EBSNET */
|
|
||||||
|
|
||||||
/* Uncomment next line if using lwip */
|
|
||||||
/* #define CYASSL_LWIP */
|
|
||||||
|
|
||||||
/* Uncomment next line if building CyaSSL for a game console */
|
|
||||||
/* #define CYASSL_GAME_BUILD */
|
|
||||||
|
|
||||||
/* Uncomment next line if building CyaSSL for LSR */
|
|
||||||
/* #define CYASSL_LSR */
|
|
||||||
|
|
||||||
/* Uncomment next line if building CyaSSL for Freescale MQX/RTCS/MFS */
|
|
||||||
/* #define FREESCALE_MQX */
|
|
||||||
|
|
||||||
/* Uncomment next line if using STM32F2 */
|
|
||||||
/* #define CYASSL_STM32F2 */
|
|
||||||
|
|
||||||
/* Uncomment next line if using QL SEP settings */
|
|
||||||
/* #define CYASSL_QL */
|
|
||||||
|
|
||||||
/* Uncomment next line if building for EROAD */
|
|
||||||
/* #define CYASSL_EROAD */
|
|
||||||
|
|
||||||
/* Uncomment next line if building for IAR EWARM */
|
|
||||||
/* #define CYASSL_IAR_ARM */
|
|
||||||
|
|
||||||
/* Uncomment next line if using TI-RTOS settings */
|
|
||||||
/* #define CYASSL_TIRTOS */
|
|
||||||
|
|
||||||
/* Uncomment next line if building with PicoTCP */
|
|
||||||
/* #define CYASSL_PICOTCP */
|
|
||||||
|
|
||||||
/* Uncomment next line if building for PicoTCP demo bundle */
|
|
||||||
/* #define CYASSL_PICOTCP_DEMO */
|
|
||||||
|
|
||||||
#include <cyassl/ctaocrypt/visibility.h>
|
|
||||||
|
|
||||||
#ifdef IPHONE
|
|
||||||
#define SIZEOF_LONG_LONG 8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef CYASSL_USER_SETTINGS
|
|
||||||
#include <user_settings.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* for reverse compatibility after name change */
|
|
||||||
#include <cyassl/ctaocrypt/settings_comp.h>
|
|
||||||
|
|
||||||
#ifdef THREADX
|
|
||||||
#define SIZEOF_LONG_LONG 8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_NETX
|
|
||||||
#include "nx_api.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_LWIP_NATIVE) /* using LwIP native TCP socket */
|
|
||||||
#define CYASSL_LWIP
|
|
||||||
#define NO_WRITEV
|
|
||||||
#define SINGLE_THREADED
|
|
||||||
#define CYASSL_USER_IO
|
|
||||||
#define NO_FILESYSTEM
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CYASSL_IAR_ARM)
|
|
||||||
#define NO_MAIN_DRIVER
|
|
||||||
#define SINGLE_THREADED
|
|
||||||
#define USE_CERT_BUFFERS_1024
|
|
||||||
#define BENCH_EMBEDDED
|
|
||||||
#define NO_FILESYSTEM
|
|
||||||
#define NO_WRITEV
|
|
||||||
#define CYASSL_USER_IO
|
|
||||||
#define BENCH_EMBEDDED
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MICROCHIP_PIC32
|
|
||||||
/* #define CYASSL_MICROCHIP_PIC32MZ */
|
|
||||||
#define SIZEOF_LONG_LONG 8
|
|
||||||
#define SINGLE_THREADED
|
|
||||||
#define CYASSL_USER_IO
|
|
||||||
#define NO_WRITEV
|
|
||||||
#define NO_DEV_RANDOM
|
|
||||||
#define NO_FILESYSTEM
|
|
||||||
#define USE_FAST_MATH
|
|
||||||
#define TFM_TIMING_RESISTANT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CYASSL_MICROCHIP_PIC32MZ) || defined(WOLFSSL_MICROCHIP_PIC32MZ)
|
|
||||||
#ifndef NO_PIC32MZ_CRYPT
|
|
||||||
#define WOLFSSL_PIC32MZ_CRYPT
|
|
||||||
#endif
|
|
||||||
#ifndef NO_PIC32MZ_RNG
|
|
||||||
#define WOLFSSL_PIC32MZ_RNG
|
|
||||||
#endif
|
|
||||||
#ifndef NO_PIC32MZ_HASH
|
|
||||||
#define WOLFSSL_PIC32MZ_HASH
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define CYASSL_AES_COUNTER
|
|
||||||
#define HAVE_AESGCM
|
|
||||||
#define NO_BIG_INT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MICROCHIP_TCPIP_V5
|
|
||||||
/* include timer functions */
|
|
||||||
#include "TCPIP Stack/TCPIP.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MICROCHIP_TCPIP
|
|
||||||
/* include timer, NTP functions */
|
|
||||||
#ifdef MICROCHIP_MPLAB_HARMONY
|
|
||||||
#include "tcpip/tcpip.h"
|
|
||||||
#else
|
|
||||||
#include "system/system_services.h"
|
|
||||||
#include "tcpip/sntp.h"
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MBED
|
|
||||||
#define CYASSL_USER_IO
|
|
||||||
#define NO_FILESYSTEM
|
|
||||||
#define NO_CERTS
|
|
||||||
#define USE_CERT_BUFFERS_1024
|
|
||||||
#define NO_WRITEV
|
|
||||||
#define NO_DEV_RANDOM
|
|
||||||
#define NO_SHA512
|
|
||||||
#define NO_DH
|
|
||||||
#define NO_DSA
|
|
||||||
#define HAVE_ECC
|
|
||||||
#define NO_SESSION_CACHE
|
|
||||||
#define CYASSL_CMSIS_RTOS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef CYASSL_EROAD
|
|
||||||
#define FREESCALE_MQX
|
|
||||||
#define FREESCALE_MMCAU
|
|
||||||
#define SINGLE_THREADED
|
|
||||||
#define NO_STDIO_FILESYSTEM
|
|
||||||
#define CYASSL_LEANPSK
|
|
||||||
#define HAVE_NULL_CIPHER
|
|
||||||
#define NO_OLD_TLS
|
|
||||||
#define NO_ASN
|
|
||||||
#define NO_BIG_INT
|
|
||||||
#define NO_RSA
|
|
||||||
#define NO_DSA
|
|
||||||
#define NO_DH
|
|
||||||
#define NO_CERTS
|
|
||||||
#define NO_PWDBASED
|
|
||||||
#define NO_DES3
|
|
||||||
#define NO_MD4
|
|
||||||
#define NO_RC4
|
|
||||||
#define NO_MD5
|
|
||||||
#define NO_SESSION_CACHE
|
|
||||||
#define NO_MAIN_DRIVER
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CYASSL_PICOTCP
|
|
||||||
#define errno pico_err
|
|
||||||
#include "pico_defines.h"
|
|
||||||
#include "pico_stack.h"
|
|
||||||
#include "pico_constants.h"
|
|
||||||
#define CUSTOM_RAND_GENERATE pico_rand
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CYASSL_PICOTCP_DEMO
|
|
||||||
#define CYASSL_STM32
|
|
||||||
#define USE_FAST_MATH
|
|
||||||
#define TFM_TIMING_RESISTANT
|
|
||||||
#define XMALLOC(s, h, type) PICO_ZALLOC((s))
|
|
||||||
#define XFREE(p, h, type) PICO_FREE((p))
|
|
||||||
#define SINGLE_THREADED
|
|
||||||
#define NO_WRITEV
|
|
||||||
#define CYASSL_USER_IO
|
|
||||||
#define NO_DEV_RANDOM
|
|
||||||
#define NO_FILESYSTEM
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef FREERTOS_WINSIM
|
|
||||||
#define FREERTOS
|
|
||||||
#define USE_WINDOWS_API
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* Micrium will use Visual Studio for compilation but not the Win32 API */
|
|
||||||
#if defined(_WIN32) && !defined(MICRIUM) && !defined(FREERTOS) \
|
|
||||||
&& !defined(EBSNET) && !defined(CYASSL_EROAD) && !defined(INTIME_RTOS)
|
|
||||||
#define USE_WINDOWS_API
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#if defined(CYASSL_LEANPSK) && !defined(XMALLOC_USER)
|
|
||||||
#include <stdlib.h>
|
|
||||||
#define XMALLOC(s, h, type) malloc((s))
|
|
||||||
#define XFREE(p, h, type) free((p))
|
|
||||||
#define XREALLOC(p, n, h, t) realloc((p), (n))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(XMALLOC_USER) && defined(SSN_BUILDING_LIBYASSL)
|
|
||||||
#undef XMALLOC
|
|
||||||
#define XMALLOC yaXMALLOC
|
|
||||||
#undef XFREE
|
|
||||||
#define XFREE yaXFREE
|
|
||||||
#undef XREALLOC
|
|
||||||
#define XREALLOC yaXREALLOC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef FREERTOS
|
|
||||||
#ifndef NO_WRITEV
|
|
||||||
#define NO_WRITEV
|
|
||||||
#endif
|
|
||||||
#ifndef NO_SHA512
|
|
||||||
#define NO_SHA512
|
|
||||||
#endif
|
|
||||||
#ifndef NO_DH
|
|
||||||
#define NO_DH
|
|
||||||
#endif
|
|
||||||
#ifndef NO_DSA
|
|
||||||
#define NO_DSA
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef SINGLE_THREADED
|
|
||||||
#include "FreeRTOS.h"
|
|
||||||
#include "semphr.h"
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CYASSL_TIRTOS
|
|
||||||
#define SIZEOF_LONG_LONG 8
|
|
||||||
#define NO_WRITEV
|
|
||||||
#define NO_CYASSL_DIR
|
|
||||||
#define USE_FAST_MATH
|
|
||||||
#define TFM_TIMING_RESISTANT
|
|
||||||
#define NO_DEV_RANDOM
|
|
||||||
#define NO_FILESYSTEM
|
|
||||||
#define USE_CERT_BUFFERS_2048
|
|
||||||
#define NO_ERROR_STRINGS
|
|
||||||
#define USER_TIME
|
|
||||||
|
|
||||||
#ifdef __IAR_SYSTEMS_ICC__
|
|
||||||
#pragma diag_suppress=Pa089
|
|
||||||
#elif !defined(__GNUC__)
|
|
||||||
/* Suppress the sslpro warning */
|
|
||||||
#pragma diag_suppress=11
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ti/ndk/nettools/mytime/mytime.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef EBSNET
|
|
||||||
#include "rtip.h"
|
|
||||||
|
|
||||||
/* #define DEBUG_CYASSL */
|
|
||||||
#define NO_CYASSL_DIR /* tbd */
|
|
||||||
|
|
||||||
#if (POLLOS)
|
|
||||||
#define SINGLE_THREADED
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (RTPLATFORM)
|
|
||||||
#if (!RTP_LITTLE_ENDIAN)
|
|
||||||
#define BIG_ENDIAN_ORDER
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#if (!KS_LITTLE_ENDIAN)
|
|
||||||
#define BIG_ENDIAN_ORDER
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (WINMSP3)
|
|
||||||
#undef SIZEOF_LONG
|
|
||||||
#define SIZEOF_LONG_LONG 8
|
|
||||||
#else
|
|
||||||
#if !defined(SIZEOF_LONG) && !defined(SIZEOF_LONG_LONG)
|
|
||||||
#error settings.h - please implement SIZEOF_LONG and SIZEOF_LONG_LONG
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define XMALLOC(s, h, type) ((void *)rtp_malloc((s), SSL_PRO_MALLOC))
|
|
||||||
#define XFREE(p, h, type) (rtp_free(p))
|
|
||||||
#define XREALLOC(p, n, h, t) realloc((p), (n))
|
|
||||||
|
|
||||||
#endif /* EBSNET */
|
|
||||||
|
|
||||||
#ifdef CYASSL_GAME_BUILD
|
|
||||||
#define SIZEOF_LONG_LONG 8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CYASSL_LSR
|
|
||||||
#define HAVE_WEBSERVER
|
|
||||||
#define SIZEOF_LONG_LONG 8
|
|
||||||
#define CYASSL_LOW_MEMORY
|
|
||||||
#define NO_WRITEV
|
|
||||||
#define NO_SHA512
|
|
||||||
#define NO_DH
|
|
||||||
#define NO_DSA
|
|
||||||
#define NO_DEV_RANDOM
|
|
||||||
#define NO_CYASSL_DIR
|
|
||||||
#ifndef NO_FILESYSTEM
|
|
||||||
#define LSR_FS
|
|
||||||
#include "inc/hw_types.h"
|
|
||||||
#include "fs.h"
|
|
||||||
#endif
|
|
||||||
#define CYASSL_LWIP
|
|
||||||
#include <errno.h> /* for tcp errno */
|
|
||||||
#define CYASSL_SAFERTOS
|
|
||||||
#if defined(__IAR_SYSTEMS_ICC__)
|
|
||||||
/* enum uses enum */
|
|
||||||
#pragma diag_suppress=Pa089
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CYASSL_SAFERTOS
|
|
||||||
#ifndef SINGLE_THREADED
|
|
||||||
#include "SafeRTOS/semphr.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "SafeRTOS/heap.h"
|
|
||||||
#define XMALLOC(s, h, type) pvPortMalloc((s))
|
|
||||||
#define XFREE(p, h, type) vPortFree((p))
|
|
||||||
#define XREALLOC(p, n, h, t) pvPortRealloc((p), (n))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CYASSL_LOW_MEMORY
|
|
||||||
#undef RSA_LOW_MEM
|
|
||||||
#define RSA_LOW_MEM
|
|
||||||
#undef CYASSL_SMALL_STACK
|
|
||||||
#define CYASSL_SMALL_STACK
|
|
||||||
#undef TFM_TIMING_RESISTANT
|
|
||||||
#define TFM_TIMING_RESISTANT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef FREESCALE_MQX
|
|
||||||
#define SIZEOF_LONG_LONG 8
|
|
||||||
#define NO_WRITEV
|
|
||||||
#define NO_DEV_RANDOM
|
|
||||||
#define NO_CYASSL_DIR
|
|
||||||
#define USE_FAST_MATH
|
|
||||||
#define TFM_TIMING_RESISTANT
|
|
||||||
#define FREESCALE_K70_RNGA
|
|
||||||
/* #define FREESCALE_K53_RNGB */
|
|
||||||
#include "mqx.h"
|
|
||||||
#ifndef NO_FILESYSTEM
|
|
||||||
#include "mfs.h"
|
|
||||||
#include "fio.h"
|
|
||||||
#endif
|
|
||||||
#ifndef SINGLE_THREADED
|
|
||||||
#include "mutex.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define XMALLOC(s, h, t) (void *)_mem_alloc_system((s))
|
|
||||||
#define XFREE(p, h, t) {void* xp = (p); if ((xp)) _mem_free((xp));}
|
|
||||||
/* Note: MQX has no realloc, using fastmath above */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CYASSL_STM32F2
|
|
||||||
#define SIZEOF_LONG_LONG 8
|
|
||||||
#define NO_DEV_RANDOM
|
|
||||||
#define NO_CYASSL_DIR
|
|
||||||
#define STM32F2_RNG
|
|
||||||
#define STM32F2_CRYPTO
|
|
||||||
#define KEIL_INTRINSICS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MICRIUM
|
|
||||||
|
|
||||||
#include "stdlib.h"
|
|
||||||
#include "net_cfg.h"
|
|
||||||
#include "ssl_cfg.h"
|
|
||||||
#include "net_secure_os.h"
|
|
||||||
|
|
||||||
#define CYASSL_TYPES
|
|
||||||
|
|
||||||
typedef CPU_INT08U byte;
|
|
||||||
typedef CPU_INT16U word16;
|
|
||||||
typedef CPU_INT32U word32;
|
|
||||||
|
|
||||||
#if (NET_SECURE_MGR_CFG_WORD_SIZE == CPU_WORD_SIZE_32)
|
|
||||||
#define SIZEOF_LONG 4
|
|
||||||
#undef SIZEOF_LONG_LONG
|
|
||||||
#else
|
|
||||||
#undef SIZEOF_LONG
|
|
||||||
#define SIZEOF_LONG_LONG 8
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define STRING_USER
|
|
||||||
|
|
||||||
#define XSTRLEN(pstr) ((CPU_SIZE_T)Str_Len((CPU_CHAR *)(pstr)))
|
|
||||||
#define XSTRNCPY(pstr_dest, pstr_src, len_max) \
|
|
||||||
((CPU_CHAR *)Str_Copy_N((CPU_CHAR *)(pstr_dest), \
|
|
||||||
(CPU_CHAR *)(pstr_src), (CPU_SIZE_T)(len_max)))
|
|
||||||
#define XSTRNCMP(pstr_1, pstr_2, len_max) \
|
|
||||||
((CPU_INT16S)Str_Cmp_N((CPU_CHAR *)(pstr_1), \
|
|
||||||
(CPU_CHAR *)(pstr_2), (CPU_SIZE_T)(len_max)))
|
|
||||||
#define XSTRSTR(pstr, pstr_srch) \
|
|
||||||
((CPU_CHAR *)Str_Str((CPU_CHAR *)(pstr), \
|
|
||||||
(CPU_CHAR *)(pstr_srch)))
|
|
||||||
#define XMEMSET(pmem, data_val, size) \
|
|
||||||
((void)Mem_Set((void *)(pmem), (CPU_INT08U) (data_val), \
|
|
||||||
(CPU_SIZE_T)(size)))
|
|
||||||
#define XMEMCPY(pdest, psrc, size) ((void)Mem_Copy((void *)(pdest), \
|
|
||||||
(void *)(psrc), (CPU_SIZE_T)(size)))
|
|
||||||
#define XMEMCMP(pmem_1, pmem_2, size) \
|
|
||||||
(((CPU_BOOLEAN)Mem_Cmp((void *)(pmem_1), (void *)(pmem_2), \
|
|
||||||
(CPU_SIZE_T)(size))) ? DEF_NO : DEF_YES)
|
|
||||||
#define XMEMMOVE XMEMCPY
|
|
||||||
|
|
||||||
#if (NET_SECURE_MGR_CFG_EN == DEF_ENABLED)
|
|
||||||
#define MICRIUM_MALLOC
|
|
||||||
#define XMALLOC(s, h, type) ((void *)NetSecure_BlkGet((CPU_INT08U)(type), \
|
|
||||||
(CPU_SIZE_T)(s), (void *)0))
|
|
||||||
#define XFREE(p, h, type) (NetSecure_BlkFree((CPU_INT08U)(type), \
|
|
||||||
(p), (void *)0))
|
|
||||||
#define XREALLOC(p, n, h, t) realloc((p), (n))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (NET_SECURE_MGR_CFG_FS_EN == DEF_ENABLED)
|
|
||||||
#undef NO_FILESYSTEM
|
|
||||||
#else
|
|
||||||
#define NO_FILESYSTEM
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_TRACE_LEVEL == CYASSL_TRACE_LEVEL_DBG)
|
|
||||||
#define DEBUG_CYASSL
|
|
||||||
#else
|
|
||||||
#undef DEBUG_CYASSL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_OPENSSL_EN == DEF_ENABLED)
|
|
||||||
#define OPENSSL_EXTRA
|
|
||||||
#else
|
|
||||||
#undef OPENSSL_EXTRA
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_MULTI_THREAD_EN == DEF_ENABLED)
|
|
||||||
#undef SINGLE_THREADED
|
|
||||||
#else
|
|
||||||
#define SINGLE_THREADED
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_DH_EN == DEF_ENABLED)
|
|
||||||
#undef NO_DH
|
|
||||||
#else
|
|
||||||
#define NO_DH
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_DSA_EN == DEF_ENABLED)
|
|
||||||
#undef NO_DSA
|
|
||||||
#else
|
|
||||||
#define NO_DSA
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_PSK_EN == DEF_ENABLED)
|
|
||||||
#undef NO_PSK
|
|
||||||
#else
|
|
||||||
#define NO_PSK
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_3DES_EN == DEF_ENABLED)
|
|
||||||
#undef NO_DES3
|
|
||||||
#else
|
|
||||||
#define NO_DES3
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_AES_EN == DEF_ENABLED)
|
|
||||||
#undef NO_AES
|
|
||||||
#else
|
|
||||||
#define NO_AES
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_RC4_EN == DEF_ENABLED)
|
|
||||||
#undef NO_RC4
|
|
||||||
#else
|
|
||||||
#define NO_RC4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (CPU_CFG_ENDIAN_TYPE == CPU_ENDIAN_TYPE_BIG)
|
|
||||||
#define BIG_ENDIAN_ORDER
|
|
||||||
#else
|
|
||||||
#undef BIG_ENDIAN_ORDER
|
|
||||||
#define LITTLE_ENDIAN_ORDER
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_MD4_EN == DEF_ENABLED)
|
|
||||||
#undef NO_MD4
|
|
||||||
#else
|
|
||||||
#define NO_MD4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_WRITEV_EN == DEF_ENABLED)
|
|
||||||
#undef NO_WRITEV
|
|
||||||
#else
|
|
||||||
#define NO_WRITEV
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_USER_RNG_SEED_EN == DEF_ENABLED)
|
|
||||||
#define NO_DEV_RANDOM
|
|
||||||
#else
|
|
||||||
#undef NO_DEV_RANDOM
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_USER_IO_EN == DEF_ENABLED)
|
|
||||||
#define CYASSL_USER_IO
|
|
||||||
#else
|
|
||||||
#undef CYASSL_USER_IO
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_DYNAMIC_BUFFERS_EN == DEF_ENABLED)
|
|
||||||
#undef LARGE_STATIC_BUFFERS
|
|
||||||
#undef STATIC_CHUNKS_ONLY
|
|
||||||
#else
|
|
||||||
#define LARGE_STATIC_BUFFERS
|
|
||||||
#define STATIC_CHUNKS_ONLY
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_DER_LOAD_EN == DEF_ENABLED)
|
|
||||||
#define CYASSL_DER_LOAD
|
|
||||||
#else
|
|
||||||
#undef CYASSL_DER_LOAD
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_DTLS_EN == DEF_ENABLED)
|
|
||||||
#define CYASSL_DTLS
|
|
||||||
#else
|
|
||||||
#undef CYASSL_DTLS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_CALLBACKS_EN == DEF_ENABLED)
|
|
||||||
#define CYASSL_CALLBACKS
|
|
||||||
#else
|
|
||||||
#undef CYASSL_CALLBACKS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_FAST_MATH_EN == DEF_ENABLED)
|
|
||||||
#define USE_FAST_MATH
|
|
||||||
#else
|
|
||||||
#undef USE_FAST_MATH
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (SSL_CFG_TFM_TIMING_RESISTANT_EN == DEF_ENABLED)
|
|
||||||
#define TFM_TIMING_RESISTANT
|
|
||||||
#else
|
|
||||||
#undef TFM_TIMING_RESISTANT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* MICRIUM */
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef CYASSL_QL
|
|
||||||
#ifndef CYASSL_SEP
|
|
||||||
#define CYASSL_SEP
|
|
||||||
#endif
|
|
||||||
#ifndef OPENSSL_EXTRA
|
|
||||||
#define OPENSSL_EXTRA
|
|
||||||
#endif
|
|
||||||
#ifndef SESSION_CERTS
|
|
||||||
#define SESSION_CERTS
|
|
||||||
#endif
|
|
||||||
#ifndef HAVE_AESCCM
|
|
||||||
#define HAVE_AESCCM
|
|
||||||
#endif
|
|
||||||
#ifndef ATOMIC_USER
|
|
||||||
#define ATOMIC_USER
|
|
||||||
#endif
|
|
||||||
#ifndef CYASSL_DER_LOAD
|
|
||||||
#define CYASSL_DER_LOAD
|
|
||||||
#endif
|
|
||||||
#ifndef KEEP_PEER_CERT
|
|
||||||
#define KEEP_PEER_CERT
|
|
||||||
#endif
|
|
||||||
#ifndef HAVE_ECC
|
|
||||||
#define HAVE_ECC
|
|
||||||
#endif
|
|
||||||
#ifndef SESSION_INDEX
|
|
||||||
#define SESSION_INDEX
|
|
||||||
#endif
|
|
||||||
#endif /* CYASSL_QL */
|
|
||||||
|
|
||||||
|
|
||||||
#if !defined(XMALLOC_USER) && !defined(MICRIUM_MALLOC) && \
|
|
||||||
!defined(CYASSL_LEANPSK) && !defined(NO_CYASSL_MEMORY)
|
|
||||||
#define USE_CYASSL_MEMORY
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#if defined(OPENSSL_EXTRA) && !defined(NO_CERTS)
|
|
||||||
#undef KEEP_PEER_CERT
|
|
||||||
#define KEEP_PEER_CERT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* stream ciphers except arc4 need 32bit alignment, intel ok without */
|
|
||||||
#ifndef XSTREAM_ALIGNMENT
|
|
||||||
#if defined(__x86_64__) || defined(__ia64__) || defined(__i386__)
|
|
||||||
#define NO_XSTREAM_ALIGNMENT
|
|
||||||
#else
|
|
||||||
#define XSTREAM_ALIGNMENT
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* FreeScale MMCAU hardware crypto has 4 byte alignment */
|
|
||||||
#ifdef FREESCALE_MMCAU
|
|
||||||
#define CYASSL_MMCAU_ALIGNMENT 4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* if using hardware crypto and have alignment requirements, specify the
|
|
||||||
requirement here. The record header of SSL/TLS will prvent easy alignment.
|
|
||||||
This hint tries to help as much as possible. */
|
|
||||||
#ifndef CYASSL_GENERAL_ALIGNMENT
|
|
||||||
#ifdef CYASSL_AESNI
|
|
||||||
#define CYASSL_GENERAL_ALIGNMENT 16
|
|
||||||
#elif defined(XSTREAM_ALIGNMENT)
|
|
||||||
#define CYASSL_GENERAL_ALIGNMENT 4
|
|
||||||
#elif defined(FREESCALE_MMCAU)
|
|
||||||
#define CYASSL_GENERAL_ALIGNMENT CYASSL_MMCAU_ALIGNMENT
|
|
||||||
#else
|
|
||||||
#define CYASSL_GENERAL_ALIGNMENT 0
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __INTEL_COMPILER
|
|
||||||
#pragma warning(disable:2259) /* explicit casts to smaller sizes, disable */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* Place any other flags or defines here */
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
} /* extern "C" */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_SETTINGS_H */
|
|
@ -1,69 +0,0 @@
|
|||||||
/* settings_comp.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_SETTINGS_C_H
|
|
||||||
#define CTAO_CRYPT_SETTINGS_C_H
|
|
||||||
|
|
||||||
|
|
||||||
/* since fips overrides rsa.h map compatibility here */
|
|
||||||
#if !defined(NO_RSA)
|
|
||||||
#ifdef WOLFSSL_KEY_GEN
|
|
||||||
#define RsaKeyToDer wc_RsaKeyToDer
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define RsaPrivateKeyDecode wc_RsaPrivateKeyDecode
|
|
||||||
#define RsaPublicKeyDecode wc_RsaPublicKeyDecode
|
|
||||||
#define RsaPublicKeyDecodeRaw wc_RsaPublicKeyDecodeRaw
|
|
||||||
#endif /* have rsa and HAVE_FIPS */
|
|
||||||
|
|
||||||
/* Macro redefinitions for compatibility */
|
|
||||||
#if defined(WOLFSSL_SHA512) && !defined(CYASSL_SHA512)
|
|
||||||
#define CYASSL_SHA512
|
|
||||||
#endif
|
|
||||||
#if defined(WOLFSSL_SHA384) && !defined(CYASSL_SHA384)
|
|
||||||
#define CYASSL_SHA384
|
|
||||||
#endif
|
|
||||||
#if defined(WOLFSSL_LEANPSK) && !defined(CYASSL_LEANPSK)
|
|
||||||
#define CYASSL_LEANPSK
|
|
||||||
#endif
|
|
||||||
#if defined(NO_WOLFSSL_MEMORY) && !defined(NO_CYASSL_MEMORY)
|
|
||||||
#define NO_CYASSL_MEMORY
|
|
||||||
#endif
|
|
||||||
#if defined(WOLFSSL_KEY_GEN) && !defined(CYASSL_KEY_GEN)
|
|
||||||
#define CYASSL_KEY_GEN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* AES */
|
|
||||||
#if defined(WOLFSSL_AES_DIRECT) && !defined(CYASSL_AES_DIRECT)
|
|
||||||
#define CYASSL_AES_DIRECT
|
|
||||||
#endif
|
|
||||||
#if defined(WOLFSSL_AES_COUNTER) && !defined(CYASSL_AES_COUNTER)
|
|
||||||
#define CYASSL_AES_COUNTER
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* DES */
|
|
||||||
#if defined(WOLFSSL_DES_ECB) && !defined(CYASSL_DES_ECB)
|
|
||||||
#define CYASSL_DES_ECB
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_SETTINGS_C_H */
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
|||||||
/* sha.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_SHA
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_SHA_H
|
|
||||||
#define CTAO_CRYPT_SHA_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/sha.h>
|
|
||||||
#define InitSha wc_InitSha
|
|
||||||
#define ShaUpdate wc_ShaUpdate
|
|
||||||
#define ShaFinal wc_ShaFinal
|
|
||||||
#define ShaHash wc_ShaHash
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_SHA_H */
|
|
||||||
#endif /* NO_SHA */
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
|||||||
/* sha256.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_SHA256
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_SHA256_H
|
|
||||||
#define CTAO_CRYPT_SHA256_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/sha256.h>
|
|
||||||
#define InitSha256 wc_InitSha256
|
|
||||||
#define Sha256Update wc_Sha256Update
|
|
||||||
#define Sha256Final wc_Sha256Final
|
|
||||||
#define Sha256Hash wc_Sha256Hash
|
|
||||||
|
|
||||||
#ifdef WOLFSSL_SHA224
|
|
||||||
#define InitSha224 wc_InitSha224
|
|
||||||
#define Sha224Update wc_Sha224Update
|
|
||||||
#define Sha224Final wc_Sha224Final
|
|
||||||
#define Sha224Hash wc_Sha224Hash
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_SHA256_H */
|
|
||||||
#endif /* NO_SHA256 */
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
|||||||
/* sha512.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_SHA512_H
|
|
||||||
#define CTAO_CRYPT_SHA512_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/sha512.h>
|
|
||||||
#define InitSha512 wc_InitSha512
|
|
||||||
#define Sha512Update wc_Sha512Update
|
|
||||||
#define Sha512Final wc_Sha512Final
|
|
||||||
#define Sha512Hash wc_Sha512Hash
|
|
||||||
|
|
||||||
#if defined(WOLFSSL_SHA384) || defined(HAVE_AESGCM)
|
|
||||||
#define InitSha384 wc_InitSha384
|
|
||||||
#define Sha384Update wc_Sha384Update
|
|
||||||
#define Sha384Final wc_Sha384Final
|
|
||||||
#define Sha384Hash wc_Sha384Hash
|
|
||||||
#endif /* WOLFSSL_SHA384 */
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_SHA512_H */
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
|||||||
/* tfm.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Based on public domain TomsFastMath 0.10 by Tom St Denis, tomstdenis@iahu.ca,
|
|
||||||
* http://math.libtomcrypt.com
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br)
|
|
||||||
* to fit CyaSSL's needs.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_TFM_H
|
|
||||||
#define CTAO_CRYPT_TFM_H
|
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/tfm.h>
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_TFM_H */
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
|||||||
/* types.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_TYPES_H
|
|
||||||
#define CTAO_CRYPT_TYPES_H
|
|
||||||
|
|
||||||
#include <cyassl/ctaocrypt/wc_port.h>
|
|
||||||
#include <cyassl/ctaocrypt/settings.h>
|
|
||||||
#include <wolfssl/wolfcrypt/types.h>
|
|
||||||
|
|
||||||
/* compatibility macros */
|
|
||||||
#define CYASSL_WORD_SIZE WOLFSSL_WORD_SIZE
|
|
||||||
#define CYASSL_BIT_SIZE WOLFSSL_BIT_SIZE
|
|
||||||
#define CYASSL_MAX_16BIT WOLFSSL_MAX_16BIT
|
|
||||||
#define CYASSL_MAX_ERROR_SZ WOLFSSL_MAX_ERROR_SZ
|
|
||||||
#define cyassl_word wolfssl_word
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_TYPES_H */
|
|
||||||
|
|
@ -1,73 +0,0 @@
|
|||||||
/* visibility.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/* Visibility control macros */
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_VISIBILITY_H
|
|
||||||
#define CTAO_CRYPT_VISIBILITY_H
|
|
||||||
|
|
||||||
/* fips compatibility @wc_fips */
|
|
||||||
#ifndef HAVE_FIPS
|
|
||||||
#include <wolfssl/wolfcrypt/visibility.h>
|
|
||||||
#define CYASSL_API WOLFSSL_API
|
|
||||||
#define CYASSL_LOCAL WOLFSSL_LOCAL
|
|
||||||
#else
|
|
||||||
/* CYASSL_API is used for the public API symbols.
|
|
||||||
It either imports or exports (or does nothing for static builds)
|
|
||||||
|
|
||||||
CYASSL_LOCAL is used for non-API symbols (private).
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if defined(BUILDING_WOLFSSL)
|
|
||||||
#if defined(HAVE_VISIBILITY) && HAVE_VISIBILITY
|
|
||||||
#define CYASSL_API __attribute__ ((visibility("default")))
|
|
||||||
#define CYASSL_LOCAL __attribute__ ((visibility("hidden")))
|
|
||||||
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
|
|
||||||
#define CYASSL_API __global
|
|
||||||
#define CYASSL_LOCAL __hidden
|
|
||||||
#elif defined(_MSC_VER)
|
|
||||||
#ifdef CYASSL_DLL
|
|
||||||
#define CYASSL_API extern __declspec(dllexport)
|
|
||||||
#else
|
|
||||||
#define CYASSL_API
|
|
||||||
#endif
|
|
||||||
#define CYASSL_LOCAL
|
|
||||||
#else
|
|
||||||
#define CYASSL_API
|
|
||||||
#define CYASSL_LOCAL
|
|
||||||
#endif /* HAVE_VISIBILITY */
|
|
||||||
#else /* BUILDING_WOLFSSL */
|
|
||||||
#if defined(_MSC_VER)
|
|
||||||
#ifdef CYASSL_DLL
|
|
||||||
#define CYASSL_API extern __declspec(dllimport)
|
|
||||||
#else
|
|
||||||
#define CYASSL_API
|
|
||||||
#endif
|
|
||||||
#define CYASSL_LOCAL
|
|
||||||
#else
|
|
||||||
#define CYASSL_API
|
|
||||||
#define CYASSL_LOCAL
|
|
||||||
#endif
|
|
||||||
#endif /* BUILDING_WOLFSSL */
|
|
||||||
#endif /* HAVE_FIPS */
|
|
||||||
#endif /* CTAO_CRYPT_VISIBILITY_H */
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
|||||||
/* port.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef CTAO_CRYPT_PORT_H
|
|
||||||
#define CTAO_CRYPT_PORT_H
|
|
||||||
|
|
||||||
#include <cyassl/ctaocrypt/visibility.h>
|
|
||||||
#include <wolfssl/wolfcrypt/wc_port.h>
|
|
||||||
#define CyaSSL_Mutex wolfSSL_Mutex
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_PORT_H */
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
|||||||
/* error-ssl.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#include <wolfssl/error-ssl.h>
|
|
@ -1,31 +0,0 @@
|
|||||||
# vim:ft=automake
|
|
||||||
# All paths should be given relative to the root
|
|
||||||
#
|
|
||||||
|
|
||||||
include cyassl/ctaocrypt/include.am
|
|
||||||
include cyassl/openssl/include.am
|
|
||||||
|
|
||||||
EXTRA_DIST+= cyassl/sniffer_error.rc
|
|
||||||
|
|
||||||
nobase_include_HEADERS+= \
|
|
||||||
cyassl/error-ssl.h \
|
|
||||||
cyassl/ssl.h \
|
|
||||||
cyassl/sniffer_error.h \
|
|
||||||
cyassl/sniffer.h \
|
|
||||||
cyassl/callbacks.h \
|
|
||||||
cyassl/certs_test.h \
|
|
||||||
cyassl/test.h \
|
|
||||||
cyassl/version.h \
|
|
||||||
cyassl/ocsp.h \
|
|
||||||
cyassl/crl.h
|
|
||||||
|
|
||||||
noinst_HEADERS+= \
|
|
||||||
cyassl/internal.h
|
|
||||||
|
|
||||||
# For distro build don't install options.h.
|
|
||||||
# It depends on the architecture and conflicts with Multi-Arch.
|
|
||||||
if BUILD_DISTRO
|
|
||||||
noinst_HEADERS+= cyassl/options.h
|
|
||||||
else
|
|
||||||
nobase_include_HEADERS+= cyassl/options.h
|
|
||||||
endif
|
|
@ -1,23 +0,0 @@
|
|||||||
/* internal.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#include <wolfssl/internal.h>
|
|
@ -1,23 +0,0 @@
|
|||||||
/* ocsp.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#include <wolfssl/ocsp.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* asn1.h for openssl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/asn1.h>
|
|
@ -1,4 +0,0 @@
|
|||||||
/* bio.h for openssl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/bio.h>
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
/* bn.h for openssl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/bn.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* conf.h for openssl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/conf.h>
|
|
@ -1,4 +0,0 @@
|
|||||||
/* crypto.h for openSSL */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/crypto.h>
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
|||||||
/* des.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* des.h defines mini des openssl compatibility layer
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/des.h>
|
|
@ -1,4 +0,0 @@
|
|||||||
/* dh.h for openSSL */
|
|
||||||
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/dh.h>
|
|
@ -1,12 +0,0 @@
|
|||||||
/* dsa.h for openSSL */
|
|
||||||
|
|
||||||
#ifndef CYASSL_OPENSSL_DSA
|
|
||||||
#define CYASSL_OPENSSL_DSA
|
|
||||||
|
|
||||||
#define CyaSSL_DSA_LoadDer wolfSSL_DSA_LoadDer
|
|
||||||
#define CyaSSL_DSA_do_sign wolfSSL_DSA_do_sign
|
|
||||||
|
|
||||||
#include <cyassl/openssl/ssl.h>
|
|
||||||
#include <wolfssl/openssl/dsa.h>
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
/* ec.h for openssl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/ec.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* ec25519.h */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/ec25519.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* ec448.h */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/ec448.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* ecdh.h for openssl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/ecdh.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* ecdsa.h for openssl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/ecdsa.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* ed25519.h */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/ed25519.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* ed448.h */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/ed448.h>
|
|
@ -1,5 +0,0 @@
|
|||||||
/* engine.h for libcurl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/engine.h>
|
|
||||||
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
/* err.h for openssl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/err.h>
|
|
@ -1,41 +0,0 @@
|
|||||||
/* evp.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* evp.h defines mini evp openssl compatibility layer
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CYASSL_OPENSSL_EVP
|
|
||||||
#define CYASSL_OPENSSL_EVP
|
|
||||||
|
|
||||||
#define CyaSSL_StoreExternalIV wolfSSL_StoreExternalIV
|
|
||||||
#define CyaSSL_SetInternalIV wolfSSL_SetInternalIV
|
|
||||||
#define CYASSL_EVP_MD WOLFSSL_EVP_MD
|
|
||||||
#define CyaSSL_EVP_X_STATE wolfSSL_EVP_X_STATE
|
|
||||||
#define CyaSSL_EVP_X_STATE_LEN wolfSSL_EVP_X_STATE_LEN
|
|
||||||
#define CyaSSL_3des_iv wolfSSL_3des_iv
|
|
||||||
#define CyaSSL_aes_ctr_iv wolfSSL_aes_ctr_iv
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/evp.h>
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
|||||||
/* hmac.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* hmac.h defines mini hamc openssl compatibility layer
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/hmac.h>
|
|
@ -1,42 +0,0 @@
|
|||||||
# vim:ft=automake
|
|
||||||
# All paths should be given relative to the root
|
|
||||||
|
|
||||||
nobase_include_HEADERS+= \
|
|
||||||
cyassl/openssl/asn1.h \
|
|
||||||
cyassl/openssl/bio.h \
|
|
||||||
cyassl/openssl/bn.h \
|
|
||||||
cyassl/openssl/conf.h \
|
|
||||||
cyassl/openssl/crypto.h \
|
|
||||||
cyassl/openssl/des.h \
|
|
||||||
cyassl/openssl/dh.h \
|
|
||||||
cyassl/openssl/dsa.h \
|
|
||||||
cyassl/openssl/ecdsa.h \
|
|
||||||
cyassl/openssl/ecdh.h \
|
|
||||||
cyassl/openssl/ec.h \
|
|
||||||
cyassl/openssl/ec25519.h \
|
|
||||||
cyassl/openssl/ed25519.h \
|
|
||||||
cyassl/openssl/ec448.h \
|
|
||||||
cyassl/openssl/ed448.h \
|
|
||||||
cyassl/openssl/engine.h \
|
|
||||||
cyassl/openssl/err.h \
|
|
||||||
cyassl/openssl/evp.h \
|
|
||||||
cyassl/openssl/hmac.h \
|
|
||||||
cyassl/openssl/lhash.h \
|
|
||||||
cyassl/openssl/md4.h \
|
|
||||||
cyassl/openssl/md5.h \
|
|
||||||
cyassl/openssl/ripemd.h \
|
|
||||||
cyassl/openssl/ocsp.h \
|
|
||||||
cyassl/openssl/opensslconf.h \
|
|
||||||
cyassl/openssl/opensslv.h \
|
|
||||||
cyassl/openssl/ossl_typ.h \
|
|
||||||
cyassl/openssl/pem.h \
|
|
||||||
cyassl/openssl/pkcs12.h \
|
|
||||||
cyassl/openssl/rand.h \
|
|
||||||
cyassl/openssl/rsa.h \
|
|
||||||
cyassl/openssl/sha.h \
|
|
||||||
cyassl/openssl/ssl23.h \
|
|
||||||
cyassl/openssl/ssl.h \
|
|
||||||
cyassl/openssl/stack.h \
|
|
||||||
cyassl/openssl/ui.h \
|
|
||||||
cyassl/openssl/x509.h \
|
|
||||||
cyassl/openssl/x509v3.h
|
|
@ -1,3 +0,0 @@
|
|||||||
/* lhash.h for openSSL */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/lhash.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* md4.h for libcurl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/md4.h>
|
|
@ -1,5 +0,0 @@
|
|||||||
/* md5.h for openssl */
|
|
||||||
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/md5.h>
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
/* ocsp.h for libcurl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/ocsp.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* opensslconf.h for openSSL */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/opensslconf.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* opensslv.h compatibility */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/opensslv.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* ossl_typ.h for openssl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/ossl_typ.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* pem.h for openssl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/pem.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* pkcs12.h for openssl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/pkcs12.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* rand.h for openSSL */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/ssl.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* ripemd.h for openssl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/ripemd.h>
|
|
@ -1,12 +0,0 @@
|
|||||||
/* rsa.h for openSSL */
|
|
||||||
|
|
||||||
#ifndef CYASSL_OPENSSL_RSA
|
|
||||||
#define CYASSL_OPENSSL_RSA
|
|
||||||
|
|
||||||
#define CyaSSL_RSA_GenAdd wolfSSL_RSA_GenAdd
|
|
||||||
#define CyaSSL_RSA_LoadDer wolfSSL_RSA_LoadDer
|
|
||||||
|
|
||||||
#include <cyassl/openssl/ssl.h>
|
|
||||||
#include <wolfssl/openssl/rsa.h>
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
/* sha.h for openssl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/sha.h>
|
|
@ -1,34 +0,0 @@
|
|||||||
/* ssl.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL 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.
|
|
||||||
*
|
|
||||||
* wolfSSL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ssl.h defines openssl compatibility layer
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
#ifndef CYASSL_OPENSSL_H_
|
|
||||||
#define CYASSL_OPENSSL_H_
|
|
||||||
|
|
||||||
#include <cyassl/ssl.h>
|
|
||||||
#include <wolfssl/openssl/ssl.h>
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
/* ssl23.h for openssl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/ssl23.h>
|
|
@ -1,3 +0,0 @@
|
|||||||
/* stack.h for openssl */
|
|
||||||
|
|
||||||
#include <wolfssl/openssl/stack.h>
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user