Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/russellhaering/goxmldsig
/ functions
Functions
140 in github.com/russellhaering/goxmldsig
⨍
Functions
140
◇
Types & classes
35
↓ 13 callers
Method
Copy
()
etreeutils/namespace.go:83
↓ 11 callers
Function
runCanonicalizationTest
(t *testing.T, canonicalizer Canonicalizer, xmlstr string, canonicalXmlstr string)
canonicalize_test.go:25
↓ 10 callers
Function
NewDefaultValidationContext
(certificateStore X509CertificateStore)
validate.go:33
↓ 8 callers
Function
MakeC14N10ExclusiveCanonicalizerWithPrefixList
MakeC14N10ExclusiveCanonicalizerWithPrefixList constructs an exclusive Canonicalizer from a PrefixList in NMTOKENS format (a white space separated lis
canonicalize.go:39
↓ 8 callers
Function
MakeC14N11Canonicalizer
MakeC14N11Canonicalizer constructs an inclusive canonicalizer.
canonicalize.go:77
↓ 8 callers
Function
NewDefaultNSContext
()
etreeutils/namespace.go:21
↓ 8 callers
Method
SubContext
(el *etree.Element)
etreeutils/namespace.go:109
↓ 7 callers
Method
Canonicalize
(el *etree.Element)
canonicalize.go:13
↓ 7 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:568
↓ 6 callers
Function
RandomKeyStoreForTest
()
keystore.go:40
↓ 6 callers
Function
canonicalSerialize
(el *etree.Element)
canonicalize.go:218
↓ 5 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:200
↓ 4 callers
Method
Error
()
etreeutils/namespace.go:46
↓ 4 callers
Function
MakeC14N10RecCanonicalizer
MakeC14N10RecCanonicalizer constructs an inclusive canonicalizer.
canonicalize.go:107
↓ 4 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:418
↓ 4 callers
Method
SignEnveloped
(el *etree.Element)
sign.go:293
↓ 4 callers
Method
UnderlyingElement
()
etreeutils/unmarshal.go:42
↓ 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:162
↓ 3 callers
Method
CheckLimit
CheckLimit checks the traversal limit before calling the handler function
etreeutils/namespace.go:56
↓ 3 callers
Method
GetKeyPair
()
keystore.go:12
↓ 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:155
↓ 3 callers
Function
MakeC14N10ExclusiveWithCommentsCanonicalizerWithPrefixList
MakeC14N10ExclusiveWithCommentsCanonicalizerWithPrefixList constructs an exclusive Canonicalizer from a PrefixList in NMTOKENS format (a white space s
canonicalize.go:48
↓ 3 callers
Function
MakeC14N11WithCommentsCanonicalizer
MakeC14N11WithCommentsCanonicalizer constructs an inclusive canonicalizer.
canonicalize.go:84
↓ 3 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:436
↓ 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:305
↓ 3 callers
Function
NewFakeClockAt
(t time.Time)
clock.go:51
↓ 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
Function
TransformExcC14n
TransformExcC14n transforms the passed element into xml-exc-c14n form.
etreeutils/canonicalize.go:11
↓ 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:404
↓ 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
Function
MakeC14N10WithCommentsCanonicalizer
MakeC14N10WithCommentsCanonicalizer constructs an inclusive canonicalizer.
canonicalize.go:114
↓ 2 callers
Function
MakeNullCanonicalizer
()
canonicalize.go:20
↓ 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:383
↓ 2 callers
Function
NSFindIterate
NSFindIterate behaves identically to NSFindIterateCtx, but uses DefaultNSContext as the surrounding context.
etreeutils/namespace.go:294
↓ 2 callers
Function
NSTraverse
NSTraverse traverses an element tree, invoking the passed handler for each element in the tree.
etreeutils/namespace.go:171
↓ 2 callers
Function
NewDefaultSigningContext
(ks X509KeyStore)
sign.go:34
↓ 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
Method
createNamespacedElement
(el *etree.Element, tag string)
sign.go:287
↓ 2 callers
Method
declare
(prefix, namespace string)
etreeutils/namespace.go:90
↓ 2 callers
Method
getPublicKeyAlgorithm
()
sign.go:65
↓ 2 callers
Function
mapPathToElement
(tree, el *etree.Element)
validate.go:63
↓ 2 callers
Function
removeElementAtPath
(el *etree.Element, path []int)
validate.go:82
↓ 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:108
↓ 1 callers
Method
After
(d time.Duration)
clock.go:27
↓ 1 callers
Method
Algorithm
()
canonicalize.go:14
↓ 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
NSFindOne
NSFindOne behaves identically to NSFindOneCtx, but uses DefaultNSContext for context.
etreeutils/namespace.go:334
↓ 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:340
↓ 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:357
↓ 1 callers
Function
NSSelectOne
NSSelectOne behaves identically to NSSelectOneCtx, but uses DefaultNSContext as the surrounding context.
etreeutils/namespace.go:264
↓ 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:272
↓ 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
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:166
↓ 1 callers
Method
checkSubtreeLimit
(el *etree.Element)
etreeutils/namespace.go:65
↓ 1 callers
Function
childPath
(space, tag string)
validate.go:55
↓ 1 callers
Method
constructSignedInfo
(el *etree.Element, enveloped bool)
sign.go:151
↓ 1 callers
Function
enhanceNamespaceAttributes
(el *etree.Element, parentNamespaces map[string]string, parentXmlAttributes map[string]string)
canonicalize.go:259
↓ 1 callers
Method
getCanonicalSignedInfo
(sig *types.Signature)
validate.go:194
↓ 1 callers
Method
getCerts
()
sign.go:134
↓ 1 callers
Function
getParentNamespaceAndXmlAttributes
(el *etree.Element)
canonicalize.go:231
↓ 1 callers
Function
nestedElement
nestedElement builds the tree directly rather than parsing it, so that the depth under test stays independent of etree's ReadSettings.MaxDepth.
etreeutils/namespace_test.go:12
↓ 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:388
↓ 1 callers
Method
validateSignature
(el *etree.Element, sig *types.Signature, cert *x509.Certificate)
validate.go:257
↓ 1 callers
Method
verifyCertificate
(sig *types.Signature)
validate.go:508
Method
Algorithm
()
canonicalize.go:24
Method
Algorithm
()
canonicalize.go:65
Method
Algorithm
()
canonicalize.go:95
Method
Algorithm
()
canonicalize.go:128
Method
Canonicalize
(el *etree.Element)
canonicalize.go:28
Method
Canonicalize
Canonicalize transforms the input Element into a serialized XML document in canonical form.
canonicalize.go:56
Method
Canonicalize
Canonicalize transforms the input Element into a serialized XML document in canonical form.
canonicalize.go:91
Method
Canonicalize
Canonicalize transforms the input Element into a serialized XML document in canonical form.
canonicalize.go:121
Method
Certificates
()
keystore.go:27
Function
FuzzCanonicalize
(f *testing.F)
fuzz_test.go:45
Function
FuzzNSTraverse
(f *testing.F)
etreeutils/fuzz_test.go:9
Function
FuzzSignRoundTrip
(f *testing.F)
fuzz_test.go:81
Function
FuzzTransformExcC14n
(f *testing.F)
etreeutils/fuzz_test.go:44
Function
FuzzValidateWithCert
(f *testing.F)
fuzz_test.go:152
Function
FuzzValidateXML
(f *testing.F)
fuzz_test.go:15
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:412
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:145
next →
1–100 of 140, ranked by callers