MCPcopy Index your code
hub / github.com/golang/crypto / SignWithAlgorithm

Method SignWithAlgorithm

ssh/keys.go:383–383  ·  view source on GitHub ↗

SignWithAlgorithm is like Signer.Sign, but allows specifying a desired signing algorithm. Callers may pass an empty string for the algorithm in which case the AlgorithmSigner will use a default algorithm. This default doesn't currently control any behavior in this package.

(rand io.Reader, data []byte, algorithm string)

Source from the content-addressed store, hash-verified

381 // which case the AlgorithmSigner will use a default algorithm. This default
382 // doesn't currently control any behavior in this package.
383 SignWithAlgorithm(rand io.Reader, data []byte, algorithm string) (*Signature, error)
384}
385
386// MultiAlgorithmSigner is an AlgorithmSigner that also reports the algorithms

Callers 12

signAndMarshalFunction · 0.65
SignWithAlgorithmMethod · 0.65
SignWithAlgorithmMethod · 0.65
authMethod · 0.65
SignWithAlgorithmMethod · 0.65
SignCertMethod · 0.65
authMethod · 0.65
SignMethod · 0.65
SignWithFlagsMethod · 0.65

Implementers 7

dsaPrivateKeyssh/keys.go
wrappedSignerssh/keys.go
loggingAlgorithmSignerssh/client_auth_test.go
algorithmSignerWrapperssh/handshake.go
agentKeyringSignerssh/agent/client.go

Calls

no outgoing calls

Tested by 6

SignWithAlgorithmMethod · 0.52
authMethod · 0.52
SignMethod · 0.52