Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrEncodedSequenceTooLong = errors.New("Encoded sequence too long")
ErrEncodedSequenceTooLong indicates that size of string or bytes trying to encode too big
var ErrIncorrectEntryType = errors.New("Incorrect entry type")
ErrIncorrectEntryType indicates incorrect entry type addressing
var ErrIncorrectMagic = errors.New("Invalid keystore format")
ErrIncorrectMagic indicates incorrect file magic
var ErrIncorrectPrivateKey = errors.New("Invalid private key format")
ErrIncorrectPrivateKey indicates incorrect private key entry content
var ErrIncorrectTag = errors.New("Invalid keystore format")
ErrIncorrectTag indicates incorrect keystore entry tag
var ErrIncorrectVersion = errors.New("Invalid keystore format")
ErrIncorrectVersion indicates incorrect keystore version format
var ErrInvalidDigest = errors.New("Invalid digest")
ErrTemperedKeyStore indicates that keystore was tampered or password was incorrect
var ErrIo = errors.New("Invalid keystore format")
ErrIo indicates i/o error
var ErrUnrecoverablePrivateKey = errors.New("Unrecoverable private key")
ErrUnrecoverablePrivateKey indicates unrecoverable private key content (often means wrong password usage)
var ErrUnsupportedPrivateKeyAlgorithm = errors.New("Unsupported private key algorithm")
ErrUnsupportedPrivateKeyAlgorithm indicates unsupported private key algorithm
Functions ¶
Types ¶
type Certificate ¶
Certificate describes type of certificate
type KeyStore ¶
type KeyStore map[string]interface{}
KeyStore is a mapping of alias to pointer to PrivateKeyEntry or TrustedCertificateEntry
type PrivateKeyEntry ¶
type PrivateKeyEntry struct { Entry PrivKey []byte CertChain []Certificate }
PrivateKeyEntry is an entry for private keys and associated certificates
type TrustedCertificateEntry ¶
type TrustedCertificateEntry struct { Entry Certificate Certificate }
TrustedCertificateEntry is an entry for certificates only