summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-11-12 13:30:23 +0100
committerDimitri Sokolyuk <demon@dim13.org>2017-11-12 13:30:23 +0100
commitc6a5a0fa9edbe26c7305a7e0f3a45814f77da53a (patch)
tree46e9f2f16763b432511fb09765f7d2fef7ddb3a2
parent4b662dda79dc59f5255cd447c4ac2192536d489d (diff)
Better names
-rw-r--r--go/diffie-hellman/diffie_hellman.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/go/diffie-hellman/diffie_hellman.go b/go/diffie-hellman/diffie_hellman.go
index 29f7c72..715e200 100644
--- a/go/diffie-hellman/diffie_hellman.go
+++ b/go/diffie-hellman/diffie_hellman.go
@@ -20,7 +20,7 @@ func SecretKey(a, B, p *big.Int) *big.Int {
}
func NewPair(p *big.Int, g int64) (*big.Int, *big.Int) {
- a := PrivateKey(p)
- A := PublicKey(a, p, g)
- return a, A
+ priv := PrivateKey(p)
+ pub := PublicKey(priv, p, g)
+ return priv, pub
}