aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/gnump/gmp_dh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/gnump/gmp_dh.cpp')
-rw-r--r--src/engine/gnump/gmp_dh.cpp28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/engine/gnump/gmp_dh.cpp b/src/engine/gnump/gmp_dh.cpp
index ef2732626..b33240268 100644
--- a/src/engine/gnump/gmp_dh.cpp
+++ b/src/engine/gnump/gmp_dh.cpp
@@ -1,7 +1,9 @@
-/*************************************************
-* GMP Engine Source File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
+/*
+* GMP Engine
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
#include <botan/eng_gmp.h>
#include <botan/gmp_wrap.h>
@@ -12,9 +14,9 @@ namespace Botan {
#if defined(BOTAN_HAS_DIFFIE_HELLMAN)
namespace {
-/*************************************************
-* GMP DH Operation *
-*************************************************/
+/*
+* GMP DH Operation
+*/
class GMP_DH_Op : public DH_Operation
{
public:
@@ -27,9 +29,9 @@ class GMP_DH_Op : public DH_Operation
GMP_MPZ x, p;
};
-/*************************************************
-* GMP DH Key Agreement Operation *
-*************************************************/
+/*
+* GMP DH Key Agreement Operation
+*/
BigInt GMP_DH_Op::agree(const BigInt& i_bn) const
{
GMP_MPZ i(i_bn);
@@ -39,9 +41,9 @@ BigInt GMP_DH_Op::agree(const BigInt& i_bn) const
}
-/*************************************************
-* Acquire a DH op *
-*************************************************/
+/*
+* Acquire a DH op
+*/
DH_Operation* GMP_Engine::dh_op(const DL_Group& group, const BigInt& x) const
{
return new GMP_DH_Op(group, x);