diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-05-04 06:48:22 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-05-04 06:48:22 +0000 |
commit | 3e3f79bc35d94fab81cb31e42d8699a7eee102a4 (patch) | |
tree | 76da6b219f97f14d6d941fca21805ac8efa8ee1e /src | |
parent | 0214b67982bfbba8184057f8423bd69b50c6dd3f (diff) | |
download | libbu++-3e3f79bc35d94fab81cb31e42d8699a7eee102a4.tar.gz libbu++-3e3f79bc35d94fab81cb31e42d8699a7eee102a4.tar.bz2 libbu++-3e3f79bc35d94fab81cb31e42d8699a7eee102a4.tar.xz libbu++-3e3f79bc35d94fab81cb31e42d8699a7eee102a4.zip |
Minor changes, mostly comments.
Diffstat (limited to 'src')
-rw-r--r-- | src/experimental/blowfish.cpp | 7 | ||||
-rw-r--r-- | src/experimental/blowfish.h | 7 | ||||
-rw-r--r-- | src/experimental/cipher.cpp | 7 | ||||
-rw-r--r-- | src/experimental/cipher.h | 7 | ||||
-rw-r--r-- | src/experimental/random.cpp | 8 | ||||
-rw-r--r-- | src/experimental/random.h | 8 | ||||
-rw-r--r-- | src/experimental/randombase.cpp | 8 | ||||
-rw-r--r-- | src/experimental/randombase.h | 8 | ||||
-rw-r--r-- | src/experimental/randombasic.cpp | 15 | ||||
-rw-r--r-- | src/experimental/randombasic.h | 25 | ||||
-rw-r--r-- | src/tests/blowfish.cpp | 8 |
11 files changed, 108 insertions, 0 deletions
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 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libbu++ library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
1 | #include "bu/blowfish.h" | 8 | #include "bu/blowfish.h" |
2 | 9 | ||
3 | template class Bu::CipherModeEcb<8, Bu::Blowfish<1> >; | 10 | 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 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libbu++ library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
1 | #ifndef BU_BLOWFISH_H | 8 | #ifndef BU_BLOWFISH_H |
2 | #define BU_BLOWFISH_H | 9 | #define BU_BLOWFISH_H |
3 | 10 | ||
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 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libbu++ library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
1 | #include "bu/cipher.h" | 8 | #include "bu/cipher.h" |
2 | 9 | ||
3 | 10 | ||
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 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libbu++ library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
1 | #ifndef BU_CIPHER_H | 8 | #ifndef BU_CIPHER_H |
2 | #define BU_CIPHER_H | 9 | #define BU_CIPHER_H |
3 | 10 | ||
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 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libbu++ library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
8 | |||
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 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libbu++ library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
8 | |||
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 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libbu++ library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
8 | |||
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 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libbu++ library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
8 | |||
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 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libbu++ library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
8 | #include "bu/randombasic.h" | ||
9 | |||
10 | Bu::RandomBasic::RandomBasic() : | ||
11 | c( 6364136223846793005 ), | ||
12 | m( 1442695040888963407 ) | ||
13 | { | ||
14 | } | ||
15 | |||
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 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libbu++ library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | #ifndef BU_RANDOM_BASIC_H | ||
8 | #define BU_RANDOM_BASIC_H | ||
9 | |||
10 | #include <stdint.h> | ||
11 | |||
12 | namespace Bu | ||
13 | { | ||
14 | class RandomBasic | ||
15 | { | ||
16 | public: | ||
17 | RandomBasic(); | ||
18 | virtual ~RandomBasic(); | ||
19 | |||
20 | private: | ||
21 | int64_t c, m, a; | ||
22 | }; | ||
23 | }; | ||
24 | |||
25 | #endif | ||
diff --git a/src/tests/blowfish.cpp b/src/tests/blowfish.cpp index 89183e4..7c175d4 100644 --- a/src/tests/blowfish.cpp +++ b/src/tests/blowfish.cpp | |||
@@ -1,3 +1,11 @@ | |||
1 | // vim: syntax=cpp | ||
2 | /* | ||
3 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
4 | * | ||
5 | * This file is part of the libbu++ library and is released under the | ||
6 | * terms of the license contained in the file LICENSE. | ||
7 | */ | ||
8 | |||
1 | #include <bu/blowfish.h> | 9 | #include <bu/blowfish.h> |
2 | #include <bu/file.h> | 10 | #include <bu/file.h> |
3 | #include <bu/membuf.h> | 11 | #include <bu/membuf.h> |