Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlgorithmIdentifier ¶
type AlgorithmIdentifier struct {
Algorithm asn1.ObjectIdentifier
Parameters asn1.RawValue `asn1:"optional"`
}
type AuthEnvelopedData ¶
type AuthEnvelopedData struct {
RecipientInfos []RecipientInfo
EncContentInfo EncryptedContentInfo
MAC []byte
AuthAttrs []byte
}
func ParseAuthEnvelopedData ¶
func ParseAuthEnvelopedData(der []byte) (*AuthEnvelopedData, error)
func (*AuthEnvelopedData) Decrypt ¶ added in v1.1.0
func (aed *AuthEnvelopedData) Decrypt(key crypto.PrivateKey) ([]byte, error)
func (*AuthEnvelopedData) DecryptWithKEK ¶
func (aed *AuthEnvelopedData) DecryptWithKEK(kek []byte, kekID []byte) ([]byte, error)
type EncryptedContentInfo ¶
type EncryptedContentInfo struct {
ContentType asn1.ObjectIdentifier
ContentEncAlgo AlgorithmIdentifier
EncryptedContent []byte `asn1:"optional,tag:0,implicit"`
}
type KEKRecipientInfo ¶
type KEKRecipientInfo struct {
Version int
KEKID asn1.RawValue
KeyEncryptionAlgo AlgorithmIdentifier
EncryptedKey []byte
}
type KeyAgreeRecipientInfo ¶ added in v1.1.0
type KeyAgreeRecipientInfo struct {
Version int
KeyEncryptionAlgo AlgorithmIdentifier
OriginatorPubKeyAlgo asn1.ObjectIdentifier
OriginatorPubKey []byte
EncryptedKey []byte
}
type KeyTransRecipientInfo ¶
type KeyTransRecipientInfo struct {
Version int
RID asn1.RawValue
KeyEncryptionAlgo AlgorithmIdentifier
EncryptedKey []byte
}
type RecipientInfo ¶
type RecipientInfo struct {
Raw asn1.RawValue
KTRI *KeyTransRecipientInfo
KEKRI *KEKRecipientInfo
KARI *KeyAgreeRecipientInfo
}
func (*RecipientInfo) IsKARI ¶ added in v1.1.0
func (ri *RecipientInfo) IsKARI() bool
func (*RecipientInfo) IsKEK ¶
func (ri *RecipientInfo) IsKEK() bool
func (*RecipientInfo) IsKeyTrans ¶
func (ri *RecipientInfo) IsKeyTrans() bool
Click to show internal directories.
Click to hide internal directories.