Commit Graph

848 Commits

Author SHA1 Message Date
Daniel Roethlisberger
061045f206 Fix SSL 2 version constant to 0x0002
SSL 2 uses a version field of 0x0002, not 0x0200.  This is confirmed not
only in the original Netscape spec [1] and RFC draft of the time [2],
but also in major implementations such as OpenSSL [3] and Wireshark [4].

[1] https://www-archive.mozilla.org/projects/security/pki/nss/ssl/draft02.html
[2] https://datatracker.ietf.org/doc/html/draft-hickman-netscape-ssl-00
[3] https://github.com/openssl/openssl/blob/OpenSSL_0_9_6m/ssl/ssl2.h#L66-L71
[4] https://github.com/wireshark/wireshark/blob/release-4.4/epan/dissectors/packet-tls-utils.h#L266-L277
2025-01-19 22:31:12 +01:00
senserhit
a5f440e159 Fix reqsign Subject Key Identifier bug 2025-01-14 14:30:50 +08:00
人间流浪少年
0e030e901e Update sm2_key.c and delete useles var
to fix error
error: ../../common/gmssl/src/sm2_key.c: In function 'sm2_public_key_to_der':
../../common/gmssl/src/sm2_key.c:110:9: error: unused variable 'len' [-Werror=unused-variable]
  size_t len = 0;
         ^~~
cc1: all warnings being treated as errors
2024-12-05 14:25:53 +08:00
wangzeyu
a05bee622e fix SKF_METHOD_free close handle issue
Signed-off-by: wangzeyu <zeyusteel@163.com>
2024-11-08 17:10:03 +08:00
richerfu
6afc9b9f5f feat: add ohos ci 2024-11-08 10:51:39 +08:00
Dihambo
c0b0dfc855 fix: 覆盖所有tag值 2024-09-27 12:53:45 +00:00
Dihambo
c96c10ea2a fix: tag mask错误 2024-09-27 12:48:55 +00:00
Melacau
403891478d Fixed sm4_ccm decrypt. 2024-09-06 13:08:21 +08:00
Zhi Guan
34fa519dc0 Fix XTS bug
when input/output share the same buffer, the XTS  output will crush the last input part.
2024-07-31 19:27:38 +08:00
Zhi Guan
a266042160 Update hkdftest.c 2024-07-31 19:26:08 +08:00
Zhi Guan
9f4dac228e Update kyber.c
KEM passed
2024-07-28 22:09:14 +08:00
Zhi Guan
ec23ce0677 Update kyber.c
Kyber.CPA passed
2024-07-28 16:42:34 +08:00
Zhi Guan
3f0cf263f2 Create kyber.c 2024-07-26 22:42:40 +08:00
Zhi Guan
fac04b76f8 Update HKDF API 2024-07-26 22:42:37 +08:00
Zhi Guan
228f78963c Update sdfsign.c 2024-07-18 21:37:34 +08:00
Zhi Guan
ae27f45d16 Update sdfdecrypt.c 2024-07-18 21:13:02 +08:00
Zhi Guan
8c5f239387 Create sm3_lms.c 2024-07-08 22:16:41 +08:00
Zhi Guan
e7354c1faa Add SM4-ECB/CFB/OFB tests to sdftest 2024-06-22 16:06:21 +08:00
Zhi Guan
058fd4766c Update sm4.h 2024-06-22 11:49:50 +08:00
Zhi Guan
5b3c897d0e Fix sm9_z256_point_from_uncompressed_octets bug
Fix the issue of https://github.com/guanzhi/GmSSL/issues/1698

This might lead to Invalid curve attack.
2024-06-18 10:03:07 +08:00
Zhi Guan
572ab07824 Remove warnings from clang --analyze 2024-06-18 09:53:15 +08:00
Zhi Guan
567604210a Update tls13.c, remove warning from clang --analyze 2024-06-18 09:32:30 +08:00
Zhi Guan
b1b6c1797e Merge branch 'master' of https://github.com/guanzhi/GmSSL 2024-06-18 09:26:04 +08:00
Zhi Guan
d65e963b2a Update .gitignore 2024-06-18 09:25:59 +08:00
Zhi Guan
5821f2041d Remove warnings from clang --analyze 2024-06-18 09:25:52 +08:00
Zhi Guan
f11be42de7 Create sm9_z256_arm64.S 2024-06-18 09:25:01 +08:00
Zhi Guan
f6456f9e28 Update sm2_z256_arm64.S 2024-06-18 09:24:38 +08:00
Zhi Guan
18ac39ebe3 Clean code 2024-06-13 12:18:40 +08:00
Zhi Guan
ed6b7f926e Fix tls_set_socket on WIN32 2024-06-13 12:18:27 +08:00
Zhi Guan
02cfe3f3aa Fix return value bug 2024-06-13 12:18:16 +08:00
Zhi Guan
19a4b6894f Update tlcp_client.c 2024-06-13 12:16:12 +08:00
Zhi Guan
6248cc171c Check sm4-gcm max plaintext size 2024-06-11 23:22:39 +08:00
Zhi Guan
b1f25ab306 Fix DER length decoding bug
`asn1_length_from_der` incorrectly accept the BER long length.
2024-06-11 23:18:55 +08:00
Zhi Guan
75430408c2 Update sm2_sign.c 2024-06-11 23:16:00 +08:00
Zhi Guan
47acbe0616 Update sdf.h 2024-06-11 09:17:35 +08:00
Zhi Guan
0a53bc6cb6 Update CMakeLists.txt 2024-06-09 16:55:06 +08:00
Zhi Guan
2a5a99ff29 Remove ENABLE_CRYPTO_SDF module 2024-06-09 16:53:33 +08:00
Zhi Guan
f575ea2c91 Update sdf.h 2024-06-09 16:51:26 +08:00
Zhi Guan
830c96c5c7 Add sdfdecrypt command 2024-06-09 15:45:40 +08:00
Zhi Guan
9784bbc380 Add sdfencrypt command 2024-06-09 11:17:54 +08:00
Zhi Guan
368f2e5bdc Add sdfdigest command 2024-06-08 12:03:25 +08:00
Zhi Guan
3614daf6a6 Fix sdftest command bugs 2024-06-08 10:35:38 +08:00
Zhi Guan
c4e5cf0deb Add sdfsign command 2024-06-07 19:45:10 +08:00
Zhi Guan
4363740477 Add sdfinfo and sdfexport command 2024-06-06 22:07:44 +08:00
Zhi Guan
6f5cfa6382 Use same speed test data size 2024-06-05 21:33:58 +08:00
Zhi Guan
2b096187b0 Rename speed functions 2024-06-05 21:33:44 +08:00
Zhi Guan
b0348bed8e Add speed tests to sdftest command 2024-06-05 12:30:57 +08:00
Zhi Guan
c821bdac01 Delete temp.c 2024-06-02 22:53:07 +08:00
Zhi Guan
79a4760e1e Remove GMT/0105 RNG 2024-06-02 22:42:51 +08:00
Zhi Guan
fa3341171c Remove HASH_DRBG 2024-06-02 22:40:04 +08:00