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

Interface AlgorithmSigner

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

An AlgorithmSigner is a Signer that also supports specifying an algorithm to use for signing. An AlgorithmSigner can't advertise the algorithms it supports, unless it also implements MultiAlgorithmSigner, so it should be prepared to be invoked with every algorithm supported by the public key format

Source from the content-addressed store, hash-verified

374// implements MultiAlgorithmSigner, so it should be prepared to be invoked with
375// every algorithm supported by the public key format.
376type AlgorithmSigner interface {
377 Signer
378
379 // SignWithAlgorithm is like Signer.Sign, but allows specifying a desired
380 // signing algorithm. Callers may pass an empty string for the algorithm in
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
387// supported by that signer.

Callers 8

signAndMarshalFunction · 0.65
SignWithAlgorithmMethod · 0.65
SignWithAlgorithmMethod · 0.65
authMethod · 0.65
SignWithAlgorithmMethod · 0.65
SignCertMethod · 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

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…