Commit Graph

  • 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
  • 8b25009e6f
    respect GODEBUG changes for allowing SHA1 certificates #93 Sun Yimin 2022-11-02 16:42:50 +08:00
  • d11a8bc940
    supplement test coverage Sun Yimin 2022-11-01 16:08:17 +08:00
  • cf6a25bf31
    fix bug Sun Yimin 2022-11-01 15:38:28 +08:00
  • 096578c771
    improve readability Sun Yimin 2022-11-01 09:49:15 +08:00
  • cae2dbea35
    use sample test to make sure correctness Sun Yimin 2022-10-31 14:44:38 +08:00
  • 82326621ee add proxy methods for rsa pkcs1 pub/priv keys emmansun 2022-10-30 11:38:17 +08:00
  • 0f0eec19d0 provide a sample method to handle irregular ciphertext #90 emmansun 2022-10-30 09:46:09 +08:00
  • 57d01255e8
    handle padding zero, #90 v0.15.1 Sun Yimin 2022-10-28 09:31:41 +08:00
  • 9ba3e69efc
    update error messages v0.15.0 Sun Yimin 2022-10-24 17:32:56 +08:00
  • 4ba1372fa0
    update comments Sun Yimin 2022-10-24 16:31:26 +08:00
  • 5db7e63360
    provide convient methods to parse pkcs8 sm9 keys Sun Yimin 2022-10-24 16:09:12 +08:00
  • a7c36d7f30
    supplement gmssl sign master private key test data Sun Yimin 2022-10-24 11:45:46 +08:00
  • f6af6eb729
    add gmssl test cases Sun Yimin 2022-10-24 11:42:26 +08:00
  • d35482a358
    pkcs8 sm9 master sign/encrypt private key support Sun Yimin 2022-10-24 11:00:13 +08:00
  • 404cd10210 support sm9 key format with gmssl emmansun 2022-10-22 15:49:01 +08:00
  • ecdf5fca82
    supplement tesst cases Sun Yimin 2022-10-21 10:46:18 +08:00
  • 0342ada322
    add comments and enhance gm validation Sun Yimin 2022-10-21 10:22:10 +08:00
  • 7f86563f74
    update README.md and dependencies Sun Yimin 2022-10-20 16:28:58 +08:00
  • afc4750bf0
    Sample pseudo random number generator base on DRBG Sun Yimin 2022-10-20 15:28:06 +08:00
  • 643df78c07
    implement ctr drbg Sun Yimin 2022-10-20 11:30:20 +08:00
  • f723aa8c66
    hash drbg initial version Sun Yimin 2022-10-19 09:57:58 +08:00
  • 6253b828c7
    upgrade dependencies and remove useless code Sun Yimin 2022-10-11 13:27:56 +08:00
  • 49f25af421
    add parallel test Sun Yimin 2022-09-16 11:48:28 +08:00
  • 0946644542
    update readme Sun Yimin 2022-09-08 08:56:26 +08:00
  • 8f7a7626ba
    sm2: support ecdh mqv v0.14.1 Sun Yimin 2022-09-02 14:03:51 +08:00
  • 6a556b26d3
    smx509: don't panic marshaling invalid ECDSA keys #81 Sun Yimin 2022-08-30 10:35:57 +08:00
  • fb7041acbc
    sm2/9: key exchange destroy, fix #80 Sun Yimin 2022-08-30 09:54:29 +08:00
  • 3f9e1d5bd9
    ecdh: sm2 ECDH initial version v0.14.0 Sun Yimin 2022-08-26 13:25:56 +08:00
  • d1e4806e06
    sm2: refactoring, reduce duplicated codes Sun Yimin 2022-08-25 16:54:30 +08:00
  • 8948bdd931
    sm2: refactoring to reduce duplicated code Sun Yimin 2022-08-25 16:45:18 +08:00
  • 4a21345e72
    sm9: fix compile error Sun Yimin 2022-08-25 12:58:02 +08:00
  • 7ebdf00640
    fix defect Sun Yimin 2022-08-25 12:54:59 +08:00
  • eedd5ebc2b
    kdf: move Kdf() from sm3 to kdf Sun Yimin 2022-08-25 11:48:41 +08:00
  • 8f5dcb842e
    sm2: key exchange refactoring Sun Yimin 2022-08-24 16:53:11 +08:00
  • 21a9793600
    sm2/sm9: key exchange, support to destroy internal state Sun Yimin 2022-08-24 15:15:58 +08:00
  • 35154c8b53
    remove useless ci Sun Yimin 2022-08-19 15:07:56 +08:00
  • f2245485bc
    Merge pull request #78 from emmansun/20221015 Sun Yimin 2022-08-19 15:05:45 +08:00
  • f5cee483d5
    align go verions in main #78 20221015 Sun Yimin 2022-08-19 15:03:28 +08:00
  • 474168700e
    sm2 ke: make sure the peer pub key using same curve Sun Yimin 2022-08-19 11:39:02 +08:00
  • 45d6a74b6a
    update comment Sun Yimin 2022-08-19 10:30:19 +08:00
  • 8083b440cb
    README: add go version and update travis label v0.13.8 go_1.15 Sun Yimin 2022-08-19 08:31:12 +08:00
  • 6db1b23eb1
    subtle: fix generic bug Sun Yimin 2022-08-18 15:00:11 +08:00
  • 1710bdff4a
    refactoring, rename internal packages Sun Yimin 2022-08-18 14:49:35 +08:00
  • b96e51e3ff
    sm2: supplement test cases Sun Yimin 2022-08-18 10:54:25 +08:00
  • ae12f04c14
    sm2: use golang 1.19 style marshal/unmarshal Sun Yimin 2022-08-18 09:12:00 +08:00
  • 37f3e129da
    use golang 1.19 feature Sun Yimin 2022-08-17 15:58:06 +08:00