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:"ds: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:"ds:KeyName"` KeyValue []KeyValueType `xml:"ds:KeyValue"` RetrievalMethod []RetrievalMethodType `xml:"ds:RetrievalMethod"` X509Data []X509DataType `xml:"ds:X509Data"` PGPData []PGPDataType `xml:"ds:PGPData"` SPKIData []SPKIDataType `xml:"ds:SPKIData"` MgmtData []string `xml:"ds:MgmtData"` }
type KeyValueType ¶
type KeyValueType struct { XMLName xml.Name `xml:"ds:KeyValue"` DSAKeyValue *DSAKeyValueType `xml:"ds:DSAKeyValue"` RSAKeyValue *RSAKeyValueType `xml:"ds:RSAKeyValue"` }
type ManifestType ¶
type ManifestType struct { XMLName xml.Name `xml:"Manifest"` Id string `xml:"Id,attr,omitempty"` Reference []ReferenceType `xml:",any"` }
type ObjectType ¶
type PGPDataType ¶
type RSAKeyValueType ¶
type RSAKeyValueType struct { XMLName xml.Name `xml:"ds:RSAKeyValue"` Modulus CryptoBinary `xml:"ds:Modulus"` Exponent CryptoBinary `xml:"ds:Exponent"` }
type ReferenceType ¶
type ReferenceType struct { XMLName xml.Name `xml:"ds:Reference"` Id string `xml:"Id,attr,omitempty"` URI string `xml:"URI,attr,omitempty"` Type string `xml:"Type,attr,omitempty"` Transforms *TransformsType `xml:"ds:Transforms"` DigestMethod DigestMethodType `xml:"ds:DigestMethod"` DigestValue DigestValueType `xml:"ds:DigestValue"` }
type RetrievalMethodType ¶
type RetrievalMethodType struct { XMLName xml.Name `xml:"ds: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:"ds:SignatureMethod"` Algorithm string `xml:"Algorithm,attr"` HMACOutputLength *HMACOutputLengthType `xml:",any"` }
type SignaturePropertiesType ¶
type SignaturePropertiesType struct { XMLName xml.Name `xml:"ds:SignatureProperties"` Id string `xml:"Id,attr,omitempty"` SignatureProperty []SignaturePropertyType `xml:",any"` }
type SignaturePropertyType ¶
type SignatureType ¶
type SignatureType struct { XMLName xml.Name `xml:"ds:Signature"` Ds string `xml:"xmlns:ds,attr"` Id string `xml:"Id,attr,omitempty"` SignedInfo SignedInfoType `xml:"ds:SignedInfo"` SignatureValue SignatureValueType `xml:"ds:SignatureValue"` KeyInfo *KeyInfoType `xml:"ds:KeyInfo"` Object []ObjectType `xml:"ds:Object"` }
type SignatureValueType ¶
type SignedInfoType ¶
type SignedInfoType struct { XMLName xml.Name `xml:"ds:SignedInfo"` Id string `xml:"Id,attr,omitempty"` CanonicalizationMethod CanonicalizationMethodType `xml:"ds:CanonicalizationMethod"` SignatureMethod SignatureMethodType `xml:"ds:SignatureMethod"` Reference []ReferenceType `xml:"ds:Reference"` }
type TransformType ¶
type TransformsType ¶
type TransformsType struct { XMLName xml.Name `xml:"ds:Transforms"` Transform []TransformType `xml:",any"` }
type X509DataType ¶
type X509DataType struct { XMLName xml.Name `xml:"ds:X509Data"` X509IssuerSerial *X509IssuerSerialType `xml:"ds:X509IssuerSerial"` X509SKI string `xml:"ds:X509SKI,omitempty"` X509SubjectName string `xml:"ds:X509SubjectName,omitempty"` X509Certificate string `xml:"ds:X509Certificate"` X509CRL string `xml:"ds:X509CRL,omitempty"` }
Click to show internal directories.
Click to hide internal directories.