xml2_dsig

package
v0.0.0-...-bf18145 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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 CanonicalizationMethodType

type CanonicalizationMethodType struct {
	XMLName   xml.Name `xml:"ds:CanonicalizationMethod"`
	Algorithm string   `xml:"Algorithm,attr"`
}

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 DigestMethodType struct {
	XMLName   xml.Name `xml:"ds:DigestMethod"`
	Algorithm string   `xml:"Algorithm,attr"`
}

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 ObjectType struct {
	XMLName  xml.Name `xml:"ds:Object"`
	Id       string   `xml:"Id,attr,omitempty"`
	MimeType string   `xml:"MimeType,attr,omitempty"`
	Encoding string   `xml:"Encoding,attr,omitempty"`
}

type PGPDataType

type PGPDataType struct {
	XMLName      xml.Name `xml:"ds:PGPData"`
	PGPKeyID     string   `xml:"PGPKeyID"`
	PGPKeyPacket string   `xml:"PGPKeyPacket"`
}

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 SPKIDataType struct {
	XMLName  xml.Name `xml:"ds:SPKIData"`
	SPKISexp string   `xml:",any"`
}

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 SignaturePropertyType struct {
	XMLName xml.Name `xml:"ds:SignatureProperty"`
	Target  string   `xml:"Target,attr"`
	Id      string   `xml:"Id,attr,omitempty"`
}

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 SignatureValueType struct {
	XMLName xml.Name `xml:"ds:SignatureValue"`
	Id      string   `xml:"Id,attr,omitempty"`
	Text    string   `xml:",chardata"`
}

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 TransformType struct {
	XMLName   xml.Name `xml:"ds:Transform"`
	Algorithm string   `xml:"Algorithm,attr"`
	XPath     []string `xml:"XPath"`
}

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"`
}

type X509IssuerSerialType

type X509IssuerSerialType struct {
	XMLName          xml.Name `xml:"ds:X509IssuerSerial"`
	X509IssuerName   string   `xml:"ds:X509IssuerName"`
	X509SerialNumber int64    `xml:"ds:X509SerialNumber"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL