gm-crypto

module
v0.0.0-...-79bcb5b Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0

README

#gm-crypto go语言国密密码库,实现了数据签名/验签、数据哈希、对称加密、非对称加密、x509证书管理、以及国密tls通信的功能。

License

Hyperledger Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file.

Feature 功能支持列表

SM2功能 支持范围
Generate KeyPair
Sign
Verify
PEM格式导出 私钥/公钥/证书
PEM格式导入 私钥/公钥/证书
PEM文件加密 RFC5958
SM4功能 支持范围
Generate Key
Encrypt, Decrypt
PEM格式导出
PEM文件加密 golang: x509.EncryptPEMBlock
分组模式 ECB/CBC
SM3功能 支持范围
当前语言Hash接口兼容

Directories

Path Synopsis
Package elliptic implements several standard elliptic curves over prime fields.
Package elliptic implements several standard elliptic curves over prime fields.
Package sm3 implements china crypto standards.
Package sm3 implements china crypto standards.
tls
Package tls partially implements TLS 1.2, as specified in RFC 5246.
Package tls partially implements TLS 1.2, as specified in RFC 5246.
credentials
Package credentials implements various credentials supported by gRPC library, which encapsulate all the state needed by a client to authenticate with a server and make various assertions, e.g., about the client's identity, role, or whether it is authorized to make a particular call.
Package credentials implements various credentials supported by gRPC library, which encapsulate all the state needed by a client to authenticate with a server and make various assertions, e.g., about the client's identity, role, or whether it is authorized to make a particular call.
credentials/echo
Package echo is a generated protocol buffer package.
Package echo is a generated protocol buffer package.
Package x509 parses X.509-encoded keys and certificates.
Package x509 parses X.509-encoded keys and certificates.

Jump to

Keyboard shortcuts

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