965 Commits

Author SHA1 Message Date
Sun Yimin
d2382247b1
sm3: fix arm ni issue 2023-03-30 13:39:17 +08:00
Sun Yimin
bb3529894c
sm3: fix arm sm3 ni issue 2023-03-30 13:03:31 +08:00
Sun Yimin
b2b56fae32
fix gcm sm4 ni bug 2023-03-30 11:46:19 +08:00
Sun Yimin
6b4c50e65a
try reduce one instr 2023-03-30 11:30:36 +08:00
Sun Yimin
3fed51e909
fix error 2023-03-30 11:26:34 +08:00
Sun Yimin
c52d700860
do not reverse byte order 2023-03-30 10:26:10 +08:00
Sun Yimin
0ec1d9cb40
do not reverse byte order 2023-03-30 10:06:56 +08:00
Sun Yimin
03e35209e8
retry not reverse byte order 2023-03-30 10:01:34 +08:00
Sun Yimin
334efa093d
test shangmi ni with qemu 2023-03-30 08:49:09 +08:00
Sun Yimin
f66d37654c
pkcs: update gcm parameters 2023-03-28 11:09:58 +08:00
Sun Yimin
af86ca7b7b
pkcs7: enable sign without attributes 2023-03-28 08:41:01 +08:00
Sun Yimin
d814868a47
pkcs: SM4 oid special handling 2023-03-27 13:41:45 +08:00
Sun Yimin
1ed0dbb068
sm2: make opts fields private 2023-03-22 17:29:16 +08:00
Sun Yimin
6254f0a5cb
sm2: update comments 2023-03-22 10:18:06 +08:00
Sun Yimin
adec7ac7e2
pkcs7: improve test coverage v0.16.0 2023-03-16 10:18:19 +08:00
Sun Yimin
c1289f7224
pkcs7: test clean 2023-03-15 17:50:27 +08:00
Sun Yimin
a93f7fd94d
pkcs7: reduce duplicated and useless code 2023-03-14 17:48:29 +08:00
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