(bits int)
| 505 | } |
| 506 | |
| 507 | func GenerateKey(bits int) (*rsa.PrivateKey, *rsa.PublicKey, error) { |
| 508 | private, err := rsa.GenerateKey(rand.Reader, bits) |
| 509 | if err != nil { |
| 510 | return nil, nil, err |
| 511 | } |
| 512 | return private, &private.PublicKey, nil |
| 513 | } |
no outgoing calls