crypto

module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2026 License: Apache-2.0

README

crypto

加解密库

子包

包 说明
aes AES 加解密(CBC、ECB、GCM 等)
des DES / 3DES 加解密
sm2 国密 SM2 椭圆曲线公钥密码算法(GB/T 32918),签名验签 + 公钥加解密
sm3 国密 SM3 杂凑算法(GB/T 32905-2016),实现 hash.Hash
sm4 国密 SM4 分组密码算法(GB/T 32907-2016),实现 cipher.Block,含 ECB/CBC 模式
xpem PEM 编解码
xrsa RSA 加解密、签名验签

国密三件套(sm2/sm3/sm4)零外部依赖,仅使用 Go 标准库,并通过国标附录标准数据 与跨实现已知答案(KAT)单测校验。

Directories

Path Synopsis
Package sm2 实现国密 SM2 椭圆曲线公钥密码算法(GB/T 32918 系列)。
Package sm2 实现国密 SM2 椭圆曲线公钥密码算法(GB/T 32918 系列)。
Package sm3 实现国密 SM3 密码杂凑算法(GB/T 32905-2016)。
Package sm3 实现国密 SM3 密码杂凑算法(GB/T 32905-2016)。
Package sm4 实现国密 SM4 分组密码算法(GB/T 32907-2016)。
Package sm4 实现国密 SM4 分组密码算法(GB/T 32907-2016)。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL