All Projects → xlcetc → cryptogm

xlcetc / cryptogm

Licence: other
An implement of china crypto standards, including sm2,sm3 ,sm4 and sm9 algorithms.

Programming Languages

go
31211 projects - #10 most used programming language
assembly
5116 projects
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to cryptogm

Gmssl
支持国密SM2/SM3/SM4/SM9/ZUC/SSL的OpenSSL分支
Stars: ✭ 2,747 (+10465.38%)
Mutual labels:  sm2, sm3, sm4, sm9
java-gm
Java语言国密基础库
Stars: ✭ 33 (+26.92%)
Mutual labels:  sm2, sm3, sm4
phpsm2sm3sm4
php版本,支持国密sm2的签名算法,非对称加解密,sm3的hash, sm4的对称加解密
Stars: ✭ 80 (+207.69%)
Mutual labels:  sm2, sm3, sm4
libsm
A Rust Library of China's Standards of Encryption Algorithms (SM2/3/4)
Stars: ✭ 112 (+330.77%)
Mutual labels:  sm2, sm3, sm4
yogcrypt
A fast, general purpose crypto library in pure Rust.
Stars: ✭ 18 (-30.77%)
Mutual labels:  sm2, sm3, sm4
sm
php国密SM3,sm4算法
Stars: ✭ 132 (+407.69%)
Mutual labels:  sm3, sm4
SuperMemo2
📦 Published package for spaced repetition algorithm SM-2
Stars: ✭ 78 (+200%)
Mutual labels:  sm2
littleca
littleca是一个基于BC的小型ca库,支持ecc,rsa,dsa,sm2的证书签发,加密解密,签名验签操作,支持国密加解密,证书签发
Stars: ✭ 44 (+69.23%)
Mutual labels:  sm2
KanjiMaru
Flashcard and Kanji writing Flutter App. Stopped working on this Project. Currently just a graveyard.
Stars: ✭ 26 (+0%)
Mutual labels:  sm2
hash-wasm
Lightning fast hash functions using hand-tuned WebAssembly binaries
Stars: ✭ 382 (+1369.23%)
Mutual labels:  sm3
ngx http hmac secure link module
HMAC Secure Link module for NGINX.
Stars: ✭ 47 (+80.77%)
Mutual labels:  sm3
pysm4
Python SM4
Stars: ✭ 82 (+215.38%)
Mutual labels:  sm4

cryptogm in golang

Go

An implementation of china crypto standards written in golang. This package includes sm2,sm3,sm4 and sm9 algorithms. Some algorithms have been optimized using AVX2 instructions.

Install

go get github.com/xlcetc/cryptogm

Benchmark

CPU: intel core i7-7700 @3.6GHz.

sm2

BenchmarkSign-8               	   	     19392 ns/op 
BenchmarkVerify-8             	   	     30326 ns/op 
BenchmarkSignWithDigest-8     	   	     16701 ns/op 
BenchmarkVerifyWithDigest-8   	   	     26742 ns/op 
BenchmarkSignWithASN1-8       	   	     21251 ns/op 
BenchmarkVerifyWithASN1-8     	   	     30390 ns/op 

sm3

BenchmarkHash8Bytes-8   	 220   ns/op	      36.44  MB/s
BenchmarkHash1K-8       	 2815  ns/op	      363.71 MB/s
BenchmarkHash8K-8       	 20422 ns/op	      401.13 MB/s

sm4

BenchmarkSm4Ecb8Bytes-8       	623   ns/op	  12.83  MB/s
BenchmarkSm4Ecb1K-8             10526 ns/op	  97.29  MB/s
BenchmarkSm4Ecb8K-8        	80692 ns/op	  101.52 MB/s
BenchmarkSm4Cbc8Bytes-8         664   ns/op	  12.05  MB/s
BenchmarkSm4Cbc1K-8             12299 ns/op	  83.26  MB/s
BenchmarkSm4Cbc8K-8             95395 ns/op	  85.87  MB/s

sm9

BenchmarkSign-8                      543           2187579 ns/op
BenchmarkVerify-8                    338           3599817 ns/op
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].