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
| 374 | // implements MultiAlgorithmSigner, so it should be prepared to be invoked with |
| 375 | // every algorithm supported by the public key format. |
| 376 | type 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…