510 Commits

Author SHA1 Message Date
Emman
4c131bdeb6 refactoring and fix bug 2022-04-29 08:56:53 +08:00
Emman
0beb90aff8 enable sm4ni gcm 2022-04-28 17:53:04 +08:00
Emman
5744b64c56 sm4ni gcm 2022-04-28 17:52:11 +08:00
Emman
0450200249 sm4 use sm4e sm4ekey, without gcm integration part 2022-04-28 13:46:50 +08:00
Emman
697d1dbd35 sm3 use arm cpu inst 2022-04-28 13:44:18 +08:00
Emman
1d83736209 add branch ci 2022-04-28 13:43:44 +08:00
Emman
660d54649b fix generated asm file name pattern 2022-04-28 11:03:44 +08:00
Emman
67d40a2a61 add new line 2022-04-27 10:42:20 +08:00
Emman
47f411681c upgrade dependency 2022-04-27 10:38:59 +08:00
Emman
c266b3211a support sm3 ni preparation 2022-04-27 10:36:10 +08:00
Emman
2dc8dae6bd Update comments 2022-04-26 10:13:17 +08:00
Emman
eb56eac42a support zuc eia 256 bits 2022-04-26 10:04:30 +08:00
Emman
7632ebf376 sm4 generic implementation optimization ref openssl 2022-04-25 11:02:33 +08:00
Emman
03563d8553 zuc128 eia for reference 2022-04-22 11:31:59 +08:00
Emman
41d0934ef4 crypto/x509: revert serial length restriction 2022-04-22 08:37:49 +08:00
Emman
64f522ea1b Revert "#43, crypto/x509: don't allow too long serials"
This reverts commit b3f10b9a4cfeb8c384282f3e61aaf7356efab636.

# Conflicts:
#	smx509/x509.go
#	smx509/x509_test.go
2022-04-22 08:28:12 +08:00
Emman
88dc7dc8ec remove non-shangmi alg 2022-04-21 08:27:41 +08:00
Emman
0a827de266 update package level comments 2022-04-20 08:36:44 +08:00
Emman
772beacfb0 support zuc256 for eea 2022-04-19 17:42:21 +08:00
Emman
ca98bd6f5c crypto/x509: reject duplicate extensions #48 2022-04-19 16:29:41 +08:00
Emman
45aae847b8 add back the last test vector 2022-04-19 13:32:09 +08:00
Emman
2391806012 Merge branch 'main' of https://github.com/emmansun/gmsm 2022-04-19 11:50:38 +08:00
Emman
133077a4b2 zuc 128 stream cipher 2022-04-19 11:25:14 +08:00
Emman
e95fc0c08a rc5 symmetric cipher 2022-04-19 11:24:00 +08:00
emmansun
77f61fce9c crypto/x509: don't create certs with negative serials #47 2022-04-17 09:37:03 +08:00
Emman
35732a2822 #45, #46 v0.11.5 2022-04-15 11:14:30 +08:00
Emman
155ef2943d #44, crypto/x509: omit empty extensions SEQUENCE 2022-04-15 11:05:14 +08:00
Emman
b3f10b9a4c #43, crypto/x509: don't allow too long serials 2022-04-15 11:01:11 +08:00
Emman
db4ee8585a expose type cast method 2022-04-13 09:41:38 +08:00
Emman
51f29b0258 Upgrade dependencies 2022-04-13 09:40:42 +08:00
emmansun
c7066d2256 fix ut error 2022-04-11 19:50:44 +08:00
Emman
efc3350236 Fix ut error 2022-04-11 17:40:41 +08:00
Emman
97217e8a68 crypto/x509: only disable SHA-1 verification for certificates 2022-04-11 17:33:40 +08:00
Emman
41f9220e3c crypto/x509: rework path building 2022-04-11 15:55:23 +08:00
Emman
eb54032c1b crypto/x509: properly handle issuerUniqueID and subjectUniqueID 2022-04-11 13:36:14 +08:00
Emman
d35a314b7a crypto/x509: properly handle issuerUniqueID and subjectUniqueID 2022-04-11 13:35:04 +08:00
Emman
bd9ba93ffe crypto/x509: add CertPool.Equal 2022-04-11 13:34:35 +08:00
Emman
a61731e0e2 duplicated 2022-04-10 11:16:11 +08:00
Emman
0f7a9070ee pkcs1 2022-04-10 09:56:28 +08:00
Emman
dc34e17797 tolerate zero-padded scalars in generic implementation 2022-04-08 11:18:45 +08:00
Emman
bfdb74af01 Upgrade dependencies 2022-04-08 10:51:32 +08:00
Emman
fc6fce3bbf Test Issue 52075 - generic impl panic when scalar has too many leading zeroes 2022-04-08 10:50:11 +08:00
Emman
6450e27784 Upgrade dependencies v0.11.4 2022-03-25 14:35:18 +08:00
Emman
f375365553 Upgrade dependencies 2022-03-21 10:14:28 +08:00
Emman
0357a17c0a crypto/x509: return err ans1.Marshal gives an error 2022-03-21 10:13:40 +08:00
Emman
d79ab3d709 Change to use new {M1, C1, M2, C2}, do not know the old one's derivation process 2022-03-11 18:05:08 +08:00
Emman
9d2fd48255 Upgrade dependencies 2022-03-11 08:26:36 +08:00
Emman
90547cbb23 Add comments 2022-03-09 08:49:41 +08:00
Emman
8fd965965c Upgrade dependencies 2022-03-09 08:48:42 +08:00
Emman
8bf00b0a84 change error message v0.11.3 2022-02-25 11:45:34 +08:00