38 Commits

Author SHA1 Message Date
Sun Yimin
8041c5e310
sm2: remove CSPRNG usage 2023-06-27 08:57:31 +08:00
Sun Yimin
e3db7656a6
add example test for sm2 sm4 2023-02-01 11:17:23 +08:00
Sun Yimin
edfb4febdd
sm: improve docs and add examples 2023-01-31 13:50:14 +08:00
Sun Yimin
24d89df5c0
sm2: add a reference test method for non-standard keys construction 2023-01-16 11:01:55 +08:00
Sun Yimin
ca18fb55f4
sm2: test decrypt error 2022-12-06 10:11:02 +08:00
Sun Yimin
13f777bb2f
sm2: verify validity of signature parameters in Verify 2022-12-02 08:41:41 +08:00
Sun Yimin
9b3333f015
sm2: supplement test cases and upgrade dependencies 2022-11-30 09:00:17 +08:00
Sun Yimin
fc8fe5c631
sm2/enc: use bigmod and sm2ec instead of math/big and crypto/elliptic 2022-11-23 17:34:08 +08:00
Sun Yimin
a45e13d148
sm2: use bigmod and sm2ec instead of math/big and crypto/elliptic 2022-11-23 10:20:13 +08:00
Sun Yimin
f1993bc41a
sm2,smx509: add encoding paths for SM2 ecdh keys 2022-11-21 10:09:57 +08:00
Sun Yimin
d11a8bc940
supplement test coverage 2022-11-01 16:08:17 +08:00
emmansun
0f0eec19d0 provide a sample method to handle irregular ciphertext #90 2022-10-30 09:46:09 +08:00
Sun Yimin
57d01255e8
handle padding zero, #90 2022-10-28 09:31:41 +08:00
Sun Yimin
49f25af421
add parallel test 2022-09-16 11:48:28 +08:00
Sun Yimin
93dca77af8
sync code from sm2fiat and branch 1.16 2022-08-17 15:23:59 +08:00
Sun Yimin
7bf006ca42
go report card 2022-07-11 13:27:36 +08:00
Sun Yimin
e8d3b67446
sm9 sign wrappkey encryption 2022-06-10 11:24:25 +08:00
Sun Yimin
ef51a679a7
extract kdf to sm3 2022-06-10 10:29:12 +08:00
Sun Yimin
bb0f4f7996
refactoring, align error message pattern 2022-05-27 17:46:14 +08:00
emmansun
39f36ddb60 fix #30 2022-02-13 16:05:44 +08:00
Emman
93b04f706d [SM2] bug fix private key equal issue 2022-01-28 10:27:29 +08:00
Emman
3af061f194 [SM2] add benchmark test for sign/verify/genkey 2022-01-28 09:45:26 +08:00
Emman
7dec383b16 align format 2022-01-21 11:24:10 +08:00
Emman
4156eb1c07 align / change format 2022-01-21 08:33:01 +08:00
Emman
b2ec672125 add comments 2021-12-15 14:00:48 +08:00
Emman
bb70b71906 supplement test 2021-12-15 13:57:03 +08:00
Emman
64a9f8792e refactoring 2021-12-03 09:04:02 +08:00
Emman
c7f3aa3b6e support ASN.1 format 2021-12-02 17:33:39 +08:00
Emman
db223b3c7f typo 2021-12-02 13:13:43 +08:00
Emman
a7921d9513 typo 2021-12-02 12:57:01 +08:00
Emman
78e22c4df2 Reduce function parameter 2021-12-02 10:48:23 +08:00
Emman
6e3f8e5d1c SM2: add both C1C2C3 & C1C3C2 cipher text splicing order 2021-12-02 10:19:49 +08:00
Emman
39492b01bf MAGIC - remove useless code 2021-06-08 12:58:01 +08:00
emmansun
a1cb0a2616 MAGIC - refactor 2021-02-15 10:36:28 +08:00
Emman
086d9d206e MAGIC - sm2+sm3 ECDSA sign and verify 2021-01-25 16:18:37 +08:00
Emman
afb0962761 MAGIC - first version of SM2 P256 curve 2021-01-19 14:23:56 +08:00
Emman
9072014572 MAGIC - sm2 elliptic basic implementation, no P256 tuning 2020-12-17 11:03:40 +08:00
Emman
be62e3a042 MAGIC - sm2, basic implementation 2020-12-16 16:27:36 +08:00