Sign returns the SHA-256 hash of the input.
(m []byte)
| 21 | |
| 22 | // Sign returns the SHA-256 hash of the input. |
| 23 | func (e *MockSigningAlgorithm) Sign(m []byte) ([]byte, error) { |
| 24 | h := sha256.Sum256(m) |
| 25 | return h[:], nil |
| 26 | } |
| 27 | |
| 28 | type ecdsaSigningAlgorithm struct { |
| 29 | privKey *ecdsa.PrivateKey |
nothing calls this directly
no outgoing calls
no test coverage detected