Commit Graph

16 Commits

Author SHA1 Message Date
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
ec16879fd8 Remove warnings 2024-05-23 17:29:45 +08:00
Zhi Guan
4f21be027e Remove warnings 2024-05-23 17:12:53 +08:00
Zhi Guan
9d8da9c380 Update sm9_z256.c 2024-05-23 16:50:33 +08:00
Zhi Guan
b3707dbabf Update sm9_z256.c 2024-05-23 16:43:08 +08:00
Zhi Guan
adc181fa91 Remove warnings 2024-05-23 16:28:54 +08:00
Zhi Guan
dc80b0c137 Change cpu suffix and other file names 2024-05-12 23:17:35 +08:00
Gorachya
0be17d59ec Update sm9_z256.c 2024-04-26 12:39:32 +08:00
Gorachya
5775cb5f42 Add files via upload 2024-04-22 11:55:14 +08:00
Gorachya
3fb7eebba8 Add files via upload 2024-04-22 11:34:30 +08:00
Zhi Guan
b2707a1f0e Adjust SM9 files 2024-04-18 21:41:17 +08:00
Zhi Guan
5d40024f14 Update SM9 to/from_hex API 2024-04-17 15:42:47 +08:00
Zhi Guan
c79084ad03 Remove sm9 modp to/from bytes/hex 2024-04-17 09:09:37 +08:00
Zhi Guan
4e66f911d0 Update rand_range functions
`rand_range` will stop and return 0 if the `range` is too small. Caller can call it again or stop. `rand_range` return -1 only if RNG failure.
2024-04-16 22:49:59 +08:00
Zhi Guan
e061dda71f Remove modp_to_bytes 2024-04-16 22:27:59 +08:00
Zhi Guan
fea2b018dc Rename SM9 file names 2024-04-16 19:18:07 +08:00