Giter VIP home page Giter VIP logo

zh-cipher's Introduction

国密算法实现

ZUC

(1)ZUC_example_3 ZUC 国标中的三个例子

(2)v_mod 计算v=2^{15}*S4+2^{17}*S3+2^{21}*S2+2^{20}*S1+(1+2^8)s0mod(2^{31}-1)

(3)ZUC-Sbox ZUC S盒实现

SM3

(1)SM3 SM3 国标中例子实现

(2)openSSL openSSL中摘除的SM3

SM2

(1)sm2_点集 求椭圆曲线上的点,例:y^2=x^3+ax+b,求(x,y)

(2)sm2_逆运算 求一个数的逆,例:求Fq下的g^-1

(3)sm2_平方根 求椭圆方程中的y值,即求平方根,例:y^2=g(mod p),求y

(4)sm2_指数运算 求一个数的指数值,例:求Fq下的g^a

SM4

(1)sm4_sbox SM4的S盒实现,打印S盒

(2)sm4_string 对字符串加解密,可以设定加密次数

(3)sm4_txt 对TXT文本加解密

(4)sm4_picture 对图片加解密,目前针对是BMP文件

SM9

(1)sm9例子密钥封装 实现国标SM9密钥封装中的例子,输出中间参数

zh-cipher's People

Contributors

hang-shao 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.