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 |
|
Zhi Guan
|
fac04b76f8
|
Update HKDF API
|
2024-07-26 22:42:37 +08:00 |
|
Zhi Guan
|
058fd4766c
|
Update sm4.h
|
2024-06-22 11:49:50 +08:00 |
|
Zhi Guan
|
6248cc171c
|
Check sm4-gcm max plaintext size
|
2024-06-11 23:22:39 +08:00 |
|
Zhi Guan
|
47acbe0616
|
Update sdf.h
|
2024-06-11 09:17:35 +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
|
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 |
|
Zhi Guan
|
cffee1dd9f
|
Fix tls12, tls13 bug
目前TLS 1.2, 1.3的握手过程中使用了SM2_Z256_POINT,应该改为使用SM2_POINT,可以兼容其他曲线类型,只在做ECDH的时候才判断点的正确性。
|
2024-06-02 10:19:24 +08:00 |
|
Zhi Guan
|
76312df4d6
|
Clean code
|
2024-05-31 21:02:04 +08:00 |
|
Zhi Guan
|
31c26de865
|
Remove _gmssl_export
|
2024-05-29 09:40:03 +08:00 |
|
Zhi Guan
|
d892853faa
|
Convert utf-8 files to ascii
|
2024-05-25 21:24:15 +08:00 |
|
Zhi Guan
|
d719ee4862
|
Conv from UTF-8 to ASCII
`file *.c` to see file types (ASCII or UTF-8), convert UTF-8 (with BOM) to ASCII
```sh
sed '1s/^\xEF\xBB\xBF//' sm4.c | iconv -f UTF-8 -t ASCII//TRANSLIT > temp.c
mv temp.c sm4.c
```
|
2024-05-25 18:06:16 +08:00 |
|
Zhi Guan
|
adc181fa91
|
Remove warnings
|
2024-05-23 16:28:54 +08:00 |
|
Zhi Guan
|
d56eeaac5a
|
Remove warnings
|
2024-05-17 13:12:51 +08:00 |
|
Zhi Guan
|
7cc5b77cf8
|
Add sm4_xts and ghash command
|
2024-05-15 10:00:22 +08:00 |
|
Zhi Guan
|
7f3072e917
|
Let sm4_cbc_encrypt_blocks update iv
If in == out, then after encryptions the input (i.e. iv) is changed
|
2024-05-13 21:44:06 +08:00 |
|
Zhi Guan
|
58340393b1
|
Add SM4 commands in gmssl CLI
|
2024-05-11 18:10:24 +08:00 |
|
Zhi Guan
|
46bdce350c
|
Update sm4.h
|
2024-05-09 16:40:15 +08:00 |
|
Zhi Guan
|
3d491c9e14
|
Use SDF as the crypto provider in SM2/3/4 CTX API
cmake .. -DENABLE_CRYPTO_SDF=ON
|
2024-05-08 17:04:45 +08:00 |
|
Zhi Guan
|
81c97dbec0
|
Update SM4 CL function names
|
2024-04-29 23:40:44 +08:00 |
|
Zhi Guan
|
eeb44dc633
|
Update error.h
|
2024-04-29 23:39:24 +08:00 |
|
Zhi Guan
|
0bb2011dac
|
Update sm2_z256.h
|
2024-04-29 22:47:40 +08:00 |
|
Zhi Guan
|
b351803fbc
|
Update ZUC
|
2024-04-29 22:39:26 +08:00 |
|
Zhi Guan
|
5cf6f2609e
|
Add sm4_MODE_encrypt_blocks
|
2024-04-29 22:35:25 +08:00 |
|
Zhi Guan
|
6e8a36c738
|
Update SM4 CBC API
|
2024-04-28 17:27:41 +08:00 |
|
Zhi Guan
|
060930093f
|
Update SM4 TBOX version
|
2024-04-28 17:11:57 +08:00 |
|
Zhi Guan
|
bc15f7a0c7
|
Update SM4 API
|
2024-04-27 12:08:35 +08:00 |
|
Zhi Guan
|
3f1fdc147a
|
Add sm2_encrypt_pre_compute
|
2024-04-25 16:34:03 +08:00 |
|
Zhi Guan
|
f8fbeddd4f
|
Add SM2_VERIFY_CTX
|
2024-04-25 08:40:39 +08:00 |
|
Zhi Guan
|
2e6cef2999
|
Change sm4_cl_encrypt to sm4_cl_ctr32_encrypt
|
2024-04-23 22:39:43 +08:00 |
|
Zhi Guan
|
e05fd9c1b9
|
Use Montgomery's Trick on sm2_fast_sign_pre_compute
|
2024-04-22 17:43:05 +08:00 |
|
Gorachya
|
797c7739f3
|
Update sm9_z256.h
|
2024-04-22 11:58:16 +08:00 |
|
Zhi Guan
|
506ab2711c
|
Delete sha3.h
|
2024-04-21 23:58:05 +08:00 |
|
Zhi Guan
|
252c9e1765
|
Add more SM4 test vectors
SM4 pass openssl and other known test vectors. SM4-GCM and SM4-XTS only support the GB/T GF(2^128) encoding standard.
|
2024-04-21 10:10:46 +08:00 |
|
Zhi Guan
|
6f870889cf
|
Adjust digest APIs
|
2024-04-19 21:14:10 +08:00 |
|
Zhi Guan
|
8cb306ad0b
|
Adjust SM3 SM4 API
Remove sm3_digest. Use more _gmssl_export
|
2024-04-19 18:32:06 +08:00 |
|
Zhi Guan
|
ab7c9a7651
|
Adjust SM2 API and tests
|
2024-04-19 17:32:54 +08:00 |
|
Zhi Guan
|
725817add9
|
Use sm3_pbkdf2 without digest API
|
2024-04-19 13:21:52 +08:00 |
|
Zhi Guan
|
356e618d99
|
Add sm2_key test
|
2024-04-18 22:01:50 +08:00 |
|
Zhi Guan
|
b2707a1f0e
|
Adjust SM9 files
|
2024-04-18 21:41:17 +08:00 |
|
Zhi Guan
|
e9bbcf5490
|
Use z256 and jacobian coordinates as inner presentation of SM2 point
|
2024-04-18 21:27:00 +08:00 |
|
Zhi Guan
|
549c68d2df
|
Re-organize SM2 files
|
2024-04-17 22:43:04 +08:00 |
|