Registry / crypto / gunnsth-pkcs7

gunnsth-pkcs7

JSON →
library0.0.0-20181213175627-3cffc6fbfe83gogounverified

Implements parsing and generation of PKCS#7 cryptographic message syntax structures.

go get github.com/gunnsth/pkcs7
INSTALL
IMPORT
SIG · GUNNSTH-PKCS7
G
gunnsth-pkcs7
cryptogov0.0.0-20181213175627-3cffc6fbfe83
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pkcs7
github.com/gunnsth/pkcs7

Parses a PKCS#7 signed data structure.

package main import ( "crypto/x509" "encoding/pem" "log" "github.com/gunnsth/pkcs7" ) func main() { // Example: parsing a PKCS7 signed data certPEM := []byte("-----BEGIN CERTIFICATE-----\n...") block, _ := pem.Decode(certPEM) cert, err := x509.ParseCertificate(block.Bytes) if err != nil { log.Fatal(err) } pkcs7Data := []byte("...") parsed, err := pkcs7.Parse(pkcs7Data) if err != nil { log.Fatal(err) } log.Printf("Parsed PKCS7: %+v", parsed) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20181213175627-3cffc6fbfe83latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
gunnsth-pkcs7 — go get gunnsth-pkcs7 · libregistry