Categorygithub.com/fullsailor/pkcs7
modulepackage
0.0.0-20190404230743-d7302db945fa
Repository: https://github.com/fullsailor/pkcs7.git
Documentation: pkg.go.dev

# README

pkcs7

GoDoc Build Status

pkcs7 implements parsing and creating signed and enveloped messages.

# Functions

DegenerateCertificate creates a signed data structure containing only the provided certificate or certificate chain.
Encrypt creates and returns an envelope data PKCS7 structure with encrypted recipient keys for each recipient public key.
NewSignedData initializes a SignedData with content.
Parse decodes a DER encoded PKCS7 package.

# Constants

No description provided by the author
No description provided by the author

# Variables

ContentEncryptionAlgorithm determines the algorithm used to encrypt the plaintext message.
ErrNotEncryptedContent is returned when attempting to Decrypt data that is not encrypted data.
ErrUnsupportedAlgorithm tells you when our quick dev assumptions have failed.
ErrUnsupportedContentType is returned when a PKCS7 content is not supported.
ErrUnsupportedEncryptionAlgorithm is returned when attempting to encrypt content with an unsupported algorithm.

# Structs

Attribute represents a key value pair attribute.
MessageDigestMismatchError is returned when the signer data digest does not match the computed digest for the contained content.
PKCS7 Represents a PKCS7 structure.
SignedData is an opaque data structure for creating signed data payloads.
SignerInfoConfig are optional values to include when adding a signer.