diff options
author | Roberto C. Sanchez <roberto@connexer.com> | 2014-05-12 08:21:30 -0400 |
---|---|---|
committer | Roberto C. Sanchez <roberto@connexer.com> | 2014-05-12 08:21:30 -0400 |
commit | 7a00574163029c0c2b649878c95d5acbd083564a (patch) | |
tree | c13cc5736025834df2874ed87ee8598070025ea6 /src/modules/common/sapphire.cpp | |
parent | b745315323de9f27538edac9453205ca70e6186e (diff) |
Imported Upstream version 1.7.2+dfsg
Diffstat (limited to 'src/modules/common/sapphire.cpp')
-rw-r--r-- | src/modules/common/sapphire.cpp | 48 |
1 files changed, 36 insertions, 12 deletions
diff --git a/src/modules/common/sapphire.cpp b/src/modules/common/sapphire.cpp index 7b141d2..8cc3e15 100644 --- a/src/modules/common/sapphire.cpp +++ b/src/modules/common/sapphire.cpp @@ -1,15 +1,39 @@ -/* sapphire.cpp -- the Saphire II stream cipher class. - Dedicated to the Public Domain the author and inventor: - (Michael Paul Johnson). This code comes with no warranty. - Use it at your own risk. - Ported from the Pascal implementation of the Sapphire Stream - Cipher 9 December 1994. - Added hash pre- and post-processing 27 December 1994. - Modified initialization to make index variables key dependent, - made the output function more resistant to cryptanalysis, - and renamed to Sapphire II 2 January 1995 -*/ - +/****************************************************************************** + * + * sapphire.cpp - the Saphire II stream cipher class + * + * $Id: sapphire.cpp 2833 2013-06-29 06:40:28Z chrislit $ + * + * Copyright 1999-2013 CrossWire Bible Society (http://www.crosswire.org) + * CrossWire Bible Society + * P. O. Box 2528 + * Tempe, AZ 85280-2528 + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation version 2. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + */ + +/****************************************************************************** + * + * Original license notice & credits: + * Dedicated to the Public Domain the author and inventor: + * (Michael Paul Johnson). This code comes with no warranty. + * Use it at your own risk. + * Ported from the Pascal implementation of the Sapphire Stream + * Cipher 9 December 1994. + * Added hash pre- and post-processing 27 December 1994. + * Modified initialization to make index variables key dependent, + * made the output function more resistant to cryptanalysis, + * and renamed to Sapphire II 2 January 1995 + * + */ #include <string.h> |