summaryrefslogtreecommitdiff
path: root/src/authAlgo.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-15 12:54:07 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-15 12:54:07 +0000
commitd49755d0a8d2131a43bac59644ce569834fcd944 (patch)
tree9f3e3bb1e910cf489481c36786280f1be0e225e5 /src/authAlgo.h
parentfixed build (diff)
typename refactoring
Diffstat (limited to 'src/authAlgo.h')
-rw-r--r--src/authAlgo.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/authAlgo.h b/src/authAlgo.h
index 5728426..3361ccf 100644
--- a/src/authAlgo.h
+++ b/src/authAlgo.h
@@ -55,13 +55,13 @@ public:
* generate the mac
* @param packet the packet to be authenticated
*/
- virtual void generate(KeyDerivation& kd, kd_dir dir, EncryptedPacket& packet) = 0;
+ virtual void generate(KeyDerivation& kd, kd_dir_t dir, EncryptedPacket& packet) = 0;
/**
* check the mac
* @param packet the packet to be authenticated
*/
- virtual bool checkTag(KeyDerivation& kd, kd_dir dir, EncryptedPacket& packet) = 0;
+ virtual bool checkTag(KeyDerivation& kd, kd_dir_t dir, EncryptedPacket& packet) = 0;
};
//****** NullAuthAlgo ******
@@ -69,8 +69,8 @@ public:
class NullAuthAlgo : public AuthAlgo
{
public:
- void generate(KeyDerivation& kd, kd_dir dir, EncryptedPacket& packet);
- bool checkTag(KeyDerivation& kd, kd_dir dir, EncryptedPacket& packet);
+ void generate(KeyDerivation& kd, kd_dir_t dir, EncryptedPacket& packet);
+ bool checkTag(KeyDerivation& kd, kd_dir_t dir, EncryptedPacket& packet);
};
#ifndef NOCRYPT
@@ -83,8 +83,8 @@ public:
Sha1AuthAlgo();
~Sha1AuthAlgo();
- void generate(KeyDerivation& kd, kd_dir dir, EncryptedPacket& packet);
- bool checkTag(KeyDerivation& kd, kd_dir dir, EncryptedPacket& packet);
+ void generate(KeyDerivation& kd, kd_dir_t dir, EncryptedPacket& packet);
+ bool checkTag(KeyDerivation& kd, kd_dir_t dir, EncryptedPacket& packet);
static const u_int32_t DIGEST_LENGTH = 20;