Commit Graph

208 Commits

Author SHA1 Message Date
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
f960a8fa27 Add sm3/sm4 as pbe algorithms 2018-09-08 10:38:43 +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
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
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
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
Zhi Guan
96c0c86cd4 Fixed aes prototype 2018-04-06 17:07:12 +08:00
Zhi Guan
a94e307888 Add SDF pkey encrypt/decrypt support 2018-03-30 19:51:49 +08:00
Zhi Guan
7b32723196 Update with a new version number
This update brings the PHP binding of GmSSL through the PHP OpenSSL
extension.
2018-03-13 12:55:29 +08:00
Zhi Guan
e124d150fa Fix bugs of evp/sm2 2018-03-13 12:41:46 +08:00
Zhi Guan
4b825edf3c Add some debug info 2018-03-13 12:26:17 +08:00
Zhi Guan
25d4ff1afb Fix SDF vendor feature 2018-01-26 23:56:18 +08:00
Zhi Guan
342603d169 Add SM2 Z value computation support for more APIs 2018-01-25 23:57:39 +08:00
Zhi Guan
32c343fc06 Compatible with SDF Engine
The SDF Engine might not malloc `ctx->md_data`.
2018-01-25 23:56:14 +08:00
Zhi Guan
755814db52 Fix SM2 certificate verification
Set the default ec_scheme to secg_scheme, add sm3 ZID to X.509
verification.
2018-01-11 23:37:28 +08:00
Zhi Guan
496dfde33c Merge pull request #418 from zsdevX/patch-1
Update e_sms4.c
2018-01-09 00:04:45 +08:00
Zhi Guan
61f6b7ea98 Some warning fixes. 2018-01-07 12:02:24 +08:00
Zhi Guan
86e1fc9266 API compatible with OpenSSL before version 1.1.0
Add BN_init() and CRYPTO_num_locks(), compatible with OpenSSL 0.9.8.
And change the default OpenSSL API to 1.1.0.
2018-01-07 12:02:03 +08:00
Simon
38395c5c80 Revert "quantum init"
This reverts commit 53af3b51ae.
2018-01-04 14:03:38 +08:00
zhaoxiaomeng
53af3b51ae quantum init 2018-01-04 13:40:59 +08:00
zs
be421a6c74 Update e_sms4.c 2018-01-03 16:53:24 +08:00
Zhi Guan
c41e135604 Update ZUC algorithm with EVP module
128-EEA3, 128-EIA3, byte-order and tests need to be updated.
2018-01-03 15:26:09 +08:00
Zhi Guan
86aa61c0b6 minor changes 2017-12-26 22:59:32 +08:00
Zhi Guan
735c0a5800 ffx bug fix 2017-12-26 22:59:18 +08:00
Zhi Guan
f87ae5dba7 sms4 evp bug fixes 2017-12-26 22:59:02 +08:00
Zhi Guan
b920f5af10 update zuc
with zuc_spec test passed
2017-12-26 22:57:54 +08:00
Zhi Guan
a9b31e17a5 wrap optional headers with OPENSSL_NO_ macro 2017-12-26 22:51:47 +08:00
Zhi Guan
e586232c5b fix BOOL bug in sgd.h 2017-12-08 20:23:24 +08:00
Zhi Guan
f5a3f271a3 v2 pre-release 2017-12-07 23:58:48 +08:00
Zhi Guan
a4e6eea2fa tls12 with sm2 cert 2017-12-01 20:28:39 +08:00
Zhi Guan
5bdb3e20ff update sm9 api 2017-11-30 00:03:57 +08:00
Simon
d249929e81 [bugfix]fix double free bug 2017-11-28 17:12:43 +08:00
Zhi Guan
aa97769318 update curve wapip192v1 OID 2017-11-27 12:36:32 +08:00
Zhi Guan
ed7bf9302f remove java from config 2017-11-25 16:43:19 +08:00
Zhi Guan
2458fcb879 speed sm2/3/4
`gmssl speed sm2 sm3 sms4`
2017-11-25 13:22:04 +08:00
Zhi Guan
27bde477a5 first step of v2 final release 2017-11-05 21:00:36 +08:00
zhaoxiaomeng
757734d554 [gmssl] fix pod2man 2017-07-15 12:18:26 +08:00
zhaoxiaomeng
2ebf8ad9f0 [crypto] fix no-base58 2017-07-10 16:35:06 +08:00
[GGSuchao]
00c590e3a3 update sm_standard 2017-07-10 14:51:03 +08:00
[GGSuchao]
1a6fd7a619 update sm_standard 2017-07-10 14:51:03 +08:00