Coder Social home page Coder Social logo

tencent / tencentkonasmsuite Goto Github PK

View Code? Open in Web Editor NEW
339.0 12.0 71.0 3.84 MB

Tencent Kona SM Suite contains a set of Java security providers, which support algorithms SM2, SM3 and SM4, and protocols TLCP/GMSSL, TLS 1.3 (with RFC 8998) and TLS 1.2.

License: Other

Java 98.88% Shell 1.07% Kotlin 0.05%
sm2 sm3 sm4 tlcp gmssl tls pki

tencentkonasmsuite's Issues

Cannot access sun.nio.ch.DirectBuffer on JDK 17

java.lang.IllegalAccessError:
class com.tencent.kona.crypto.provider.GaloisCounterMode$GCMEngine (in unnamed module @0x2d58d9ed) 
cannot access class sun.nio.ch.DirectBuffer (in module java.base)
because module java.base does not export sun.nio.ch to unnamed module @0x2d58d9ed
            at com.tencent.kona.crypto.provider.GaloisCounterMode$GCMEngine.overlapDetection(GaloisCounterMode.java:929)
            at com.tencent.kona.crypto.provider.GaloisCounterMode$GCMEncrypt.doFinal(GaloisCounterMode.java:1318)
            at com.tencent.kona.crypto.provider.GaloisCounterMode.engineDoFinal(GaloisCounterMode.java:452)
            at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2500)
            at com.tencent.kona.sun.security.ssl.TLCPCipher$TLCPGcmWriteCipherGenerator$GcmWriteCipher.encrypt(TLCPCipher.java:522)
            at com.tencent.kona.sun.security.ssl.OutputRecord.t10Encrypt(OutputRecord.java:440)
            at com.tencent.kona.sun.security.ssl.OutputRecord.encrypt(OutputRecord.java:344)
            at com.tencent.kona.sun.security.ssl.SSLEngineOutputRecord$HandshakeFragment.acquireCiphertext(SSLEngineOutputRecord.java:535)
            at com.tencent.kona.sun.security.ssl.SSLEngineOutputRecord.acquireCiphertext(SSLEngineOutputRecord.java:353)
            at com.tencent.kona.sun.security.ssl.SSLEngineOutputRecord.encode(SSLEngineOutputRecord.java:205)
            at com.tencent.kona.sun.security.ssl.SSLEngineOutputRecord.encode(SSLEngineOutputRecord.java:187)
            at com.tencent.kona.sun.security.ssl.SSLEngineImpl.encode(SSLEngineImpl.java:304)
            at com.tencent.kona.sun.security.ssl.SSLEngineImpl.writeRecord(SSLEngineImpl.java:246)
            at com.tencent.kona.sun.security.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:146)
            at com.tencent.kona.sun.security.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:123)
            at java.base/javax.net.ssl.SSLEngine.wrap(SSLEngine.java:564)

Re-implements SM4

This is a substitution of org.bouncycastle.jcajce.provider.symmetric.SM4$ECB

Update READMEs on installation

The artifacts are already uploaded to the Maven Central repository. It would be better to add a new section Installation for each README.

Share the same build logics

Most of build logics are duplicated in the sub-projects. It would be better to put the same build logics in a single scripts, and then the sub-projects just share them.

Add security policy

It would be better to set up a security policy, exactly SECURITY.md, for clarifying how to report the possible security vulnerabilities.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.