(rand io.Reader, data []byte, algorithm string)
| 446 | } |
| 447 | |
| 448 | func (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 | |
| 455 | type rsaPublicKey rsa.PublicKey |
| 456 |
nothing calls this directly
no test coverage detected