MCPcopy Create free account

hub / github.com/russellhaering/goxmldsig / functions

Functions140 in github.com/russellhaering/goxmldsig

↓ 13 callersMethodCopy
()
etreeutils/namespace.go:83
↓ 11 callersFunctionrunCanonicalizationTest
(t *testing.T, canonicalizer Canonicalizer, xmlstr string, canonicalXmlstr string)
canonicalize_test.go:25
↓ 10 callersFunctionNewDefaultValidationContext
(certificateStore X509CertificateStore)
validate.go:33
↓ 8 callersFunctionMakeC14N10ExclusiveCanonicalizerWithPrefixList
MakeC14N10ExclusiveCanonicalizerWithPrefixList constructs an exclusive Canonicalizer from a PrefixList in NMTOKENS format (a white space separated lis
canonicalize.go:39
↓ 8 callersFunctionMakeC14N11Canonicalizer
MakeC14N11Canonicalizer constructs an inclusive canonicalizer.
canonicalize.go:77
↓ 8 callersFunctionNewDefaultNSContext
()
etreeutils/namespace.go:21
↓ 8 callersMethodSubContext
(el *etree.Element)
etreeutils/namespace.go:109
↓ 7 callersMethodCanonicalize
(el *etree.Element)
canonicalize.go:13
↓ 7 callersMethodValidate
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 callersFunctionRandomKeyStoreForTest
()
keystore.go:40
↓ 6 callersFunctioncanonicalSerialize
(el *etree.Element)
canonicalize.go:218
↓ 5 callersFunctionNSDetatch
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 callersMethodError
()
etreeutils/namespace.go:46
↓ 4 callersFunctionMakeC14N10RecCanonicalizer
MakeC14N10RecCanonicalizer constructs an inclusive canonicalizer.
canonicalize.go:107
↓ 4 callersFunctionNSFindOneChildCtx
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 callersMethodSignEnveloped
(el *etree.Element)
sign.go:293
↓ 4 callersMethodUnderlyingElement
()
etreeutils/unmarshal.go:42
↓ 4 callersFunctioncanonicalPrep
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 callersMethodCheckLimit
CheckLimit checks the traversal limit before calling the handler function
etreeutils/namespace.go:56
↓ 3 callersMethodGetKeyPair
()
keystore.go:12
↓ 3 callersMethodLookupPrefix
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 callersFunctionMakeC14N10ExclusiveWithCommentsCanonicalizerWithPrefixList
MakeC14N10ExclusiveWithCommentsCanonicalizerWithPrefixList constructs an exclusive Canonicalizer from a PrefixList in NMTOKENS format (a white space s
canonicalize.go:48
↓ 3 callersFunctionMakeC14N11WithCommentsCanonicalizer
MakeC14N11WithCommentsCanonicalizer constructs an inclusive canonicalizer.
canonicalize.go:84
↓ 3 callersFunctionNSBuildParentContext
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 callersFunctionNSFindIterateCtx
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 callersFunctionNewFakeClockAt
(t time.Time)
clock.go:51
↓ 3 callersFunctionNewSigningContext
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 callersFunctionTransformExcC14n
TransformExcC14n transforms the passed element into xml-exc-c14n form.
etreeutils/canonicalize.go:11
↓ 3 callersMethoddigest
(el *etree.Element)
sign.go:96
↓ 3 callersMethodfindSignature
findSignature searches for a Signature element referencing the passed root element.
validate.go:404
↓ 3 callersMethodgetWrapped
()
clock.go:19
↓ 3 callersFunctiontestSignWithContext
(t *testing.T, ctx *SigningContext, sigMethodID string, digestAlgo crypto.Hash)
sign_test.go:26
↓ 2 callersFunctionMakeC14N10WithCommentsCanonicalizer
MakeC14N10WithCommentsCanonicalizer constructs an inclusive canonicalizer.
canonicalize.go:114
↓ 2 callersFunctionMakeNullCanonicalizer
()
canonicalize.go:20
↓ 2 callersFunctionNSFindChildrenIterateCtx
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 callersFunctionNSFindIterate
NSFindIterate behaves identically to NSFindIterateCtx, but uses DefaultNSContext as the surrounding context.
etreeutils/namespace.go:294
↓ 2 callersFunctionNSTraverse
NSTraverse traverses an element tree, invoking the passed handler for each element in the tree.
etreeutils/namespace.go:171
↓ 2 callersFunctionNewDefaultSigningContext
(ks X509KeyStore)
sign.go:34
↓ 2 callersMethodNow
()
clock.go:35
↓ 2 callersMethodSetSignatureMethod
(algorithmID string)
sign.go:80
↓ 2 callersMethodString
()
xml_constants.go:40
↓ 2 callersMethodcreateNamespacedElement
(el *etree.Element, tag string)
sign.go:287
↓ 2 callersMethoddeclare
(prefix, namespace string)
etreeutils/namespace.go:90
↓ 2 callersMethodgetPublicKeyAlgorithm
()
sign.go:65
↓ 2 callersFunctionmapPathToElement
(tree, el *etree.Element)
validate.go:63
↓ 2 callersFunctionremoveElementAtPath
(el *etree.Element, path []int)
validate.go:82
↓ 2 callersMethodsignDigest
(digest []byte)
sign.go:111
↓ 2 callersFunctiontestValidateDoc
(t *testing.T, doc *etree.Document, certPEM string)
validate_test.go:243
↓ 2 callersMethodtransform
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 callersMethodAfter
(d time.Duration)
clock.go:27
↓ 1 callersMethodAlgorithm
()
canonicalize.go:14
↓ 1 callersMethodCertificates
()
keystore.go:20
↓ 1 callersMethodConstructSignature
(el *etree.Element, enveloped bool)
sign.go:210
↓ 1 callersMethodGetChain
()
keystore.go:16
↓ 1 callersMethodGetDigestAlgorithmIdentifier
()
sign.go:314
↓ 1 callersMethodGetSignatureMethodIdentifier
()
sign.go:305
↓ 1 callersFunctionNSFindOne
NSFindOne behaves identically to NSFindOneCtx, but uses DefaultNSContext for context.
etreeutils/namespace.go:334
↓ 1 callersFunctionNSFindOneCtx
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 callersFunctionNSIterateChildren
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 callersFunctionNSSelectOne
NSSelectOne behaves identically to NSSelectOneCtx, but uses DefaultNSContext as the surrounding context.
etreeutils/namespace.go:264
↓ 1 callersFunctionNSSelectOneCtx
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 callersFunctionNSUnmarshalElement
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 callersMethodSetUnderlyingElement
(*etree.Element)
etreeutils/unmarshal.go:41
↓ 1 callersFunctioncanonicalPrepInner
(el *etree.Element, seenSoFar map[string]string, strip bool, comments bool)
canonicalize.go:166
↓ 1 callersMethodcheckSubtreeLimit
(el *etree.Element)
etreeutils/namespace.go:65
↓ 1 callersFunctionchildPath
(space, tag string)
validate.go:55
↓ 1 callersMethodconstructSignedInfo
(el *etree.Element, enveloped bool)
sign.go:151
↓ 1 callersFunctionenhanceNamespaceAttributes
(el *etree.Element, parentNamespaces map[string]string, parentXmlAttributes map[string]string)
canonicalize.go:259
↓ 1 callersMethodgetCanonicalSignedInfo
(sig *types.Signature)
validate.go:194
↓ 1 callersMethodgetCerts
()
sign.go:134
↓ 1 callersFunctiongetParentNamespaceAndXmlAttributes
(el *etree.Element)
canonicalize.go:231
↓ 1 callersFunctionnestedElement
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 callersFunctiontransformExcC14n
(ctx, declared NSContext, el *etree.Element, inclusiveNamespaces map[string]struct{}, comments bool)
etreeutils/canonicalize.go:28
↓ 1 callersFunctionvalidateShape
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 callersMethodvalidateSignature
(el *etree.Element, sig *types.Signature, cert *x509.Certificate)
validate.go:257
↓ 1 callersMethodverifyCertificate
(sig *types.Signature)
validate.go:508
MethodAlgorithm
()
canonicalize.go:24
MethodAlgorithm
()
canonicalize.go:65
MethodAlgorithm
()
canonicalize.go:95
MethodAlgorithm
()
canonicalize.go:128
MethodCanonicalize
(el *etree.Element)
canonicalize.go:28
MethodCanonicalize
Canonicalize transforms the input Element into a serialized XML document in canonical form.
canonicalize.go:56
MethodCanonicalize
Canonicalize transforms the input Element into a serialized XML document in canonical form.
canonicalize.go:91
MethodCanonicalize
Canonicalize transforms the input Element into a serialized XML document in canonical form.
canonicalize.go:121
MethodCertificates
()
keystore.go:27
FunctionFuzzCanonicalize
(f *testing.F)
fuzz_test.go:45
FunctionFuzzNSTraverse
(f *testing.F)
etreeutils/fuzz_test.go:9
FunctionFuzzSignRoundTrip
(f *testing.F)
fuzz_test.go:81
FunctionFuzzTransformExcC14n
(f *testing.F)
etreeutils/fuzz_test.go:44
FunctionFuzzValidateWithCert
(f *testing.F)
fuzz_test.go:152
FunctionFuzzValidateXML
(f *testing.F)
fuzz_test.go:15
MethodGetChain
GetChain impliments X509ChainStore using the underlying tls.Certificate
tls_keystore.go:37
MethodGetKeyPair
GetKeyPair implements X509KeyStore using the underlying tls.Certificate
tls_keystore.go:20
MethodGetKeyPair
()
keystore.go:36
MethodLen
()
etreeutils/sort.go:9
MethodLess
(i, j int)
etreeutils/sort.go:17
FunctionNSFindOneChild
NSFindOneChild behaves identically to NSFindOneChildCtx, but uses DefaultNSContext for context.
etreeutils/namespace.go:412
FunctionNewFakeClock
(wrapped clockwork.Clock)
clock.go:45
FunctionNewRealClock
()
clock.go:39
MethodPrefixes
Prefixes returns a copy of this context's prefix map.
etreeutils/namespace.go:145
next →1–100 of 140, ranked by callers