aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/serpent_ia32
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/serpent_ia32')
-rw-r--r--src/block/serpent_ia32/serp_ia32.cpp28
-rw-r--r--src/block/serpent_ia32/serp_ia32.h16
2 files changed, 24 insertions, 20 deletions
diff --git a/src/block/serpent_ia32/serp_ia32.cpp b/src/block/serpent_ia32/serp_ia32.cpp
index ec7574799..37dd4e637 100644
--- a/src/block/serpent_ia32/serp_ia32.cpp
+++ b/src/block/serpent_ia32/serp_ia32.cpp
@@ -1,7 +1,9 @@
-/*************************************************
-* IA-32 Serpent Source File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
+/*
+* IA-32 Serpent
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
#include <botan/serp_ia32.h>
#include <botan/loadstor.h>
@@ -16,25 +18,25 @@ void botan_serpent_ia32_key_schedule(u32bit[140]);
}
-/*************************************************
-* Serpent Encryption *
-*************************************************/
+/*
+* Serpent Encryption
+*/
void Serpent_IA32::enc(const byte in[], byte out[]) const
{
botan_serpent_ia32_encrypt(in, out, round_key);
}
-/*************************************************
-* Serpent Decryption *
-*************************************************/
+/*
+* Serpent Decryption
+*/
void Serpent_IA32::dec(const byte in[], byte out[]) const
{
botan_serpent_ia32_decrypt(in, out, round_key);
}
-/*************************************************
-* Serpent Key Schedule *
-*************************************************/
+/*
+* Serpent Key Schedule
+*/
void Serpent_IA32::key_schedule(const byte key[], u32bit length)
{
SecureBuffer<u32bit, 140> W;
diff --git a/src/block/serpent_ia32/serp_ia32.h b/src/block/serpent_ia32/serp_ia32.h
index 4afa6a305..565e9889d 100644
--- a/src/block/serpent_ia32/serp_ia32.h
+++ b/src/block/serpent_ia32/serp_ia32.h
@@ -1,7 +1,9 @@
-/*************************************************
-* Serpent (IA-32) Header File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
+/*
+* Serpent (IA-32)
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
#ifndef BOTAN_SERPENT_IA32_H__
#define BOTAN_SERPENT_IA32_H__
@@ -10,9 +12,9 @@
namespace Botan {
-/*************************************************
-* Serpent *
-*************************************************/
+/*
+* Serpent
+*/
class BOTAN_DLL Serpent_IA32 : public Serpent
{
public: