Documentation
¶
Index ¶
- Constants
- type CanonicalizationMethodType
- type CryptoBinary
- type DSAKeyValueType
- type DigestMethodType
- type DigestValueType
- type HMACOutputLengthType
- type KeyInfoType
- type KeyValueType
- type ManifestType
- type ObjectType
- type PGPDataType
- type RSAKeyValueType
- type ReferenceType
- type RetrievalMethodType
- type SPKIDataType
- type SignatureMethodType
- type SignaturePropertiesType
- type SignaturePropertyType
- type SignatureType
- type SignatureValueType
- type SignedInfoType
- type TransformType
- type TransformsType
- type X509DataType
- type X509IssuerSerialType
Constants ¶
View Source
const ( DigestMethodSHA256 = "http://www.w3.org/2001/04/xmlenc#sha256" DigestMethodSHA1 = "http://www.w3.org/2000/09/xmldsig#sha1" DigestMethodSHA512 = "http://www.w3.org/2001/04/xmlenc#sha512" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptoBinary ¶
type CryptoBinary string
type DSAKeyValueType ¶
type DSAKeyValueType struct {
XMLName xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# DSAKeyValue"`
G *CryptoBinary `xml:"G"`
Y CryptoBinary `xml:"Y"`
J *CryptoBinary `xml:"J"`
}
type DigestMethodType ¶
type DigestValueType ¶
type DigestValueType string
type HMACOutputLengthType ¶
type HMACOutputLengthType int64
type KeyInfoType ¶
type KeyInfoType struct {
XMLName xml.Name
Id string `xml:"Id,attr,omitempty"`
KeyName []string `xml:"KeyName"`
KeyValue []KeyValueType `xml:"KeyValue"`
RetrievalMethod []RetrievalMethodType `xml:"RetrievalMethod"`
X509Data []X509DataType `xml:"X509Data"`
PGPData []PGPDataType `xml:"PGPData"`
SPKIData []SPKIDataType `xml:"SPKIData"`
MgmtData []string `xml:"MgmtData"`
}
type KeyValueType ¶
type KeyValueType struct {
XMLName xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# KeyValue"`
DSAKeyValue *DSAKeyValueType `xml:"DSAKeyValue"`
RSAKeyValue *RSAKeyValueType `xml:"RSAKeyValue"`
}
type ManifestType ¶
type ManifestType struct {
XMLName xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# Manifest"`
Id string `xml:"Id,attr,omitempty"`
Reference []ReferenceType `xml:",any"`
}
type ObjectType ¶
type PGPDataType ¶
type RSAKeyValueType ¶
type RSAKeyValueType struct {
XMLName xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# RSAKeyValue"`
Modulus CryptoBinary `xml:"Modulus"`
Exponent CryptoBinary `xml:"Exponent"`
}
type ReferenceType ¶
type ReferenceType struct {
XMLName xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# Reference"`
Id string `xml:"Id,attr,omitempty"`
URI string `xml:"URI,attr,omitempty"`
Type string `xml:"Type,attr,omitempty"`
Transforms *TransformsType `xml:"Transforms"`
DigestMethod DigestMethodType `xml:"DigestMethod"`
DigestValue DigestValueType `xml:"http://www.w3.org/2000/09/xmldsig# DigestValue"`
}
type RetrievalMethodType ¶
type RetrievalMethodType struct {
XMLName xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# RetrievalMethod"`
URI string `xml:"URI,attr"`
Type string `xml:"Type,attr,omitempty"`
Transforms *TransformsType `xml:",any"`
}
type SPKIDataType ¶
type SignatureMethodType ¶
type SignatureMethodType struct {
XMLName xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# SignatureMethod"`
Algorithm string `xml:"Algorithm,attr"`
HMACOutputLength *HMACOutputLengthType `xml:",any"`
}
type SignaturePropertiesType ¶
type SignaturePropertiesType struct {
XMLName xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# SignatureProperties"`
Id string `xml:"Id,attr,omitempty"`
SignatureProperty []SignaturePropertyType `xml:",any"`
}
type SignaturePropertyType ¶
type SignatureType ¶
type SignatureType struct {
XMLName xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# Signature"`
Id string `xml:"Id,attr,omitempty"`
SignedInfo SignedInfoType `xml:"SignedInfo"`
SignatureValue SignatureValueType `xml:"SignatureValue"`
KeyInfo *KeyInfoType `xml:"http://www.w3.org/2000/09/xmldsig# KeyInfo"`
Object []ObjectType `xml:"Object"`
}
type SignatureValueType ¶
type SignedInfoType ¶
type SignedInfoType struct {
XMLName xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# SignedInfo"`
Id string `xml:"Id,attr,omitempty"`
CanonicalizationMethod CanonicalizationMethodType `xml:"CanonicalizationMethod"`
SignatureMethod SignatureMethodType `xml:"SignatureMethod"`
Reference []ReferenceType `xml:"Reference"`
}
type TransformType ¶
type TransformsType ¶
type TransformsType struct {
XMLName xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# Transforms"`
Transform []TransformType `xml:",any"`
}
type X509DataType ¶
type X509DataType struct {
XMLName xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# X509Data"`
X509IssuerSerial *X509IssuerSerialType `xml:"X509IssuerSerial"`
X509SKI string `xml:"X509SKI,omitempty"`
X509SubjectName string `xml:"X509SubjectName,omitempty"`
X509Certificate string `xml:"http://www.w3.org/2000/09/xmldsig# X509Certificate"`
X509CRL string `xml:"X509CRL,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.