Git Product home page Git Product logo

tongsuo-project / tongsuo-java-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/conscrypt

22.0 22.0 13.0 22.76 MB

Tongsuo-Java-SDK is a Java Security Provider that implements parts of the Java Cryptography Extension and Java Secure Socket Extension.

License: Apache License 2.0

Shell 0.12% C++ 12.45% Python 0.16% C 0.18% Java 86.92% HTML 0.02% CMake 0.04% Batchfile 0.03% Dockerfile 0.08%

tongsuo-java-sdk's People

Contributors

15characterlimi avatar agl avatar bdcgoogle avatar bsidhom avatar captain5050 avatar chadbrubaker avatar chih-hung avatar colincross avatar d-reidenbach avatar danalbert avatar danw avatar davidben avatar dongbeiouba avatar dvorak42 avatar enh-google avatar flooey avatar gcondra avatar justin-morey avatar koush avatar kpayson64 avatar kruton avatar narayank avatar nfuller avatar nmittler avatar paulduffin avatar prbprbprb avatar pszc avatar sere-fu avatar yqwed avatar yschimke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tongsuo-java-sdk's Issues

期望java sdk支持TLCP协议

期望提供SSLContext/SSLEngine实现TLCP协议支持ECC-SM2-SM4-CBC-SM3/ECC-SM2-SM4-GCM-SM3/ECDHE-SM2-SM4-CBC-SM3/ECDHE-SM2-SM4-GCM-SM3算法套件

4.19.91-25.6.al7.x86_64 环境无法运行demo

运行SM4 demo出现以下错误:

java.security.NoSuchAlgorithmException: No such algorithm: SM4/GCM/NoPadding
at javax.crypto.Cipher.getInstance(Cipher.java:691)
at javax.crypto.Cipher.getInstance(Cipher.java:599)
at com.alibaba.encdb.example.main(example.java:36)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:254)
at java.lang.Thread.run(Thread.java:750)

我尝试用provider.getServices(); 方法打印TongsuoProvider支持的所有算法,发现为以下内容,并不包含商密系列:
Name: Tongsuo_Security_Provider
Information:
Tongsuo JCA/JCE/JSSE Provider, supporting RFC 8998
Service Type: SSLContext Algorithm SSL
Service Type: SSLContext Algorithm TLS
Service Type: SSLContext Algorithm TLSv1
Service Type: SSLContext Algorithm TLSv1.1
Service Type: SSLContext Algorithm TLSv1.2
Service Type: SSLContext Algorithm TLSv1.3
Service Type: SSLContext Algorithm Default
Service Type: TrustManagerFactory Algorithm PKIX
Service Type: AlgorithmParameters Algorithm AES
Service Type: AlgorithmParameters Algorithm ChaCha20
Service Type: AlgorithmParameters Algorithm DESEDE
Service Type: AlgorithmParameters Algorithm GCM
Service Type: AlgorithmParameters Algorithm OAEP
Service Type: AlgorithmParameters Algorithm PSS
Service Type: AlgorithmParameters Algorithm EC
Service Type: MessageDigest Algorithm SHA-1
Service Type: MessageDigest Algorithm SHA-224
Service Type: MessageDigest Algorithm SHA-256
Service Type: MessageDigest Algorithm SHA-384
Service Type: MessageDigest Algorithm SHA-512
Service Type: MessageDigest Algorithm MD5
Service Type: KeyGenerator Algorithm ARC4
Service Type: KeyGenerator Algorithm AES
Service Type: KeyGenerator Algorithm ChaCha20
Service Type: KeyGenerator Algorithm DESEDE
Service Type: KeyGenerator Algorithm HmacMD5
Service Type: KeyGenerator Algorithm HmacSHA1
Service Type: KeyGenerator Algorithm HmacSHA224
Service Type: KeyGenerator Algorithm HmacSHA256
Service Type: KeyGenerator Algorithm HmacSHA384
Service Type: KeyGenerator Algorithm HmacSHA512
Service Type: KeyPairGenerator Algorithm RSA
Service Type: KeyPairGenerator Algorithm EC
Service Type: KeyPairGenerator Algorithm XDH
Service Type: KeyFactory Algorithm RSA
Service Type: KeyFactory Algorithm EC
Service Type: KeyFactory Algorithm XDH
Service Type: SecretKeyFactory Algorithm DESEDE
Service Type: SecretKeyFactory Algorithm SCRYPT
Service Type: KeyAgreement Algorithm ECDH
Service Type: KeyAgreement Algorithm XDH
Service Type: Signature Algorithm MD5withRSA
Service Type: Signature Algorithm SHA1withRSA
Service Type: Signature Algorithm SHA224withRSA
Service Type: Signature Algorithm SHA256withRSA
Service Type: Signature Algorithm SHA384withRSA
Service Type: Signature Algorithm SHA512withRSA
Service Type: Signature Algorithm NONEwithRSA
Service Type: Signature Algorithm NONEwithECDSA
Service Type: Signature Algorithm SHA1withECDSA
Service Type: Signature Algorithm SHA224withECDSA
Service Type: Signature Algorithm SHA256withECDSA
Service Type: Signature Algorithm SHA384withECDSA
Service Type: Signature Algorithm SHA512withECDSA
Service Type: Signature Algorithm SHA1withRSA/PSS
Service Type: Signature Algorithm SHA224withRSA/PSS
Service Type: Signature Algorithm SHA256withRSA/PSS
Service Type: Signature Algorithm SHA384withRSA/PSS
Service Type: Signature Algorithm SHA512withRSA/PSS
Service Type: SecureRandom Algorithm SHA1PRNG
Service Type: Cipher Algorithm RSA/ECB/NoPadding
Service Type: Cipher Algorithm RSA/ECB/PKCS1Padding
Service Type: Cipher Algorithm RSA/ECB/OAEPPadding
Service Type: Cipher Algorithm RSA/ECB/OAEPWithSHA-1AndMGF1Padding
Service Type: Cipher Algorithm RSA/ECB/OAEPWithSHA-224AndMGF1Padding
Service Type: Cipher Algorithm RSA/ECB/OAEPWithSHA-256AndMGF1Padding
Service Type: Cipher Algorithm RSA/ECB/OAEPWithSHA-384AndMGF1Padding
Service Type: Cipher Algorithm RSA/ECB/OAEPWithSHA-512AndMGF1Padding
Service Type: Cipher Algorithm AES/ECB/NoPadding
Service Type: Cipher Algorithm AES/ECB/PKCS5Padding
Service Type: Cipher Algorithm AES/CBC/NoPadding
Service Type: Cipher Algorithm AES/CBC/PKCS5Padding
Service Type: Cipher Algorithm AES/CTR/NoPadding
Service Type: Cipher Algorithm AES_128/ECB/NoPadding
Service Type: Cipher Algorithm AES_128/ECB/PKCS5Padding
Service Type: Cipher Algorithm AES_128/CBC/NoPadding
Service Type: Cipher Algorithm AES_128/CBC/PKCS5Padding
Service Type: Cipher Algorithm AES_256/ECB/NoPadding
Service Type: Cipher Algorithm AES_256/ECB/PKCS5Padding
Service Type: Cipher Algorithm AES_256/CBC/NoPadding
Service Type: Cipher Algorithm AES_256/CBC/PKCS5Padding
Service Type: Cipher Algorithm DESEDE/CBC/NoPadding
Service Type: Cipher Algorithm DESEDE/CBC/PKCS5Padding
Service Type: Cipher Algorithm ARC4
Service Type: Cipher Algorithm AES/GCM/NoPadding
Service Type: Cipher Algorithm AES_128/GCM/NoPadding
Service Type: Cipher Algorithm AES_256/GCM/NoPadding
Service Type: Cipher Algorithm AES/GCM-SIV/NoPadding
Service Type: Cipher Algorithm AES_128/GCM-SIV/NoPadding
Service Type: Cipher Algorithm AES_256/GCM-SIV/NoPadding
Service Type: Cipher Algorithm ChaCha20
Service Type: Cipher Algorithm ChaCha20/Poly1305/NoPadding
Service Type: Mac Algorithm HmacMD5
Service Type: Mac Algorithm HmacSHA1
Service Type: Mac Algorithm HmacSHA224
Service Type: Mac Algorithm HmacSHA256
Service Type: Mac Algorithm HmacSHA384
Service Type: Mac Algorithm HmacSHA512
Service Type: Mac Algorithm AESCMAC
Service Type: CertificateFactory Algorithm X509

Android 引入相关问题

请问此 SDK 若想安卓项目中引入需要如何处理,目前通过 Gradle 依赖是无法在 Android 项目中找到相应的依赖库

tongsuo-openjdk依赖无法下载

image

完全按照文档复制的pom文件这个依赖拉不下来,maven配置了阿里的公共仓库,拉其他依赖没问题,阿里云的仓库也没搜到对应jar
image

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.