798 Commits

Author SHA1 Message Date
Sun Yimin
652e6da354
pkcs7: reduce duplicated code 2023-03-14 08:36:15 +08:00
Sun Yimin
052f6ed2cf
cfca: supplement test cases 2023-03-13 13:57:22 +08:00
Sun Yimin
805d393d78
Update README.md 2023-03-11 12:41:47 +08:00
Sun Yimin
5d46f47c15
add cfca sm2 key and certificate parse 2023-03-10 17:09:29 +08:00
Sun Yimin
e7f1b45acf
pkcs7: signed and enveloped data, test rsa 2023-03-09 16:49:21 +08:00
Sun Yimin
1b956e2db0
pkcs7: de-support dsa 2023-03-09 15:07:17 +08:00
Sun Yimin
b70f6bb374
internal/sm2ec: fix test assert bug 2023-03-09 14:52:55 +08:00
Sun Yimin
1d1382f085
pkcs7: fix error 2023-03-09 14:32:50 +08:00
Sun Yimin
9a839b50c0
pkcs7: remove useless file 2023-03-09 14:24:01 +08:00
Sun Yimin
d968b80e5c
Fix sha1 test issue 2023-03-09 13:18:42 +08:00
Sun Yimin
236c37dab8
enable sha1 for test 2023-03-09 11:53:54 +08:00
Sun Yimin
5d41aaa348
merge pkcs7 2023-03-09 11:45:39 +08:00
Sun Yimin
7257b0151b
fix typo issu 2023-03-08 15:44:38 +08:00
Sun Yimin
818159283c
disable sm3 sm4 ni via env. variable 2023-03-08 15:39:48 +08:00
Sun Yimin
6bbcc97bd4
Create test_qemu.yml 2023-03-08 13:42:46 +08:00
Emman
784e14b59e Revert "[go1.17] internal/subtle xor 简化代码,去除重复 #75"
This reverts commit cedbf0c3557ec1c643b648dafefebb993854506e.
2023-03-08 10:24:34 +08:00
Sun Yimin
cedbf0c355
[go1.17] internal/subtle xor 简化代码,去除重复 #75 2023-03-08 10:10:28 +08:00
Sun Yimin
71657b8d34
fix possible test failure 2023-03-07 08:55:09 +08:00
Sun Yimin
08e9fb79c1
Merge pull request #107 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.7.0
build(deps): bump golang.org/x/crypto from 0.6.0 to 0.7.0
2023-03-07 08:23:10 +08:00
dependabot[bot]
8e66c1b2f8
build(deps): bump golang.org/x/crypto from 0.6.0 to 0.7.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 00:20:35 +00:00
Sun Yimin
ca7af068d1
Merge pull request #106 from emmansun/dependabot/go_modules/golang.org/x/sys-0.6.0
build(deps): bump golang.org/x/sys from 0.5.0 to 0.6.0
2023-03-07 08:20:02 +08:00
dependabot[bot]
2669b605ba
build(deps): bump golang.org/x/sys from 0.5.0 to 0.6.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 00:09:31 +00:00
Sun Yimin
f57e6a4a1d
pkcs8: rename internal struct 2023-03-06 17:18:55 +08:00
Sun Yimin
617d2591d6
pkcs8: fix gcm parameters asn1 issue 2023-02-28 13:43:00 +08:00
Sun Yimin
a47ae96293
sm2: SM2EnvelopedKey support 2023-02-22 17:37:56 +08:00
Sun Yimin
35a2ebe48f
internal/bigmod: flag amd64 assembly as noescape v0.15.7 2023-02-16 09:00:38 +08:00
Sun Yimin
21df52b623
smx9: rename CipherFactory to newCipher 2023-02-15 17:30:33 +08:00
Sun Yimin
dd8b2f61dd
smx509: ParseTypedECPrivateKey, return real privae key type 2023-02-14 16:03:05 +08:00
Sun Yimin
bf037a329e
sm9: handle empty plaintext and invalid ciphertext size 2023-02-14 10:45:02 +08:00
Sun Yimin
94cf65edbe
Merge pull request #102 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.6.0
build(deps): bump golang.org/x/crypto from 0.5.0 to 0.6.0
2023-02-14 08:31:43 +08:00
dependabot[bot]
c2d16dcda5
build(deps): bump golang.org/x/crypto from 0.5.0 to 0.6.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-14 00:11:35 +00:00
Sun Yimin
2eb1c508b8
sm9: use correct method 2023-02-13 15:47:02 +08:00
Sun Yimin
d52750d7a8
sm9: fix decrypt method ASN1 format checking issue 2023-02-13 15:36:04 +08:00
Sun Yimin
aedef9d00d
sm9: refactor encrypter mode 2023-02-13 14:36:34 +08:00
Sun Yimin
ebf9a74d77
sm9: support non-xor modes 2023-02-10 17:19:50 +08:00
Sun Yimin
5bfdfeb9b5
sm9: add example test, fix unexpected line v0.15.6 2023-02-03 15:25:40 +08:00
Sun Yimin
d22b2253f3
sm9: add example test 2023-02-03 15:13:02 +08:00
Sun Yimin
cf0c739dcf
smx509: change CreateCertificate's template and parent parameter type to any 2023-02-03 10:25:03 +08:00
Sun Yimin
cb1e23a776
add example test for drbg, zuc 2023-02-02 15:58:31 +08:00
Sun Yimin
a2d54159ad
add example test for sm3 sm4 pkcs8 2023-02-02 11:45:57 +08:00
Sun Yimin
5b806c85fe
pkcs8: fix comments 2023-02-01 17:34:42 +08:00
Sun Yimin
ff2b695500
pkcs8: add example test 2023-02-01 17:28:49 +08:00
Sun Yimin
e3db7656a6
add example test for sm2 sm4 2023-02-01 11:17:23 +08:00
Sun Yimin
9c8b345630
Create dependabot.yml 2023-01-31 14:11:13 +08:00
Sun Yimin
edfb4febdd
sm: improve docs and add examples 2023-01-31 13:50:14 +08:00
Sun Yimin
72bb569234
smx509: clarify that CheckSignatureFrom and CheckSignature are low-level API 2023-01-18 11:07:03 +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
824748a293
sm2: use ReadASN1Integer instead of clone private code v0.15.5 2022-12-13 11:03:02 +08:00
Sun Yimin
5c12b08cd5
upgrade dependencies 2022-12-08 11:00:47 +08:00
Sun Yimin
ca18fb55f4
sm2: test decrypt error 2022-12-06 10:11:02 +08:00