MCPcopy Index your code
hub / github.com/SSLMate/go-pkcs12

github.com/SSLMate/go-pkcs12 @v0.7.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.7.3 ↗ · + Follow
134 symbols 444 edges 16 files 44 documented · 33% 39 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

package pkcs12

Documentation

import "software.sslmate.com/src/go-pkcs12"

Package pkcs12 implements some of PKCS#12 (also known as P12 or PFX). It is intended for decoding DER-encoded P12/PFX files for use with the crypto/tls package, and for encoding P12/PFX files for use by legacy applications which do not support newer formats. Since PKCS#12 uses weak encryption primitives, it SHOULD NOT be used for new applications.

Note that only DER-encoded PKCS#12 files are supported, even though PKCS#12 allows BER encoding. This is because encoding/asn1 only supports DER.

This package is forked from golang.org/x/crypto/pkcs12, which is frozen. The implementation is distilled from https://tools.ietf.org/html/rfc7292 and referenced documents.

Import Path

Note that although the source code and issue tracker for this package are hosted on GitHub, the import path is:

software.sslmate.com/src/go-pkcs12

Please be sure to use this path when you go get and import this package.

Report Issues / Send Patches

Open an issue or PR at https://github.com/SSLMate/go-pkcs12

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Error
called by 32
errors.go
bmpStringZeroTerminated
called by 25
bmp-string.go
rotl16
called by 24
internal/rc2/rc2.go
unmarshal
called by 16
pkcs12.go
pbkdf
called by 10
pbkdf.go
getSafeContents
called by 9
pkcs12.go
verifyMac
called by 7
mac.go
doMac
called by 6
mac.go

Shape

Function 73
Method 36
Struct 21
Interface 3
TypeAlias 1

Languages

Go100%

Modules by API surface

pkcs12.go34 symbols
crypto.go32 symbols
crypto_test.go12 symbols
pkcs12_pbmac1_test.go8 symbols
mac.go8 symbols
internal/rc2/rc2.go7 symbols
pkcs12_test.go6 symbols
mac_test.go6 symbols
safebags.go5 symbols
pbkdf.go5 symbols
bmp-string.go3 symbols
pbkdf_test.go2 symbols

For agents

$ claude mcp add go-pkcs12 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact