summaryrefslogtreecommitdiff
path: root/go/diffie-hellman/diffie_hellman.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/diffie-hellman/diffie_hellman.go')
-rw-r--r--go/diffie-hellman/diffie_hellman.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/go/diffie-hellman/diffie_hellman.go b/go/diffie-hellman/diffie_hellman.go
new file mode 100644
index 0000000..27d810e
--- /dev/null
+++ b/go/diffie-hellman/diffie_hellman.go
@@ -0,0 +1,19 @@
+package diffiehellman
+
+import "math/big"
+
+func PrivateKey(p *big.Int) (priv *big.Int) {
+ return new(big.Int)
+}
+
+func PublicKey(a, p *big.Int, g int64) (pub *big.Int) {
+ return new(big.Int)
+}
+
+func SecretKey(a, B, p *big.Int) (s *big.Int) {
+ return new(big.Int)
+}
+
+func NewPair(p *big.Int, g int64) (a, A *big.Int) {
+ return new(big.Int), new(big.Int)
+}