From 3e3f79bc35d94fab81cb31e42d8699a7eee102a4 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 4 May 2012 06:48:22 +0000 Subject: Minor changes, mostly comments. --- src/experimental/blowfish.cpp | 7 +++++++ src/experimental/blowfish.h | 7 +++++++ src/experimental/cipher.cpp | 7 +++++++ src/experimental/cipher.h | 7 +++++++ src/experimental/random.cpp | 8 ++++++++ src/experimental/random.h | 8 ++++++++ src/experimental/randombase.cpp | 8 ++++++++ src/experimental/randombase.h | 8 ++++++++ src/experimental/randombasic.cpp | 15 +++++++++++++++ src/experimental/randombasic.h | 25 +++++++++++++++++++++++++ 10 files changed, 100 insertions(+) (limited to 'src/experimental') diff --git a/src/experimental/blowfish.cpp b/src/experimental/blowfish.cpp index 7ff8a4d..3da32a9 100644 --- a/src/experimental/blowfish.cpp +++ b/src/experimental/blowfish.cpp @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2007-2012 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + #include "bu/blowfish.h" template class Bu::CipherModeEcb<8, Bu::Blowfish<1> >; diff --git a/src/experimental/blowfish.h b/src/experimental/blowfish.h index 855ce2b..7e816ca 100644 --- a/src/experimental/blowfish.h +++ b/src/experimental/blowfish.h @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2007-2012 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + #ifndef BU_BLOWFISH_H #define BU_BLOWFISH_H diff --git a/src/experimental/cipher.cpp b/src/experimental/cipher.cpp index d6d01c7..e1ed0e5 100644 --- a/src/experimental/cipher.cpp +++ b/src/experimental/cipher.cpp @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2007-2012 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + #include "bu/cipher.h" diff --git a/src/experimental/cipher.h b/src/experimental/cipher.h index 6e1fa69..a17030d 100644 --- a/src/experimental/cipher.h +++ b/src/experimental/cipher.h @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2007-2012 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + #ifndef BU_CIPHER_H #define BU_CIPHER_H diff --git a/src/experimental/random.cpp b/src/experimental/random.cpp index e69de29..c792772 100644 --- a/src/experimental/random.cpp +++ b/src/experimental/random.cpp @@ -0,0 +1,8 @@ +/* + * Copyright (C) 2007-2012 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + + diff --git a/src/experimental/random.h b/src/experimental/random.h index e69de29..c792772 100644 --- a/src/experimental/random.h +++ b/src/experimental/random.h @@ -0,0 +1,8 @@ +/* + * Copyright (C) 2007-2012 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + + diff --git a/src/experimental/randombase.cpp b/src/experimental/randombase.cpp index e69de29..c792772 100644 --- a/src/experimental/randombase.cpp +++ b/src/experimental/randombase.cpp @@ -0,0 +1,8 @@ +/* + * Copyright (C) 2007-2012 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + + diff --git a/src/experimental/randombase.h b/src/experimental/randombase.h index e69de29..c792772 100644 --- a/src/experimental/randombase.h +++ b/src/experimental/randombase.h @@ -0,0 +1,8 @@ +/* + * Copyright (C) 2007-2012 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + + diff --git a/src/experimental/randombasic.cpp b/src/experimental/randombasic.cpp index e69de29..03bf7fe 100644 --- a/src/experimental/randombasic.cpp +++ b/src/experimental/randombasic.cpp @@ -0,0 +1,15 @@ +/* + * Copyright (C) 2007-2012 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + +#include "bu/randombasic.h" + +Bu::RandomBasic::RandomBasic() : + c( 6364136223846793005 ), + m( 1442695040888963407 ) +{ +} + diff --git a/src/experimental/randombasic.h b/src/experimental/randombasic.h index e69de29..2ba7bd3 100644 --- a/src/experimental/randombasic.h +++ b/src/experimental/randombasic.h @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2007-2012 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ +#ifndef BU_RANDOM_BASIC_H +#define BU_RANDOM_BASIC_H + +#include + +namespace Bu +{ + class RandomBasic + { + public: + RandomBasic(); + virtual ~RandomBasic(); + + private: + int64_t c, m, a; + }; +}; + +#endif -- cgit v1.2.3