func assignParameter(k *dsa.PrivateKey, s string, v *big.Int) bool { switch s { case "g": k.G = v case "p": k.P = v case "q": k.Q = v case "x": k.X = v case "y": k.Y = v default: return false } return true }