58 Commits

Author SHA1 Message Date
Sun Yimin
98646cfac0
sm9: deprecated sign/verify non-asn1 methods 2022-11-28 10:32:17 +08:00
Sun Yimin
aede405cdd
sm2: add deprecated comment 2022-11-24 10:18:03 +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
9c6638f30e
fix error path 2022-11-23 10:28:36 +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
984913e228
sm2,smx509: add encoding paths for SM2 ecdh keys 2022-11-21 09:31:30 +08:00
Sun Yimin
cf6a25bf31
fix bug 2022-11-01 15:38:28 +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
7ebdf00640
fix defect 2022-08-25 12:54:59 +08:00
Sun Yimin
eedd5ebc2b
kdf: move Kdf() from sm3 to kdf 2022-08-25 11:48:41 +08:00
Sun Yimin
1710bdff4a
refactoring, rename internal packages 2022-08-18 14:49:35 +08:00
Sun Yimin
ae12f04c14
sm2: use golang 1.19 style marshal/unmarshal 2022-08-18 09:12:00 +08:00
Sun Yimin
93dca77af8
sync code from sm2fiat and branch 1.16 2022-08-17 15:23:59 +08:00
Sun Yimin
05aeed5c34
sm9: marshal compressed 2022-08-09 10:01:34 +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
Sun Yimin
14e38f9aa5
code copy issue 2022-05-18 17:42:26 +08:00
Sun Yimin
e7bfecaf49
remove util.go 2022-05-18 15:58:09 +08:00
Sun Yimin
01063b1ff7
use golang sdk as much as possible 2022-05-18 15:33:33 +08:00
Emman
0a827de266 update package level comments 2022-04-20 08:36:44 +08:00
Emman
2fa225552f sync upstream #25 2022-02-09 13:03:32 +08:00
Emman
9f1134cd87 Change comments 2022-02-09 10:24:38 +08:00
Emman
535b9ab928 Add SM GM/T references 2022-02-09 10:11:45 +08:00
Emman
ce8cffa33a Comments change and remove sign/verify non-sm2 branch 2022-02-09 09:57:03 +08:00
Emman
93b04f706d [SM2] bug fix private key equal issue 2022-01-28 10:27:29 +08:00
Emman
7dec383b16 align format 2022-01-21 11:24:10 +08:00
徐胖
457acdee32 export sm2.CalculateZA() 2022-01-11 22:55:37 +08:00
Emman
bb70b71906 supplement test 2021-12-15 13:57:03 +08:00
Emman
b45441f0ed reduce parameter 2021-12-15 10:33:57 +08:00
Emman
0cd7f73183 add comments 2021-12-15 10:32:14 +08:00
Emman
b2713b5e0d crypto/ecdsa: draw a fixed amount of entropy while signing 2021-12-15 08:47:04 +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
Sun Yimin
9a011f124a
Update sm2.go
trigger build
2021-06-28 12:20:37 +08:00
Emman
bdc049b882 MAGIC - refactoring 2021-06-28 11:20:47 +08:00
Emman
39492b01bf MAGIC - remove useless code 2021-06-08 12:58:01 +08:00
Emman
6ef7234916 MAGIC - upgrade 2021-06-08 11:45:40 +08:00
Emman
c3f59f3e7b MAGIC - avoid nil message passed in 2021-03-24 16:20:01 +08:00
Emman
798dbe465e MAGIC - consider performance, just base zero check 2021-02-25 13:55:40 +08:00
Emman
586ab84f33 MAGIC - move public key check out of loop 2021-02-25 13:37:14 +08:00
Emman
2dd11a9e9a MAGIC - avoid endless loop, validate public key 2021-02-25 10:53:53 +08:00
emmansun
d8dc283187 MAGIC - use interface to avoid implementation dependency 2021-02-16 10:17:46 +08:00
emmansun
1183f9d3c2 MAGIC - bad idea to port whole x509 2021-02-15 20:09:49 +08:00
emmansun
a1cb0a2616 MAGIC - refactor 2021-02-15 10:36:28 +08:00
emmansun
8e3dc1f490 MAGIC - move x509 related to smx509 package 2021-02-13 18:11:03 +08:00