Documentation ¶
Overview ¶
Package cryptoinfo is designed to examine keys and certificates on disk, and return information about them. It is designed to work with dataflatten, and may eventually it may replace pkg/keyidentifier
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyInfo ¶
type KeyInfo struct { Type kiType Encoding kiEncoding Data interface{} DataName kiDataNames Error error Headers map[string]string }
func Identify ¶
Identify examines a []byte and attempts to descern what cryptographic material is contained within.
func NewCaCertificate ¶
func NewCaCertificate(encoding kiEncoding) *KeyInfo
func NewCertificate ¶
func NewCertificate(encoding kiEncoding) *KeyInfo
func (*KeyInfo) MarshalJSON ¶
MarshalJSON is used by the go json marshaller. Using a custom one here allows us a high degree of control over the resulting output. For example, it allows us to use the same struct here to encapsulate both keys and certificate, and still have somewhat differenciated output
func (*KeyInfo) SetDataName ¶
Click to show internal directories.
Click to hide internal directories.