Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/russellhaering/goxmldsig
/ functions
Functions
130 in github.com/russellhaering/goxmldsig
⨍
Functions
130
◇
Types & classes
35
↓ 11 callers
Function
runCanonicalizationTest
(t *testing.T, canonicalizer Canonicalizer, xmlstr string, canonicalXmlstr string)
canonicalize_test.go:25
↓ 10 callers
Method
Copy
()
etreeutils/namespace.go:64
↓ 8 callers
Method
SubContext
(el *etree.Element)
etreeutils/namespace.go:92
↓ 7 callers
Function
MakeC14N10ExclusiveCanonicalizerWithPrefixList
MakeC14N10ExclusiveCanonicalizerWithPrefixList constructs an exclusive Canonicalizer from a PrefixList in NMTOKENS format (a white space separated lis
canonicalize.go:38
↓ 7 callers
Function
MakeC14N11Canonicalizer
MakeC14N11Canonicalizer constructs an inclusive canonicalizer.
canonicalize.go:76
↓ 7 callers
Function
NewDefaultValidationContext
(certificateStore X509CertificateStore)
validate.go:32
↓ 6 callers
Function
NewDefaultNSContext
()
etreeutils/namespace.go:20
↓ 5 callers
Method
Canonicalize
(el *etree.Element)
canonicalize.go:12
↓ 5 callers
Function
RandomKeyStoreForTest
()
keystore.go:40
↓ 5 callers
Function
canonicalSerialize
(el *etree.Element)
canonicalize.go:219
↓ 4 callers
Method
Error
()
etreeutils/namespace.go:45
↓ 4 callers
Function
NSDetatch
NSDetatch makes a copy of the passed element, and declares any namespaces in the passed context onto the new element before returning it.
etreeutils/namespace.go:185
↓ 4 callers
Method
Validate
Validate verifies that the passed element contains a valid enveloped signature matching a currently-valid certificate in the context's CertificateStor
validate.go:469
↓ 4 callers
Function
canonicalPrep
canonicalPrep accepts an *etree.Element and transforms it into one which is ready for serialization into inclusive canonical form. Specifically this e
canonicalize.go:161
↓ 3 callers
Method
LookupPrefix
LookupPrefix attempts to find a declared namespace for the specified prefix. If the prefix is an empty string this will be the default namespace for t
etreeutils/namespace.go:140
↓ 3 callers
Function
MakeC14N10RecCanonicalizer
MakeC14N10RecCanonicalizer constructs an inclusive canonicalizer.
canonicalize.go:106
↓ 3 callers
Function
NSFindIterateCtx
NSFindIterateCtx conducts a depth-first traversal searching for elements with the specified tag in the specified namespace. It uses the passed NSConte
etreeutils/namespace.go:285
↓ 3 callers
Function
NSFindOneChildCtx
NSFindOneCtx conducts a depth-first search for the specified element. If such an element is found a reference to it is returned.
etreeutils/namespace.go:398
↓ 3 callers
Function
NewSigningContext
NewSigningContext creates a new signing context with the given signer and certificate chain. Note that e.g. rsa.PrivateKey implements the crypto.Signe
sign.go:49
↓ 3 callers
Method
SignEnveloped
(el *etree.Element)
sign.go:293
↓ 3 callers
Method
UnderlyingElement
()
etreeutils/unmarshal.go:42
↓ 3 callers
Method
digest
(el *etree.Element)
sign.go:96
↓ 3 callers
Method
findSignature
findSignature searches for a Signature element referencing the passed root element.
validate.go:316
↓ 3 callers
Method
getWrapped
()
clock.go:19
↓ 3 callers
Function
testSignWithContext
(t *testing.T, ctx *SigningContext, sigMethodID string, digestAlgo crypto.Hash)
sign_test.go:26
↓ 2 callers
Method
CheckLimit
CheckLimit checks the traversal limit before calling the handler function
etreeutils/namespace.go:55
↓ 2 callers
Method
GetKeyPair
()
keystore.go:12
↓ 2 callers
Function
MakeC14N10ExclusiveWithCommentsCanonicalizerWithPrefixList
MakeC14N10ExclusiveWithCommentsCanonicalizerWithPrefixList constructs an exclusive Canonicalizer from a PrefixList in NMTOKENS format (a white space s
canonicalize.go:47
↓ 2 callers
Function
MakeC14N11WithCommentsCanonicalizer
MakeC14N11WithCommentsCanonicalizer constructs an inclusive canonicalizer.
canonicalize.go:83
↓ 2 callers
Function
NSBuildParentContext
NSBuildParentContext recurses upward from an element in order to build an NSContext for its immediate parent. If the element has no parent DefaultNSCo
etreeutils/namespace.go:416
↓ 2 callers
Function
NSFindChildrenIterateCtx
NSFindIterateChildrenCtx takes an element and its surrounding context, and iterates the children of that element searching for an element matching the
etreeutils/namespace.go:363
↓ 2 callers
Method
Now
()
clock.go:35
↓ 2 callers
Method
SetSignatureMethod
(algorithmID string)
sign.go:80
↓ 2 callers
Method
String
()
xml_constants.go:40
↓ 2 callers
Function
TransformExcC14n
TransformExcC14n transforms the passed element into xml-exc-c14n form.
etreeutils/canonicalize.go:11
↓ 2 callers
Method
createNamespacedElement
(el *etree.Element, tag string)
sign.go:287
↓ 2 callers
Method
declare
(prefix, namespace string)
etreeutils/namespace.go:73
↓ 2 callers
Method
getPublicKeyAlgorithm
()
sign.go:65
↓ 2 callers
Function
mapPathToElement
(tree, el *etree.Element)
validate.go:62
↓ 2 callers
Function
removeElementAtPath
(el *etree.Element, path []int)
validate.go:81
↓ 2 callers
Method
signDigest
(digest []byte)
sign.go:111
↓ 2 callers
Function
testValidateDoc
(t *testing.T, doc *etree.Document, certPEM string)
validate_test.go:243
↓ 2 callers
Method
transform
Transform returns a new element equivalent to the passed root el, but with the set of transformations described by the ref applied. The functionality
validate.go:107
↓ 1 callers
Method
After
(d time.Duration)
clock.go:27
↓ 1 callers
Method
Algorithm
()
canonicalize.go:13
↓ 1 callers
Method
Certificates
()
keystore.go:20
↓ 1 callers
Method
ConstructSignature
(el *etree.Element, enveloped bool)
sign.go:210
↓ 1 callers
Method
GetChain
()
keystore.go:16
↓ 1 callers
Method
GetDigestAlgorithmIdentifier
()
sign.go:314
↓ 1 callers
Method
GetSignatureMethodIdentifier
()
sign.go:305
↓ 1 callers
Function
MakeC14N10WithCommentsCanonicalizer
MakeC14N10WithCommentsCanonicalizer constructs an inclusive canonicalizer.
canonicalize.go:113
↓ 1 callers
Function
MakeNullCanonicalizer
()
canonicalize.go:19
↓ 1 callers
Function
NSFindIterate
NSFindIterate behaves identically to NSFindIterateCtx, but uses DefaultNSContext as the surrounding context.
etreeutils/namespace.go:274
↓ 1 callers
Function
NSFindOne
NSFindOne behaves identically to NSFindOneCtx, but uses DefaultNSContext for context.
etreeutils/namespace.go:314
↓ 1 callers
Function
NSFindOneCtx
NSFindOneCtx conducts a depth-first search for the specified element. If such an element is found a reference to it is returned.
etreeutils/namespace.go:320
↓ 1 callers
Function
NSIterateChildren
NSIterateChildren iterates the children of an element, invoking the passed handler with each direct child of the element, and the context surrounding
etreeutils/namespace.go:337
↓ 1 callers
Function
NSSelectOneCtx
NSSelectOneCtx conducts a depth-first search for an element with the specified namespace and tag. If such an element is found, a new *etree.Element is
etreeutils/namespace.go:252
↓ 1 callers
Function
NSTraverse
NSTraverse traverses an element tree, invoking the passed handler for each element in the tree.
etreeutils/namespace.go:156
↓ 1 callers
Function
NSUnmarshalElement
NSUnmarshalElement unmarshals the passed etree Element into the value pointed to by v using encoding/xml in the context of the passed NSContext. If v
etreeutils/unmarshal.go:12
↓ 1 callers
Function
NewDefaultSigningContext
(ks X509KeyStore)
sign.go:34
↓ 1 callers
Function
NewFakeClockAt
(t time.Time)
clock.go:51
↓ 1 callers
Method
SetUnderlyingElement
(*etree.Element)
etreeutils/unmarshal.go:41
↓ 1 callers
Function
canonicalPrepInner
(el *etree.Element, seenSoFar map[string]string, strip bool, comments bool)
canonicalize.go:165
↓ 1 callers
Function
childPath
(space, tag string)
validate.go:54
↓ 1 callers
Method
constructSignedInfo
(el *etree.Element, enveloped bool)
sign.go:151
↓ 1 callers
Function
contains
(roots []*x509.Certificate, cert *x509.Certificate)
validate.go:287
↓ 1 callers
Method
digest
(el *etree.Element, digestAlgorithmId string, canonicalizer Canonicalizer)
validate.go:172
↓ 1 callers
Function
enhanceNamespaceAttributes
(el *etree.Element, parentNamespaces map[string]string, parentXmlAttributes map[string]string)
canonicalize.go:260
↓ 1 callers
Method
getCerts
()
sign.go:134
↓ 1 callers
Function
getParentNamespaceAndXmlAttributes
(el *etree.Element)
canonicalize.go:232
↓ 1 callers
Function
transformExcC14n
(ctx, declared NSContext, el *etree.Element, inclusiveNamespaces map[string]struct{}, comments bool)
etreeutils/canonicalize.go:28
↓ 1 callers
Function
validateShape
In most places, we use etree Elements, but while deserializing the Signature, we use encoding/xml unmarshal directly to convert to a convenient go str
validate.go:300
↓ 1 callers
Method
validateSignature
(el *etree.Element, sig *types.Signature, cert *x509.Certificate)
validate.go:228
↓ 1 callers
Method
verifyCertificate
(sig *types.Signature)
validate.go:420
↓ 1 callers
Method
verifySignedInfo
(sig *types.Signature, canonicalizer Canonicalizer, signatureMethodId string, cert *x509.Certificate, decodedS
validate.go:192
Method
Algorithm
()
canonicalize.go:23
Method
Algorithm
()
canonicalize.go:64
Method
Algorithm
()
canonicalize.go:94
Method
Algorithm
()
canonicalize.go:127
Method
Canonicalize
(el *etree.Element)
canonicalize.go:27
Method
Canonicalize
Canonicalize transforms the input Element into a serialized XML document in canonical form.
canonicalize.go:55
Method
Canonicalize
Canonicalize transforms the input Element into a serialized XML document in canonical form.
canonicalize.go:90
Method
Canonicalize
Canonicalize transforms the input Element into a serialized XML document in canonical form.
canonicalize.go:120
Method
Certificates
()
keystore.go:27
Method
GetChain
GetChain impliments X509ChainStore using the underlying tls.Certificate
tls_keystore.go:37
Method
GetKeyPair
GetKeyPair implements X509KeyStore using the underlying tls.Certificate
tls_keystore.go:20
Method
GetKeyPair
()
keystore.go:36
Method
Len
()
etreeutils/sort.go:9
Method
Less
(i, j int)
etreeutils/sort.go:17
Function
NSFindOneChild
NSFindOneChild behaves identically to NSFindOneChildCtx, but uses DefaultNSContext for context.
etreeutils/namespace.go:392
Function
NSSelectOne
NSSelectOne behaves identically to NSSelectOneCtx, but uses DefaultNSContext as the surrounding context.
etreeutils/namespace.go:244
Function
NewFakeClock
(wrapped clockwork.Clock)
clock.go:45
Function
NewRealClock
()
clock.go:39
Method
Prefixes
Prefixes returns a copy of this context's prefix map.
etreeutils/namespace.go:128
Method
SetUnderlyingElement
SetUnderlyingElement will be called with a reference to the Element this Signature was unmarshaled from.
types/signature.go:85
Method
SignString
Useful for signing query string (including DEFLATED AuthnRequest) when using HTTP-Redirect to make a signed request. See 3.4.4.1 DEFLATE Encoding of h
sign.go:324
Method
Sleep
(d time.Duration)
clock.go:31
Method
Swap
(i, j int)
etreeutils/sort.go:13
Function
TestC14N10RecCanonicalizer
(t *testing.T)
canonicalize_test.go:85
Function
TestC14N10RecCanonicalizerWithNamespaceInheritance
(t *testing.T)
canonicalize_test.go:123
next →
1–100 of 130, ranked by callers