Git Product home page Git Product logo

gmca's Introduction

GMCA

SM2 SM3 X.509 Cert 国密 证书 国密算法 国密证书 生成签发 相关代码

sm2国密算法密钥生成 数字证书生成

sm3withsm2国密数字签名示例

sm2 PKCS#12 国密 keystore

纯java示例 基于bouncycastle 1.59

注意

由于美国出口法律的限制,jdk在1.8.151以下版本对DES算法的密码长度有限制,生成keystore的时候会抛出 非法密钥异常,出现此异常请升级jdk版本到1.8.151+ 或者修改对应策略

Android系统使用国密的问题

由于某些ROM厂商在Android的framework层内置了Bouncycastle Provider,由于版本不兼容会导致出现错误. 解决方案为: 在Security.addProvider(),前先使用Security.removeProvider("BC");把内置的Bouncycastle Provider先移除

gmca's People

Watchers

 avatar

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.