pkcs7

package
v1.0.2039 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// 添加签名数据
	NewSignedData = sign.NewSignedData

	// DegenerateCertificate
	DegenerateCertificate = sign.DegenerateCertificate

	// 加密
	Encrypt = encrypt.Encrypt

	// 加密
	EncryptUsingPSK = encrypt.EncryptUsingPSK

	// 解密
	Decrypt = encrypt.Decrypt

	// 解密
	DecryptUsingPSK = encrypt.DecryptUsingPSK
)

Functions

func EncodePkcs7ToPem

func EncodePkcs7ToPem(data []byte, pemType string) []byte

编码到 pem pemType = [PKCS7 | ENCRYPTED PKCS7]

func ParsePkcs7Pem

func ParsePkcs7Pem(data []byte) ([]byte, error)

解析 pkcs7 pem 数据

Types

type SignerInfoConfig

type SignerInfoConfig = sign.SignerInfoConfig

额外信息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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