StandardKeyGenerator is the standard, in-memory key source that uses crypto/rand.
| 331 | // StandardKeyGenerator is the standard, in-memory key source |
| 332 | // that uses crypto/rand. |
| 333 | type StandardKeyGenerator struct { |
| 334 | // The type of keys to generate. |
| 335 | KeyType KeyType |
| 336 | } |
| 337 | |
| 338 | // GenerateKey generates a new private key according to kg.KeyType. |
| 339 | func (kg StandardKeyGenerator) GenerateKey() (crypto.PrivateKey, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected