Commit Graph

690 Commits

Author SHA1 Message Date
Zhi Guan
f411936f9f Update version to 2.4.0
Since this version SM9 is offically supported.
2018-10-13 21:47:14 +08:00
Zhi Guan
5293d0f38d Update SM9 key agreement 2018-10-12 12:07:58 +08:00
Zhi Guan
989bc7638d First SM9 release
SM9 setup/keygen/sign/verify has been tested. See example codes `demos/sm9/`.
2018-10-10 20:42:07 +08:00
Zhi Guan
9ca519edfa Update SM9 decrypt
to be tested
2018-10-06 17:33:34 +08:00
Zhi Guan
f07ca5eeff Update SM9 encrypt 2018-10-06 17:04:25 +08:00
Zhi Guan
a7b96e8024 Add SM9 encapsulate key functions 2018-10-05 11:53:13 +08:00
Zhi Guan
eaf4002536 Update version number
2.3.3 is the first release to support SM9, setup/keygen/sign are supported, kem/encrypt/keyagree to be continue.
2018-09-29 11:56:35 +08:00
Zhi Guan
93064bf826 First SM9 release
SM9 digitial signature scheme is finished and tested.
2018-09-29 11:54:00 +08:00
Zhi Guan
b54a3d35e6 Update SM9 schemes
Update SM9 schemes based on the default sm9bn256v1 r-ate pairing. To be continued.
2018-09-28 22:21:44 +08:00
Zhi Guan
c7aa2cc1ff A workable SM9 R-ate pairing over BN curve
This textbook version R-ate pairing is very slow. About 0.5 seconds on my Macbook Pro 2018 with 2.7 GHz Core i7.
2018-09-21 22:42:11 +08:00
Zhi Guan
9f4e184ac5 Update SM9
to be continue ...
2018-09-19 11:56:07 +08:00
Zhi Guan
dd71250c2c Update SM9
Implement extension fields with BIGNUM.
2018-09-18 12:34:52 +08:00
Zhi Guan
e789127a9a Add SM9 BN curve sm9bn256v1 over GF(p)
The recommended BN curve over 256 -bit prime field. The OID of the curve might be modified in the future.
2018-09-13 15:58:53 +08:00
Zhi Guan
f303eba06b Update SM9
a textbook version of SM9 R-ate pairing with recommanded parameters, just to make sure result is correct. See SM9 specification part-1 and part-5.
2018-09-13 11:51:44 +08:00
Zhi Guan
1e4c9db090 Update SM9
to be continue ...
2018-09-13 10:53:06 +08:00
Zhi Guan
1130aca883 Update SM9
Tower extension of F_p^12
2018-09-13 00:29:00 +08:00
Zhi Guan
9176532a2e Update version date with new pkcs8 features 2018-09-08 10:41:17 +08:00
Zhi Guan
f960a8fa27 Add sm3/sm4 as pbe algorithms 2018-09-08 10:38:43 +08:00
Zhi Guan
ccde5f4b17 Update symbols 2018-09-07 09:07:42 +08:00
Zhi Guan
4b17502fdd Optimize sm2p256v1 curve for Intel processors
This update is part of the GmSSL Turbo project.
This work is supported by the National Key Research and Development
Program of China NO.2018YFB0803601 and Intel.
2018-09-07 08:55:36 +08:00
zhaoxincheng
41049aa0cd fix sm3 padding bug 2018-08-30 16:37:25 +08:00
cuihongpeng
eedbb6bb8e sm2: fix cv free error, in o2i_SM2CiphertextValue() function 2018-08-23 17:58:24 +08:00
Zhi Guan
940c98d5d7 Merge pull request #536 from suishixingkong/patch-1
Update skf_int.h
2018-08-09 22:20:06 +08:00
Zhi Guan
83538da804 Merge pull request #556 from J-Feng/fix-engine-build-error
Fix SKF and SDF engines build error
2018-08-09 22:11:38 +08:00
Zhi Guan
abb5a7f801 Update GmSSL-Go version 2018-08-07 20:26:20 +08:00
Zhi Guan
838f4effbe Add SM2 ZID support 2018-08-07 20:25:04 +08:00
Zhi Guan
028d209985 Update GmSSL-Go test 2018-08-07 20:00:43 +08:00
Zhi Guan
e938a71edf Add SSL support to GmSSL-Go 2018-08-07 14:37:49 +08:00
Zhi Guan
65827d4ccf Add license text 2018-08-07 10:55:11 +08:00
Zhi Guan
ebd186d01d Update GmSSL-Go 2018-08-06 20:51:29 +08:00
Zhi Guan
962f7fbe3e Merge pull request #548 from liclicli/master
fix: zero length NULL should be able to be used for sm3 digest update.
2018-08-05 13:33:58 +08:00
Zhi Guan
28d524dd71 Add Go hash.Hash interface for SM3 2018-08-04 21:33:00 +08:00
Zhi Guan
abedd1b0f4 update go-api
GetDigestNames() and GetCipherNames get supported algorithms with
callbacks.
2018-08-04 20:27:43 +08:00
Feng Jie
366f612047 Fix SKF and SDF engines build error
When build dynamic library on Windows, build errors occur on SKF and SDF
engines build. Because when the engines are compiled into a
self-contained dll, bind_engine and v_check are needed which has been
exported in def file.

Add missing methods here to resolve the build error.

Because the engines are dummy implemented, the methods added here are
also dummy.
2018-08-02 14:19:08 +08:00
LI Chen
88293ffd8c fix: zero length NULL can not be used for sm3 digest update. 2018-07-23 10:09:16 +08:00
Zhi Guan
9d6ad55623 Add Go API test 2018-07-15 15:36:58 +08:00
Zhi Guan
27940499bc Update Go API to version 1.2
Add Certificate Object, support parse, check and access (very limited)
attributes of an X.509 certificate in PEM format.
2018-07-15 10:54:52 +08:00
ZZMarquis
e0a9de9a1b [bugfix] EC_KEY_set_ECCrefPublicKey转换过程中未处理字节数组偏移
EC_KEY_set_ECCrefPublicKey转换过程中未处理字节数组偏移,转换出来的大数有误
2018-07-10 18:25:53 +08:00
Zhi Guan
a0e5d103ba optimize zuc 2018-07-07 00:23:44 +08:00
Zhi Guan
83c62961db Revert "optimize zuc"
This reverts commit 74d4a07ade.
2018-07-06 23:13:33 +08:00
Zhi Guan
74d4a07ade optimize zuc
about 15% faster on 64-bit cpu
2018-07-06 23:07:32 +08:00
Zhi Guan
afb82ebc20 add sm2 prime 256 test 2018-07-06 17:30:31 +08:00
SophieK
e2698c9572 Update skf_int.h 2018-07-05 08:49:47 +08:00
Simon
0adf4ce188 Delete SM4_bit_slice.md 2018-05-27 21:56:20 +08:00
CXdickens
689f65db59 SM4_bit slice comment 2018-05-27 21:37:17 +08:00
zhaoxiaomeng
8792c7081f [bugfix] fix error code duplication 2018-05-23 10:36:09 +08:00
zhaoxiaomeng
b5c3ca23b4 [bugfix] fix bitslice bug 2018-05-23 10:19:55 +08:00
zhaoxiaomeng
473eb5ffe4 [bugfix] fix bitslice bug 2018-05-23 09:48:01 +08:00
CXdickens
7c0ddf2e44 add SMS4 bit slice
16X SMS4 a time
2018-05-21 15:17:54 +08:00
Simon
58464004c9 Update sm3.c 2018-04-24 18:25:53 +08:00