diff options
author | lloyd <[email protected]> | 2009-12-31 03:43:02 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-12-31 03:43:02 +0000 |
commit | 811fed1957f284456e1455032f729e74c4fed458 (patch) | |
tree | a0cfed4f7ff52149db0ff091f8670351fadeea29 /doc/examples/hasher2.cpp | |
parent | cf6319e4e663f4214a0f9e1509087a58a181910f (diff) |
Add copyright and license notes to pretty much every file that didn't have them,
including the examples and self-test code.
Most of these files had not copyright/license information at all; since a major
point of the examples is to allow users to copy and paste code that already
does something they want, an ambigious license is not good.
Diffstat (limited to 'doc/examples/hasher2.cpp')
-rw-r--r-- | doc/examples/hasher2.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/doc/examples/hasher2.cpp b/doc/examples/hasher2.cpp index 12d3c853d..abbe11622 100644 --- a/doc/examples/hasher2.cpp +++ b/doc/examples/hasher2.cpp @@ -1,15 +1,18 @@ /* -Identical to hasher.cpp, but uses Pipe in a different way. - -Note this tends to be much less efficient than hasher.cpp, because it does -three passes over the file. For a small file, it doesn't really matter. But for -a large file, or for something you can't re-read easily (socket, stdin, ...) -this is a bad idea. +* (C) 2001 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ -Written by Jack Lloyd ([email protected]), Feb 8 2001 +/* +Identical to hasher.cpp, but uses Pipe in a different way. -This file is in the public domain +Note this tends to be much less efficient than hasher.cpp, because it +does three passes over the file. For a small file, it doesn't really +matter. But for a large file, or for something you can't re-read +easily (socket, stdin, ...) this is a bad idea. */ + #include <fstream> #include <iostream> #include <string> |