aboutsummaryrefslogtreecommitdiffstats
path: root/src/selftest
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-03-30 18:27:18 +0000
committerlloyd <[email protected]>2009-03-30 18:27:18 +0000
commit96d6eb6f29c55e16a37cf11899547886f735b065 (patch)
tree9f13901e9b44c98d58b2589c9b09c6a7443eb7cd /src/selftest
parent3cc3dd72c5f87b76852a55c1f2d1821dba967d8c (diff)
Thomas Moschny passed along a request from the Fedora packagers which came
up during the Fedora submission review, that each source file include some text about the license. One handy Perl script later and each file now has the line Distributed under the terms of the Botan license after the copyright notices. While I was in there modifying every file anyway, I also stripped out the remainder of the block comments (lots of astericks before and after the text); this is stylistic thing I picked up when I was first learning C++ but in retrospect it is not a good style as the structure makes it harder to modify comments (with the result that comments become fewer, shorter and are less likely to be updated, which are not good things).
Diffstat (limited to 'src/selftest')
-rw-r--r--src/selftest/selftest.cpp28
-rw-r--r--src/selftest/selftest.h16
2 files changed, 24 insertions, 20 deletions
diff --git a/src/selftest/selftest.cpp b/src/selftest/selftest.cpp
index 4222dc3c9..ea032b04e 100644
--- a/src/selftest/selftest.cpp
+++ b/src/selftest/selftest.cpp
@@ -1,7 +1,9 @@
-/*************************************************
-* Startup Self Tests Source File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
+/*
+* Startup Self Tests
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
#include <botan/selftest.h>
#include <botan/filters.h>
@@ -16,9 +18,9 @@ namespace Botan {
namespace {
-/*************************************************
-* Perform a Known Answer Test *
-*************************************************/
+/*
+* Perform a Known Answer Test
+*/
void do_kat(const std::string& in, const std::string& out,
const std::string& algo_name, Filter* filter)
{
@@ -32,9 +34,9 @@ void do_kat(const std::string& in, const std::string& out,
}
}
-/*************************************************
-* Perform a KAT for a cipher *
-*************************************************/
+/*
+* Perform a KAT for a cipher
+*/
void cipher_kat(const BlockCipher* proto,
const std::string& key_str,
const std::string& iv_str,
@@ -73,9 +75,9 @@ void cipher_kat(const BlockCipher* proto,
}
-/*************************************************
-* Perform Self Tests *
-*************************************************/
+/*
+* Perform Self Tests
+*/
bool passes_self_tests(Algorithm_Factory& af)
{
try
diff --git a/src/selftest/selftest.h b/src/selftest/selftest.h
index 673ece225..9e36d2298 100644
--- a/src/selftest/selftest.h
+++ b/src/selftest/selftest.h
@@ -1,7 +1,9 @@
-/*************************************************
-* Startup Self Test Header File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
+/*
+* Startup Self Test
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
#ifndef BOTAN_SELF_TESTS_H__
#define BOTAN_SELF_TESTS_H__
@@ -10,9 +12,9 @@
namespace Botan {
-/*************************************************
-* Self Tests *
-*************************************************/
+/*
+* Self Tests
+*/
BOTAN_DLL bool passes_self_tests(Algorithm_Factory& af);
}