mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Merge pull request #4520 from JacobBarthelmeh/Testing
add kdf.c file to IDE projects and cmake, few edge case fuzz reports, remove exe bit and c files
This commit is contained in:
@ -67,6 +67,7 @@ cc_library_shared {
|
||||
"./wolfcrypt/src/ge_low_mem.c",
|
||||
"./wolfcrypt/src/ge_operations.c",
|
||||
"./wolfcrypt/src/hash.c",
|
||||
"./wolfcrypt/src/kdf.c",
|
||||
"./wolfcrypt/src/hc128.c",
|
||||
"./wolfcrypt/src/hmac.c",
|
||||
"./wolfcrypt/src/idea.c",
|
||||
|
@ -414,6 +414,11 @@
|
||||
<type>1</type>
|
||||
<locationURI>WOLFSSL_ROOT/wolfcrypt/src/ge_operations.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>wolfcrypt/src/kdf.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>WOLFSSL_ROOT/wolfcrypt/src/kdf.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>wolfcrypt/src/hash.c</name>
|
||||
<type>1</type>
|
||||
|
@ -138,6 +138,7 @@ SRC_C += ../../wolfcrypt/src/ge_448.c
|
||||
SRC_C += ../../wolfcrypt/src/ge_low_mem.c
|
||||
SRC_C += ../../wolfcrypt/src/ge_operations.c
|
||||
SRC_C += ../../wolfcrypt/src/hash.c
|
||||
SRC_C += ../../wolfcrypt/src/kdf.c
|
||||
SRC_C += ../../wolfcrypt/src/integer.c
|
||||
SRC_C += ../../wolfcrypt/src/logging.c
|
||||
SRC_C += ../../wolfcrypt/src/md5.c
|
||||
|
@ -1975,6 +1975,9 @@
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\..\..\..\wolfcrypt\src\hash.c</name>
|
||||
</file>
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\..\..\..\wolfcrypt\src\kdf.c</name>
|
||||
</file>
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\..\..\..\wolfcrypt\src\hc128.c</name>
|
||||
</file>
|
||||
|
@ -1956,6 +1956,9 @@
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\..\..\..\..\wolfcrypt\src\hash.c</name>
|
||||
</file>
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\..\..\..\..\wolfcrypt\src\kdf.c</name>
|
||||
</file>
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\..\..\..\..\wolfcrypt\src\hmac.c</name>
|
||||
</file>
|
||||
|
@ -2346,6 +2346,9 @@
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\..\..\..\..\wolfcrypt\src\hash.c</name>
|
||||
</file>
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\..\..\..\..\wolfcrypt\src\kdf.c</name>
|
||||
</file>
|
||||
<file>
|
||||
<name>$PROJ_DIR$\..\..\..\..\..\wolfcrypt\src\hmac.c</name>
|
||||
</file>
|
||||
|
@ -45,6 +45,7 @@ wolfssl (latest version)
|
||||
# hmac.c tfm.c #
|
||||
# md4.c wc_encrypt.c #
|
||||
# md5.c wc_port.c #
|
||||
# kdf.c #
|
||||
#---------------------------------------------#
|
||||
|
||||
5. Once those are all added go to
|
||||
|
@ -46,6 +46,7 @@
|
||||
<ClCompile Include="..\..\wolfcrypt\src\ge_low_mem.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\ge_operations.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\hash.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\kdf.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\hc128.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\hmac.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\idea.c" />
|
||||
|
@ -165,6 +165,11 @@
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-2-PROJECT_LOC/wolfcrypt/src/hash.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>src/wolfcrypt-src/kdf.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-2-PROJECT_LOC/wolfcrypt/src/kdf.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>src/wolfcrypt-src/hc128.c</name>
|
||||
<type>1</type>
|
||||
|
@ -61,6 +61,7 @@ Wolfssl_C_Files :=$(WOLFSSL_ROOT)/wolfcrypt/src/aes.c\
|
||||
$(WOLFSSL_ROOT)/wolfcrypt/src/ecc.c\
|
||||
$(WOLFSSL_ROOT)/wolfcrypt/src/error.c\
|
||||
$(WOLFSSL_ROOT)/wolfcrypt/src/hash.c\
|
||||
$(WOLFSSL_ROOT)/wolfcrypt/src/kdf.c\
|
||||
$(WOLFSSL_ROOT)/wolfcrypt/src/hc128.c\
|
||||
$(WOLFSSL_ROOT)/wolfcrypt/src/hmac.c\
|
||||
$(WOLFSSL_ROOT)/wolfcrypt/src/integer.c\
|
||||
|
@ -20,6 +20,7 @@ CSRCS := ../../wolfcrypt/src/rsa.c \
|
||||
../../wolfcrypt/src/memory.c \
|
||||
../../wolfcrypt/src/coding.c \
|
||||
../../wolfcrypt/src/hash.c \
|
||||
../../wolfcrypt/src/kdf.c \
|
||||
../../wolfcrypt/src/hmac.c \
|
||||
../../wolfcrypt/src/md5.c \
|
||||
../../wolfcrypt/src/wc_port.c \
|
||||
|
@ -1181,6 +1181,19 @@
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>48</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<Focus>0</Focus>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\..\wolfcrypt\src\kdf.c</PathWithFileName>
|
||||
<FilenameWithoutPath>kdf.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
|
@ -626,6 +626,11 @@
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\wolfcrypt\src\hash.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>kdf.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\wolfcrypt\src\kdf.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>misc.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
@ -1335,6 +1340,11 @@
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\wolfcrypt\src\hash.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>kdf.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\wolfcrypt\src\kdf.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>misc.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
@ -2044,6 +2054,11 @@
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\wolfcrypt\src\hash.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>kdf.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\wolfcrypt\src\kdf.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>misc.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
|
@ -71,6 +71,7 @@
|
||||
<file file_name="../../wolfcrypt/src/ge_low_mem.c" />
|
||||
<file file_name="../../wolfcrypt/src/ge_operations.c" />
|
||||
<file file_name="../../wolfcrypt/src/hash.c" />
|
||||
<file file_name="../../wolfcrypt/src/kdf.c" />
|
||||
<file file_name="../../wolfcrypt/src/hc128.c" />
|
||||
<file file_name="../../wolfcrypt/src/hmac.c" />
|
||||
<file file_name="../../wolfcrypt/src/idea.c" />
|
||||
|
@ -73,6 +73,7 @@
|
||||
<file file_name="../../wolfcrypt/src/ge_low_mem.c" />
|
||||
<file file_name="../../wolfcrypt/src/ge_operations.c" />
|
||||
<file file_name="../../wolfcrypt/src/hash.c" />
|
||||
<file file_name="../../wolfcrypt/src/kdf.c" />
|
||||
<file file_name="../../wolfcrypt/src/hc128.c" />
|
||||
<file file_name="../../wolfcrypt/src/hmac.c" />
|
||||
<file file_name="../../wolfcrypt/src/idea.c" />
|
||||
|
@ -214,6 +214,11 @@
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/wolfcrypt/src/hash.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>wolfcrypt/src/kdf.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/wolfcrypt/src/kdf.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>wolfcrypt/src/hc128.c</name>
|
||||
<type>1</type>
|
||||
|
@ -214,6 +214,11 @@
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/wolfcrypt/src/hash.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>wolfcrypt/src/kdf.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/wolfcrypt/src/kdf.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>wolfcrypt/src/hc128.c</name>
|
||||
<type>1</type>
|
||||
|
@ -215,6 +215,11 @@
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/wolfcrypt/src/hash.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>wolfcrypt/kdf.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/wolfcrypt/src/kdf.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>wolfcrypt/hc128.c</name>
|
||||
<type>1</type>
|
||||
|
@ -214,6 +214,11 @@
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/wolfcrypt/src/hash.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>wolfcrypt/src/kdf.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-5-PROJECT_LOC/wolfcrypt/src/kdf.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>wolfcrypt/src/hc128.c</name>
|
||||
<type>1</type>
|
||||
|
@ -63,6 +63,7 @@
|
||||
<ClCompile Include="..\..\wolfcrypt\src\ge_low_mem.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\ge_operations.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\hash.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\kdf.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\hc128.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\hmac.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\idea.c" />
|
||||
|
@ -45,6 +45,7 @@
|
||||
<ClCompile Include="..\..\wolfcrypt\src\hash.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\hc128.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\hmac.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\kdf.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\idea.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\integer.c" />
|
||||
<ClCompile Include="..\..\wolfcrypt\src\logging.c" />
|
||||
@ -132,4 +133,4 @@
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets" />
|
||||
</Project>
|
||||
</Project>
|
||||
|
@ -169,6 +169,8 @@
|
||||
522DBE131B792A190031F454 /* wc_encrypt.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 522DBE121B7929E70031F454 /* wc_encrypt.h */; };
|
||||
525BE5BA1B38853E0054BBCD /* hash.c in Sources */ = {isa = PBXBuildFile; fileRef = 525BE5B91B38853E0054BBCD /* hash.c */; };
|
||||
525BE5BC1B3885750054BBCD /* hash.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 525BE5BB1B3885580054BBCD /* hash.h */; };
|
||||
6AC85136272CAFEC00F2B32A /* kdf.c in Sources */ = {isa = PBXBuildFile; fileRef = 6AC85135272CAFEC00F2B32A /* kdf.c */; };
|
||||
6AC85137272CAFEC00F2B32A /* kdf.c in Sources */ = {isa = PBXBuildFile; fileRef = 6AC85135272CAFEC00F2B32A /* kdf.c */; };
|
||||
A4A54DF71BC5C3E0002866CD /* wolfcrypt_first.c in Sources */ = {isa = PBXBuildFile; fileRef = 5216481B1A8AC2990062516A /* wolfcrypt_first.c */; };
|
||||
A4A54DF81BC5C3E0002866CD /* hmac.c in Sources */ = {isa = PBXBuildFile; fileRef = 521648141A8AC2990062516A /* hmac.c */; };
|
||||
A4A54DF91BC5C3E0002866CD /* random.c in Sources */ = {isa = PBXBuildFile; fileRef = 521648161A8AC2990062516A /* random.c */; };
|
||||
@ -786,6 +788,8 @@
|
||||
525BE5B91B38853E0054BBCD /* hash.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = hash.c; path = ../../wolfcrypt/src/hash.c; sourceTree = "<group>"; };
|
||||
525BE5BB1B3885580054BBCD /* hash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = hash.h; path = ../../wolfssl/wolfcrypt/hash.h; sourceTree = "<group>"; };
|
||||
52B1344D16F3C9E800C07B32 /* libwolfssl_fips_ios.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libwolfssl_fips_ios.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
6AC85135272CAFEC00F2B32A /* kdf.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = kdf.c; path = ../../wolfcrypt/src/kdf.c; sourceTree = "<group>"; };
|
||||
6AC8513A272CB01200F2B32A /* kdf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = kdf.h; path = ../../wolfssl/wolfcrypt/kdf.h; sourceTree = "<group>"; };
|
||||
A4A54DF41BC5C380002866CD /* user_settings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = user_settings.h; sourceTree = "<group>"; };
|
||||
A4A54EA11BC5C3E0002866CD /* libwolfssl_fips_osx.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libwolfssl_fips_osx.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
/* End PBXFileReference section */
|
||||
@ -909,6 +913,7 @@
|
||||
525BE5BB1B3885580054BBCD /* hash.h */,
|
||||
5216466F1A8993770062516A /* hc128.h */,
|
||||
521646701A8993770062516A /* hmac.h */,
|
||||
6AC8513A272CB01200F2B32A /* kdf.h */,
|
||||
521646721A8993770062516A /* integer.h */,
|
||||
521646731A8993770062516A /* logging.h */,
|
||||
521646741A8993770062516A /* md2.h */,
|
||||
@ -983,6 +988,7 @@
|
||||
525BE5B91B38853E0054BBCD /* hash.c */,
|
||||
5216461D1A8992CC0062516A /* hc128.c */,
|
||||
5216461E1A8992CC0062516A /* hmac.c */,
|
||||
6AC85135272CAFEC00F2B32A /* kdf.c */,
|
||||
5216461F1A8992CC0062516A /* integer.c */,
|
||||
521646201A8992CC0062516A /* logging.c */,
|
||||
521646211A8992CC0062516A /* md2.c */,
|
||||
@ -1116,6 +1122,7 @@
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
English,
|
||||
en,
|
||||
);
|
||||
mainGroup = 52B1344416F3C9E800C07B32;
|
||||
@ -1177,6 +1184,7 @@
|
||||
5216464F1A8992CC0062516A /* sha256.c in Sources */,
|
||||
521646371A8992CC0062516A /* chacha.c in Sources */,
|
||||
521646471A8992CC0062516A /* pkcs7.c in Sources */,
|
||||
6AC85136272CAFEC00F2B32A /* kdf.c in Sources */,
|
||||
5216460E1A89928E0062516A /* sniffer.c in Sources */,
|
||||
521646421A8992CC0062516A /* md2.c in Sources */,
|
||||
521646381A8992CC0062516A /* coding.c in Sources */,
|
||||
@ -1239,6 +1247,7 @@
|
||||
A4A54E1F1BC5C3E0002866CD /* sha256.c in Sources */,
|
||||
A4A54E201BC5C3E0002866CD /* chacha.c in Sources */,
|
||||
A4A54E211BC5C3E0002866CD /* pkcs7.c in Sources */,
|
||||
6AC85137272CAFEC00F2B32A /* kdf.c in Sources */,
|
||||
A4A54E221BC5C3E0002866CD /* sniffer.c in Sources */,
|
||||
A4A54E231BC5C3E0002866CD /* md2.c in Sources */,
|
||||
A4A54E241BC5C3E0002866CD /* coding.c in Sources */,
|
||||
|
@ -356,6 +356,9 @@
|
||||
522DBE0F1B7927A50031F454 /* wc_encrypt.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 522DBE0E1B7927290031F454 /* wc_encrypt.h */; };
|
||||
525BE5341B3869110054BBCD /* hash.c in Sources */ = {isa = PBXBuildFile; fileRef = 525BE5331B3869110054BBCD /* hash.c */; };
|
||||
525BE5361B3869780054BBCD /* hash.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 525BE5351B3869430054BBCD /* hash.h */; };
|
||||
6AC85129272CAF2E00F2B32A /* kdf.c in Sources */ = {isa = PBXBuildFile; fileRef = 6AC85128272CAF2E00F2B32A /* kdf.c */; };
|
||||
6AC8512A272CAF2E00F2B32A /* kdf.c in Sources */ = {isa = PBXBuildFile; fileRef = 6AC85128272CAF2E00F2B32A /* kdf.c */; };
|
||||
6AC8512B272CAF2E00F2B32A /* kdf.c in Sources */ = {isa = PBXBuildFile; fileRef = 6AC85128272CAF2E00F2B32A /* kdf.c */; };
|
||||
A4DAE3062493F1C700CEF51F /* tls13.c in Sources */ = {isa = PBXBuildFile; fileRef = A4DAE3052493F1C700CEF51F /* tls13.c */; };
|
||||
A4DAE3072493F1C700CEF51F /* tls13.c in Sources */ = {isa = PBXBuildFile; fileRef = A4DAE3052493F1C700CEF51F /* tls13.c */; };
|
||||
A4DAE3082493F1C700CEF51F /* tls13.c in Sources */ = {isa = PBXBuildFile; fileRef = A4DAE3052493F1C700CEF51F /* tls13.c */; };
|
||||
@ -1187,6 +1190,8 @@
|
||||
525BE5331B3869110054BBCD /* hash.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = hash.c; path = ../../wolfcrypt/src/hash.c; sourceTree = "<group>"; };
|
||||
525BE5351B3869430054BBCD /* hash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = hash.h; path = ../../wolfssl/wolfcrypt/hash.h; sourceTree = "<group>"; };
|
||||
52B1344D16F3C9E800C07B32 /* libwolfssl_ios.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libwolfssl_ios.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
6AC85128272CAF2E00F2B32A /* kdf.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = kdf.c; path = ../../wolfcrypt/src/kdf.c; sourceTree = "<group>"; };
|
||||
6AC8513B272CB04F00F2B32A /* kdf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = kdf.h; path = ../../wolfssl/wolfcrypt/kdf.h; sourceTree = "<group>"; };
|
||||
A45EA7091BC5995E00A8614A /* user_settings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = user_settings.h; sourceTree = "<group>"; };
|
||||
A4DAE3052493F1C700CEF51F /* tls13.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = tls13.c; path = ../../src/tls13.c; sourceTree = "<group>"; };
|
||||
A4DAE3092493F21700CEF51F /* srp.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = srp.c; path = ../../wolfcrypt/src/srp.c; sourceTree = "<group>"; };
|
||||
@ -1340,6 +1345,7 @@
|
||||
525BE5351B3869430054BBCD /* hash.h */,
|
||||
5216466F1A8993770062516A /* hc128.h */,
|
||||
521646701A8993770062516A /* hmac.h */,
|
||||
6AC8513B272CB04F00F2B32A /* kdf.h */,
|
||||
521646721A8993770062516A /* integer.h */,
|
||||
521646731A8993770062516A /* logging.h */,
|
||||
521646741A8993770062516A /* md2.h */,
|
||||
@ -1434,6 +1440,7 @@
|
||||
525BE5331B3869110054BBCD /* hash.c */,
|
||||
5216461D1A8992CC0062516A /* hc128.c */,
|
||||
5216461E1A8992CC0062516A /* hmac.c */,
|
||||
6AC85128272CAF2E00F2B32A /* kdf.c */,
|
||||
A4DAE3192493F21900CEF51F /* idea.c */,
|
||||
5216461F1A8992CC0062516A /* integer.c */,
|
||||
521646201A8992CC0062516A /* logging.c */,
|
||||
@ -1656,6 +1663,7 @@
|
||||
30B060681C6DDB2B00D46008 /* hash.c in Sources */,
|
||||
A4DAE34C2493F21900CEF51F /* idea.c in Sources */,
|
||||
30B060691C6DDB2B00D46008 /* hc128.c in Sources */,
|
||||
6AC8512B272CAF2E00F2B32A /* kdf.c in Sources */,
|
||||
30B0606A1C6DDB2B00D46008 /* hmac.c in Sources */,
|
||||
A4DAE3572493F29E00CEF51F /* sp_dsp32.c in Sources */,
|
||||
A4DAE3282493F21900CEF51F /* fe_448.c in Sources */,
|
||||
@ -1742,6 +1750,7 @@
|
||||
520775AB2239ABBE00087711 /* sp_int.c in Sources */,
|
||||
521646431A8992CC0062516A /* md4.c in Sources */,
|
||||
521646321A8992CC0062516A /* aes.c in Sources */,
|
||||
6AC85129272CAF2E00F2B32A /* kdf.c in Sources */,
|
||||
521646391A8992CC0062516A /* des3.c in Sources */,
|
||||
521646351A8992CC0062516A /* blake2b.c in Sources */,
|
||||
520775AD2239ABCD00087711 /* chacha20_poly1305.c in Sources */,
|
||||
@ -1828,6 +1837,7 @@
|
||||
A4F318701BC58B1700FDF2BB /* md2.c in Sources */,
|
||||
A4DAE34B2493F21900CEF51F /* idea.c in Sources */,
|
||||
A4F318651BC58B1700FDF2BB /* md4.c in Sources */,
|
||||
6AC8512A272CAF2E00F2B32A /* kdf.c in Sources */,
|
||||
A4F3185E1BC58B1700FDF2BB /* md5.c in Sources */,
|
||||
A4DAE3562493F29E00CEF51F /* sp_dsp32.c in Sources */,
|
||||
A4DAE3272493F21900CEF51F /* fe_448.c in Sources */,
|
||||
|
@ -505,6 +505,11 @@
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-4-PROJECT_LOC/wolfcrypt/src/hash.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>src/wolfcrypt/src/kdf.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-4-PROJECT_LOC/wolfcrypt/src/kdf.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>src/wolfcrypt/src/hc128.c</name>
|
||||
<type>1</type>
|
||||
|
@ -467,7 +467,7 @@ function(generate_lib_src_list LIB_SOURCES)
|
||||
endif()
|
||||
|
||||
list(APPEND LIB_SOURCES
|
||||
wolfcrypt/src/hash.c
|
||||
wolfcrypt/src/hash.c
|
||||
wolfcrypt/src/cpuid.c)
|
||||
|
||||
if(NOT BUILD_FIPS_RAND)
|
||||
|
0
examples/client/client.c
Executable file → Normal file
0
examples/client/client.c
Executable file → Normal file
0
examples/server/server.c
Executable file → Normal file
0
examples/server/server.c
Executable file → Normal file
@ -7747,7 +7747,7 @@ int wolfSSL_CTX_check_private_key(const WOLFSSL_CTX* ctx)
|
||||
|
||||
WOLFSSL_ENTER("wolfSSL_CTX_check_private_key");
|
||||
|
||||
if (ctx == NULL || ctx->certificate == NULL) {
|
||||
if (ctx == NULL || ctx->certificate == NULL || ctx->privateKey == NULL) {
|
||||
return WOLFSSL_FAILURE;
|
||||
}
|
||||
|
||||
|
36
tests/api.c
36
tests/api.c
@ -4586,7 +4586,9 @@ static THREAD_RETURN WOLFSSL_THREAD test_server_nofail(void* args)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
@ -4788,7 +4790,9 @@ static THREAD_RETURN WOLFSSL_THREAD test_server_loop(void* args)
|
||||
goto done;
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
@ -4982,7 +4986,9 @@ static void test_client_nofail(void* args, cbType cb)
|
||||
cbf->ssl_ready(ssl);
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
@ -5163,7 +5169,9 @@ static void test_client_reuse_WOLFSSLobj(void* args, void *cb, void* server_args
|
||||
cbf->ssl_ready(ssl);
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
@ -5221,7 +5229,9 @@ static void test_client_reuse_WOLFSSLobj(void* args, void *cb, void* server_args
|
||||
goto done;
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
@ -5348,7 +5358,9 @@ static void test_client_verifyDepth(void* args)
|
||||
goto done;
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
@ -5539,7 +5551,9 @@ static THREAD_RETURN WOLFSSL_THREAD run_wolfssl_server(void* args)
|
||||
callbacks->ssl_ready(ssl);
|
||||
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
@ -5703,7 +5717,9 @@ static void run_wolfssl_client(void* args)
|
||||
if (callbacks->ssl_ready)
|
||||
callbacks->ssl_ready(ssl);
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
@ -5720,7 +5736,9 @@ static void run_wolfssl_client(void* args)
|
||||
/*err_sys("SSL_connect failed");*/
|
||||
}
|
||||
else {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
@ -5733,7 +5751,9 @@ static void run_wolfssl_client(void* args)
|
||||
} while (err == WC_PENDING_E);
|
||||
AssertIntEQ(len, ret);
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
@ -6029,7 +6049,9 @@ static void test_client_get_finished(void* args, cbType cb)
|
||||
cbf->ssl_ready(ssl);
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
@ -6055,11 +6077,13 @@ static void test_client_get_finished(void* args, cbType cb)
|
||||
XMEMSET(client_side_msg2, 0, MD_MAX_SIZE);
|
||||
msg_len = wolfSSL_get_peer_finished(ssl, client_side_msg2, MD_MAX_SIZE);
|
||||
AssertIntGE(msg_len, 0);
|
||||
|
||||
|
||||
if (cb != NULL)
|
||||
(cb)(ctx, ssl);
|
||||
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
@ -6075,7 +6099,9 @@ static void test_client_get_finished(void* args, cbType cb)
|
||||
goto done;
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
@ -38771,7 +38797,9 @@ static void test_wolfSSL_SESSION(void)
|
||||
tcp_connect(&sockfd, wolfSSLIP, ready.port, 0, 0, ssl);
|
||||
AssertIntEQ(wolfSSL_set_fd(ssl, sockfd), SSL_SUCCESS);
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
@ -38784,7 +38812,9 @@ static void test_wolfSSL_SESSION(void)
|
||||
} while (err == WC_PENDING_E);
|
||||
AssertIntEQ(ret, WOLFSSL_SUCCESS);
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
@ -38797,7 +38827,9 @@ static void test_wolfSSL_SESSION(void)
|
||||
} while (err == WC_PENDING_E);
|
||||
AssertIntEQ(ret, (int)XSTRLEN(sendGET));
|
||||
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
err = 0; /* Reset error */
|
||||
#endif
|
||||
do {
|
||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||
if (err == WC_PENDING_E) {
|
||||
|
@ -1090,19 +1090,21 @@ typedef enum bench_stat_type {
|
||||
const char* algo, int strength, const char* desc, int doAsync,
|
||||
double perfsec, const char* perftype, int ret)
|
||||
{
|
||||
bench_stats_t* bstat;
|
||||
bench_stats_t* bstat = NULL;
|
||||
|
||||
/* protect bench_stats_head and bench_stats_tail access */
|
||||
pthread_mutex_lock(&bench_lock);
|
||||
|
||||
/* locate existing in list */
|
||||
for (bstat = bench_stats_head; bstat != NULL; bstat = bstat->next) {
|
||||
/* match based on algo, strength and desc */
|
||||
if (XSTRNCMP(bstat->algo, algo, BENCH_MAX_NAME_SZ) == 0 &&
|
||||
bstat->strength == strength &&
|
||||
bstat->desc == desc &&
|
||||
bstat->doAsync == doAsync) {
|
||||
break;
|
||||
if (algo != NULL) {
|
||||
/* locate existing in list */
|
||||
for (bstat = bench_stats_head; bstat != NULL; bstat = bstat->next) {
|
||||
/* match based on algo, strength and desc */
|
||||
if (XSTRNCMP(bstat->algo, algo, BENCH_MAX_NAME_SZ) == 0 &&
|
||||
bstat->strength == strength &&
|
||||
bstat->desc == desc &&
|
||||
bstat->doAsync == doAsync) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1126,7 +1128,8 @@ typedef enum bench_stat_type {
|
||||
}
|
||||
if (bstat) {
|
||||
bstat->type = type;
|
||||
XSTRNCPY(bstat->algo, algo, BENCH_MAX_NAME_SZ);
|
||||
if (algo != NULL)
|
||||
XSTRNCPY(bstat->algo, algo, BENCH_MAX_NAME_SZ);
|
||||
bstat->strength = strength;
|
||||
bstat->desc = desc;
|
||||
bstat->doAsync = doAsync;
|
||||
|
@ -8799,11 +8799,12 @@ int wc_ecc_import_x963_ex(const byte* in, word32 inLen, ecc_key* key,
|
||||
DECLARE_CURVE_SPECS(curve, 3);
|
||||
ALLOC_CURVE_SPECS(3, err);
|
||||
|
||||
if (err == MP_OKAY &&
|
||||
mp_init_multi(&t1, &t2, NULL, NULL, NULL, NULL) != MP_OKAY)
|
||||
err = MEMORY_E;
|
||||
else
|
||||
did_init = 1;
|
||||
if (err == MP_OKAY) {
|
||||
if (mp_init_multi(&t1, &t2, NULL, NULL, NULL, NULL) != MP_OKAY)
|
||||
err = MEMORY_E;
|
||||
else
|
||||
did_init = 1;
|
||||
}
|
||||
|
||||
/* load curve info */
|
||||
if (err == MP_OKAY)
|
||||
@ -12117,6 +12118,11 @@ int wc_ecc_decrypt(ecc_key* privKey, ecc_key* pubKey, const byte* msg,
|
||||
#endif
|
||||
pubKey = peerKey;
|
||||
}
|
||||
else {
|
||||
/* if a public key was passed in we should free it here before init
|
||||
* and import */
|
||||
wc_ecc_free(pubKey);
|
||||
}
|
||||
if (ret == 0) {
|
||||
ret = wc_ecc_init_ex(pubKey, privKey->heap, INVALID_DEVID);
|
||||
}
|
||||
|
Reference in New Issue
Block a user