Commit Graph

185 Commits

Author SHA1 Message Date
Zhi Guan
c0984b6436 Remove CPK module 2019-06-13 18:22:44 +08:00
Zhi Guan
bdd3d75e89 Remove SAF and SOF module 2019-06-13 18:17:26 +08:00
Zhi Guan
24f8a17c63 Update
remove ECRS, EC-Schnorr modules
2019-06-13 17:02:51 +08:00
Zhi Guan
6c122e31a6 Add ECSCHNORR 2019-04-04 10:41:38 +08:00
lmxeq5
d41f47ae09 Update byteorder.h
config脚本可以自动识别大小端机器,如果是大端会在编译选项里添加-DB_ENDIAN选项,所以我们这里的宏CPU_BIGENDIAN替换成B_ENDIAN就支持自动识别了, 这样就避免了不知道CPU_BIGENDIAN宏的人在大端机上编译出错误的版本了。
2019-03-07 09:26:10 +08:00
Zhi Guan
5b90476864 Add new EC/SM2 API 2019-02-28 17:49:37 +08:00
Zhi Guan
bf4c6920d9 Update BN and EC module 2019-02-24 06:15:22 +01:00
Zhi Guan
fb47201b7e Add ECRS module 2019-02-17 18:48:33 +08:00
Zhi Guan
258e44ea89 Add S/MIME support with SM algorithms 2019-02-13 22:03:23 +08:00
Zhi Guan
d114bed3f8 Fix sm2utl bugs 2019-02-02 20:44:51 +08:00
Zhi Guan
22027d6656 Add paillier homomorphic encryption command
See http://gmssl.org/docs/paillier.md
2019-02-01 23:49:16 +08:00
Zhi Guan
7d5c18379f Update SM2 methods
The default `./config` will enable the X86_64 ASM implementation of SM2. Use `./config -DGMSSL_NO_TURBO enable-ec_nistp_64_gcc_128` will enable the fast C implementation of SM2. The  `./config -DGMSSL_NO_TURBO` will use the original implementation.
2019-01-26 17:26:03 +08:00
Zhi Guan
a58a817e9c Bug fix 2019-01-23 09:50:13 +08:00
Zhi Guan
5359dd5534 Update SKF 2019-01-23 09:13:30 +08:00
Zhi Guan
4bab277911 Update sm2 and zuc 2019-01-12 11:56:06 +08:00
Zhi Guan
6f9620d24b Update sdf and skf commands 2019-01-10 21:06:07 +08:00
Zhi Guan
2e0ff1f98e Bug fix 2019-01-02 22:05:15 +08:00
Zhi Guan
8f54e70ada Add sdf and skf options 2019-01-02 21:09:41 +08:00
Zhi Guan
786d6f0205 Add sm2utl and sm9utl commands 2018-12-25 14:49:12 +08:00
Zhi Guan
62d385ab71 Bug fix 2018-12-19 12:21:42 +08:00
Zhi Guan
74a729aa77 Add sm2 and otp command
try `gmssl sm2 -help` and `gmssl otp -help`
2018-12-19 10:01:38 +08:00
Zhi Guan
1c00e47681 Update sm9 functions 2018-12-07 16:32:12 +08:00
Zhi Guan
9b5eaab86a some bug fix 2018-12-06 22:12:05 +08:00
Zhi Guan
bc2bb8a335 Add accurate asn.1 siganture/ciphertext size 2018-12-04 15:56:21 +08:00
Zhi Guan
c0ee87b077 Update SM9 EVP 2018-12-03 17:15:57 +08:00
Zhi Guan
5f3bb5c346 update pmeth/ameth 2018-11-28 16:15:06 +08:00
Zhi Guan
952321677f Merge branch 'master' of https://github.com/guanzhi/GmSSL 2018-11-16 15:26:33 +08:00
Zhi Guan
9a999ae907 Add sm9 and paillier pem support 2018-11-16 15:26:30 +08:00
Zhi Guan
c9ec102cbd Merge pull request #574 from zzclzxc/master
fix sm3 padding bug
2018-11-13 13:54:09 +08:00
Zhi Guan
676076278d Update some demos 2018-10-31 11:03:21 +08:00
Zhi Guan
9eadfd4cb6 Update CPK sub-lib
Use simple NID as arguments, and fix some bugs
2018-10-21 19:43:40 +08:00
Zhi Guan
6fe883cd3a Add is_gmssl.h
Add code `#include <openssl/is_gmssl.h>` to check if GmSSL library is linked instead of the system pre-installed OpenSSL library.
2018-10-20 11:05:29 +08:00
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
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
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
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
9176532a2e Update version date with new pkcs8 features 2018-09-08 10:41:17 +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
SophieK
e2698c9572 Update skf_int.h 2018-07-05 08:49:47 +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
CXdickens
7c0ddf2e44 add SMS4 bit slice
16X SMS4 a time
2018-05-21 15:17:54 +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