Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SignDataSha1 ¶
Sign the data with SHA-1 hash algorithm as defined in RFC 3174.
Types ¶
type AlgorithmIdentifier ¶
type AlgorithmIdentifier struct {
ID asn1.ObjectIdentifier
}
type IssuerAndSerialNumber ¶
type SignedData ¶
type SignedData struct {
Version version
DigestAlgorithms digestAlgorithmIdentifiers `asn1:"set"`
ContentInfo contentInfo //data oid: 1.2.840.113549.1.7.1
Certificate asn1.RawValue `asn1:"optional,explicit,tag:0"`
SignerInfos signerInfos `asn1:"set"`
}
why the field Certificate is not Certificates(set) ? process Certificate in functions Ignore crls(CertificateRevocationLists), hsh 2017.11.15
type SignedDataObject ¶
type SignedDataObject struct {
ID asn1.ObjectIdentifier //signedData oid: 1.2.840.113549.1.7.2
SignedData SignedData `asn1:"explicit,tag:0"`
}
func ParseSignedDataObjectSha1 ¶
func ParseSignedDataObjectSha1(derBytes []byte, hashed []byte) (sd SignedDataObject, err error)
func ParseSignedDataObjectSha256 ¶
func ParseSignedDataObjectSha256(derBytes []byte, hashed []byte) (sd SignedDataObject, err error)
Click to show internal directories.
Click to hide internal directories.