Commit Graph

  • 0ec1d9cb40
    do not reverse byte order Sun Yimin 2023-03-30 10:06:56 +08:00
  • 03e35209e8
    retry not reverse byte order Sun Yimin 2023-03-30 10:01:34 +08:00
  • 334efa093d
    test shangmi ni with qemu Sun Yimin 2023-03-30 08:49:09 +08:00
  • f66d37654c
    pkcs: update gcm parameters Sun Yimin 2023-03-28 11:09:58 +08:00
  • af86ca7b7b
    pkcs7: enable sign without attributes Sun Yimin 2023-03-28 08:41:01 +08:00
  • d814868a47
    pkcs: SM4 oid special handling Sun Yimin 2023-03-27 13:41:45 +08:00
  • 1ed0dbb068
    sm2: make opts fields private Sun Yimin 2023-03-22 17:29:16 +08:00
  • 6254f0a5cb
    sm2: update comments Sun Yimin 2023-03-22 10:18:06 +08:00
  • adec7ac7e2
    pkcs7: improve test coverage v0.16.0 Sun Yimin 2023-03-16 10:18:19 +08:00
  • c1289f7224
    pkcs7: test clean Sun Yimin 2023-03-15 17:50:27 +08:00
  • a93f7fd94d
    pkcs7: reduce duplicated and useless code Sun Yimin 2023-03-14 17:48:29 +08:00
  • 652e6da354
    pkcs7: reduce duplicated code Sun Yimin 2023-03-14 08:36:15 +08:00
  • 052f6ed2cf
    cfca: supplement test cases Sun Yimin 2023-03-13 13:57:22 +08:00
  • 805d393d78
    Update README.md Sun Yimin 2023-03-11 12:41:47 +08:00
  • 5d46f47c15
    add cfca sm2 key and certificate parse Sun Yimin 2023-03-10 17:09:29 +08:00
  • e7f1b45acf
    pkcs7: signed and enveloped data, test rsa Sun Yimin 2023-03-09 16:49:21 +08:00
  • 1b956e2db0
    pkcs7: de-support dsa Sun Yimin 2023-03-09 15:07:17 +08:00
  • b70f6bb374
    internal/sm2ec: fix test assert bug Sun Yimin 2023-03-09 14:52:55 +08:00
  • 1d1382f085
    pkcs7: fix error Sun Yimin 2023-03-09 14:32:50 +08:00
  • 9a839b50c0
    pkcs7: remove useless file Sun Yimin 2023-03-09 14:24:01 +08:00
  • d968b80e5c
    Fix sha1 test issue Sun Yimin 2023-03-09 13:18:42 +08:00
  • 236c37dab8
    enable sha1 for test Sun Yimin 2023-03-09 11:53:54 +08:00
  • 5d41aaa348
    merge pkcs7 Sun Yimin 2023-03-09 11:45:39 +08:00
  • 7257b0151b
    fix typo issu Sun Yimin 2023-03-08 15:44:38 +08:00
  • 818159283c
    disable sm3 sm4 ni via env. variable Sun Yimin 2023-03-08 15:39:48 +08:00
  • 6bbcc97bd4
    Create test_qemu.yml Sun Yimin 2023-03-08 13:42:46 +08:00
  • 784e14b59e Revert "[go1.17] internal/subtle xor 简化代码,去除重复 #75" Emman 2023-03-08 10:24:34 +08:00
  • cedbf0c355
    [go1.17] internal/subtle xor 简化代码,去除重复 #75 #109 Sun Yimin 2023-03-08 10:10:28 +08:00
  • 71657b8d34
    fix possible test failure #108 Sun Yimin 2023-03-07 08:55:09 +08:00
  • 08e9fb79c1
    Merge pull request #107 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.7.0 Sun Yimin 2023-03-07 08:23:10 +08:00
  • 8e66c1b2f8
    build(deps): bump golang.org/x/crypto from 0.6.0 to 0.7.0 #107 dependabot[bot] 2023-03-07 00:20:35 +00:00
  • ca7af068d1
    Merge pull request #106 from emmansun/dependabot/go_modules/golang.org/x/sys-0.6.0 Sun Yimin 2023-03-07 08:20:02 +08:00
  • 2669b605ba
    build(deps): bump golang.org/x/sys from 0.5.0 to 0.6.0 #106 dependabot[bot] 2023-03-07 00:09:31 +00:00
  • f57e6a4a1d
    pkcs8: rename internal struct Sun Yimin 2023-03-06 17:18:55 +08:00
  • 617d2591d6
    pkcs8: fix gcm parameters asn1 issue Sun Yimin 2023-02-28 13:43:00 +08:00
  • a47ae96293
    sm2: SM2EnvelopedKey support Sun Yimin 2023-02-22 17:37:56 +08:00
  • 35a2ebe48f
    internal/bigmod: flag amd64 assembly as noescape v0.15.7 Sun Yimin 2023-02-16 09:00:38 +08:00
  • 21df52b623
    smx9: rename CipherFactory to newCipher Sun Yimin 2023-02-15 17:30:33 +08:00
  • dd8b2f61dd
    smx509: ParseTypedECPrivateKey, return real privae key type Sun Yimin 2023-02-14 16:03:05 +08:00
  • bf037a329e
    sm9: handle empty plaintext and invalid ciphertext size Sun Yimin 2023-02-14 10:45:02 +08:00
  • 94cf65edbe
    Merge pull request #102 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.6.0 Sun Yimin 2023-02-14 08:31:43 +08:00
  • 5e3caf3e39
    build(deps): bump golang.org/x/sys from 0.4.0 to 0.5.0 #103 dependabot[bot] 2023-02-14 00:11:49 +00:00
  • c2d16dcda5
    build(deps): bump golang.org/x/crypto from 0.5.0 to 0.6.0 #102 dependabot[bot] 2023-02-14 00:11:35 +00:00
  • 2eb1c508b8
    sm9: use correct method Sun Yimin 2023-02-13 15:47:02 +08:00
  • d52750d7a8
    sm9: fix decrypt method ASN1 format checking issue Sun Yimin 2023-02-13 15:36:04 +08:00
  • aedef9d00d
    sm9: refactor encrypter mode Sun Yimin 2023-02-13 14:36:34 +08:00
  • ebf9a74d77
    sm9: support non-xor modes Sun Yimin 2023-02-10 17:19:50 +08:00
  • 5bfdfeb9b5
    sm9: add example test, fix unexpected line v0.15.6 Sun Yimin 2023-02-03 15:25:40 +08:00
  • d22b2253f3
    sm9: add example test Sun Yimin 2023-02-03 15:13:02 +08:00
  • cf0c739dcf
    smx509: change CreateCertificate's template and parent parameter type to any Sun Yimin 2023-02-03 10:25:03 +08:00
  • cb1e23a776
    add example test for drbg, zuc Sun Yimin 2023-02-02 15:58:31 +08:00
  • a2d54159ad
    add example test for sm3 sm4 pkcs8 Sun Yimin 2023-02-02 11:45:57 +08:00
  • 5b806c85fe
    pkcs8: fix comments Sun Yimin 2023-02-01 17:34:42 +08:00
  • ff2b695500
    pkcs8: add example test Sun Yimin 2023-02-01 17:28:49 +08:00
  • e3db7656a6
    add example test for sm2 sm4 Sun Yimin 2023-02-01 11:17:23 +08:00
  • 9c8b345630
    Create dependabot.yml Sun Yimin 2023-01-31 14:11:13 +08:00
  • edfb4febdd
    sm: improve docs and add examples Sun Yimin 2023-01-31 13:50:14 +08:00
  • 72bb569234
    smx509: clarify that CheckSignatureFrom and CheckSignature are low-level API Sun Yimin 2023-01-18 11:07:03 +08:00
  • 24d89df5c0
    sm2: add a reference test method for non-standard keys construction Sun Yimin 2023-01-16 11:01:55 +08:00
  • 824748a293
    sm2: use ReadASN1Integer instead of clone private code v0.15.5 Sun Yimin 2022-12-13 11:03:02 +08:00
  • 5c12b08cd5
    upgrade dependencies Sun Yimin 2022-12-08 11:00:47 +08:00
  • ca18fb55f4
    sm2: test decrypt error Sun Yimin 2022-12-06 10:11:02 +08:00
  • 97e419809e
    sm9: ErrDecryption, avoid adaptive attacks Sun Yimin 2022-12-06 08:54:53 +08:00
  • 32acdfea7e
    sm2: ErrDecryption, avoid adaptive attacks Sun Yimin 2022-12-06 08:39:16 +08:00
  • 60c3caf9db
    sm2: align error message Sun Yimin 2022-12-05 17:12:14 +08:00
  • d30cb1d1c8
    sm9: add test cases Sun Yimin 2022-12-02 15:49:48 +08:00
  • 9c8836b2c6
    sm9: sm9: use bigmod instead of math/big, verify method Sun Yimin 2022-12-02 14:33:54 +08:00
  • acf6edec18
    smx509: include more hints for verification failure Sun Yimin 2022-12-02 08:47:39 +08:00
  • 13f777bb2f
    sm2: verify validity of signature parameters in Verify Sun Yimin 2022-12-02 08:41:41 +08:00
  • 9b3333f015
    sm2: supplement test cases and upgrade dependencies v0.15.4 Sun Yimin 2022-11-30 09:00:17 +08:00
  • f95e558482
    sm2: use equals instead of not equals Sun Yimin 2022-11-29 10:35:18 +08:00
  • 18e2f1b022
    sm9: improve test coverage Sun Yimin 2022-11-28 10:55:23 +08:00
  • 98646cfac0
    sm9: deprecated sign/verify non-asn1 methods Sun Yimin 2022-11-28 10:32:17 +08:00
  • c477816aa7
    sm9: use bigmod instead of math/big, part 2 Sun Yimin 2022-11-25 17:45:11 +08:00
  • a592631459
    sm9: do not expose internal constants Sun Yimin 2022-11-25 14:40:27 +08:00
  • 63668bb045
    sm9: remove duplicated code Sun Yimin 2022-11-25 10:27:21 +08:00
  • d7e853277a
    sm9: use bigmod instead of math/big Sun Yimin 2022-11-25 10:11:46 +08:00
  • aede405cdd
    sm2: add deprecated comment Sun Yimin 2022-11-24 10:18:03 +08:00
  • fc8fe5c631
    sm2/enc: use bigmod and sm2ec instead of math/big and crypto/elliptic Sun Yimin 2022-11-23 17:34:08 +08:00
  • 9c6638f30e
    fix error path Sun Yimin 2022-11-23 10:28:36 +08:00
  • 3bd57e44f4
    move file Sun Yimin 2022-11-23 10:21:29 +08:00
  • a45e13d148
    sm2: use bigmod and sm2ec instead of math/big and crypto/elliptic Sun Yimin 2022-11-23 10:20:13 +08:00
  • 200a785d29
    change build tag generic to purego & import nat package Sun Yimin 2022-11-22 11:02:37 +08:00
  • 57882bbdbc
    sm3: reduce Write calls in Sum Sun Yimin 2022-11-22 08:42:17 +08:00
  • f1993bc41a
    sm2,smx509: add encoding paths for SM2 ecdh keys Sun Yimin 2022-11-21 10:09:57 +08:00
  • 984913e228
    sm2,smx509: add encoding paths for SM2 ecdh keys Sun Yimin 2022-11-21 09:31:30 +08:00
  • 9805aa448a
    x509: create CRLs with Issuer.RawSubject Sun Yimin 2022-11-18 11:45:46 +08:00
  • 7448a5de1e
    ecdh: format sm2 curve constans Sun Yimin 2022-11-18 11:24:06 +08:00
  • 17b873a345
    x509: Reallow duplicate attributes in CSRs. Sun Yimin 2022-11-18 10:43:39 +08:00
  • 94087a6660
    x509: Reallow duplicate attributes in CSRs. Sun Yimin 2022-11-18 10:28:22 +08:00
  • 289bfe16c0
    x509: add support for PKCS8/PKIX X25519 key encodings preparation Sun Yimin 2022-11-18 10:21:25 +08:00
  • 6c7ddbb206
    ecdh: move ECDH method to PrivateKey Sun Yimin 2022-11-18 09:43:51 +08:00
  • c4540b0c31
    add name constraints test Sun Yimin 2022-11-15 14:48:49 +08:00
  • 68e297f49b
    remove unused member Raw from certificate, #95 Sun Yimin 2022-11-15 11:09:01 +08:00
  • 8f6804d73f
    upgrade dependencies v0.15.3 Sun Yimin 2022-11-15 09:24:44 +08:00
  • b7c636b87d
    export ParseName for tls/tlcp to parse certificate authorities Sun Yimin 2022-11-09 16:18:08 +08:00
  • 7490af1dca
    review x509 and readme v0.15.2 Sun Yimin 2022-11-03 11:12:26 +08:00
  • 4f5968f7ce
    add disclaimer Sun Yimin 2022-11-03 09:41:36 +08:00
  • 1ce7714cc9
    rollback first #93 Sun Yimin 2022-11-02 17:11:18 +08:00
  • fd940fcd06
    fix failed case for golang < 1.18.x Sun Yimin 2022-11-02 16:56:06 +08:00