func newPrivateKey(size int) (*rsa.PrivateKey, error) {
	// TODO: support more key types
	privateKey, err := rsa.GenerateKey(rand.Reader, size)
	if err != nil {
		return nil, err
	}
	return privateKey, nil
}
// generate a new private key
generate a new private key
// generate a new private key
func newPrivateKey(size int) (*rsa.PrivateKey, error) {
	privateKey, err := rsa.GenerateKey(rand.Reader, size)
	if err != nil {
		return nil, err
	}
	return privateKey, nil
}
func newPrivateKey ( size int ) ( * rsa . PrivateKey , error ) { privateKey , err := rsa . GenerateKey ( rand . Reader , size ) if err != nil { return nil , err } return privateKey , nil }
generate a new private key
generate a new private key
// TODO: support more key types