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

Method SignWithAlgorithm

ssh/keys.go:448–453  ·  view source on GitHub ↗
(rand io.Reader, data []byte, algorithm string)

Source from the content-addressed store, hash-verified

446}
447
448func (s *multiAlgorithmSigner) SignWithAlgorithm(rand io.Reader, data []byte, algorithm string) (*Signature, error) {
449 if !s.isAlgorithmSupported(algorithm) {
450 return nil, fmt.Errorf("ssh: algorithm %q is not supported: %v", algorithm, s.supportedAlgorithms)
451 }
452 return s.AlgorithmSigner.SignWithAlgorithm(rand, data, algorithm)
453}
454
455type rsaPublicKey rsa.PublicKey
456

Callers

nothing calls this directly

Calls 2

isAlgorithmSupportedMethod · 0.95
SignWithAlgorithmMethod · 0.65

Tested by

no test coverage detected