xml_dsig

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 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:"http://www.w3.org/2000/09/xmldsig# CanonicalizationMethod"`
	Algorithm string   `xml:"Algorithm,attr"`
}

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 DigestMethodType struct {
	XMLName   xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# 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:"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 ObjectType struct {
	XMLName  xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# 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:"http://www.w3.org/2000/09/xmldsig# PGPData"`
	PGPKeyID     string   `xml:"PGPKeyID"`
	PGPKeyPacket string   `xml:"PGPKeyPacket"`
}

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 SPKIDataType struct {
	XMLName  xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# SPKIData"`
	SPKISexp string   `xml:",any"`
}

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 SignaturePropertyType struct {
	XMLName xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# SignatureProperty"`
	Target  string   `xml:"Target,attr"`
	Id      string   `xml:"Id,attr,omitempty"`
}

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 SignatureValueType struct {
	XMLName xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# SignatureValue"`
	Id      string   `xml:"Id,attr,omitempty"`
	Text    string   `xml:",chardata"`
}

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 TransformType struct {
	XMLName   xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# Transform"`
	Algorithm string   `xml:"Algorithm,attr"`
	XPath     []string `xml:"XPath"`
}

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

type X509IssuerSerialType

type X509IssuerSerialType struct {
	XMLName          xml.Name `xml:"http://www.w3.org/2000/09/xmldsig# X509IssuerSerial"`
	X509IssuerName   string   `xml:"X509IssuerName"`
	X509SerialNumber int64    `xml:"X509SerialNumber"`
}

Jump to

Keyboard shortcuts

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