Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attribute ¶
type Attribute struct { Type asn1.ObjectIdentifier Value asn1.RawValue `asn1:"set"` }
Attribute asn.1 CMS RFC5652
type Attributes ¶
type Attributes struct {
// contains filtered or unexported fields
}
func (*Attributes) Add ¶
func (attrs *Attributes) Add(attrType asn1.ObjectIdentifier, value interface{})
Add adds the attribute, maintaining insertion order
func (*Attributes) ForMarshalling ¶
func (attrs *Attributes) ForMarshalling() ([]Attribute, error)
type Container ¶
type Container struct { Version int `asn1:"default:1"` IssuerAndSerialNumber IssuerAndSerial DigestAlgorithm pkix.AlgorithmIdentifier AuthenticatedAttributes []Attribute `asn1:"optional,omitempty,tag:0"` DigestEncryptionAlgorithm pkix.AlgorithmIdentifier EncryptedDigest []byte UnauthenticatedAttributes []Attribute `asn1:"optional,tag:1"` }
Container asn.1 CMS struct RFC5652
func (*Container) SetUnauthenticatedAttributes ¶
Click to show internal directories.
Click to hide internal directories.