summaryrefslogtreecommitdiff
path: root/src/CAST.c
diff options
context:
space:
mode:
authorDwayne C. Litzenberger <dlitz@dlitz.net>2009-02-28 19:49:31 -0500
committerDwayne C. Litzenberger <dlitz@dlitz.net>2009-03-01 10:23:00 -0500
commit26799e598d39c23b1ddfdff2f7be1a9dd29bdb4d (patch)
tree0b9b8e7593930ad9727f1fa3db60529f5dc4cd57 /src/CAST.c
parentf46f5fc946b56c830ee0c69e647401eb89af2780 (diff)
downloadpycrypto-26799e598d39c23b1ddfdff2f7be1a9dd29bdb4d.tar.gz
Legal: Clarify public-domain dedication of src/CAST.c
This is permissible under copyright law, since both authors (Wim Lewis and Andrew Kuchling) have explicitly dedicated their PyCrypto contributions to the public domain. This change also removes the out-of-date "History" section. Up-to-date changelog information can be obtained from the source code repository.
Diffstat (limited to 'src/CAST.c')
-rw-r--r--src/CAST.c37
1 files changed, 27 insertions, 10 deletions
diff --git a/src/CAST.c b/src/CAST.c
index 395318d..5a97860 100644
--- a/src/CAST.c
+++ b/src/CAST.c
@@ -1,14 +1,30 @@
/*
cast.c -- implementation of CAST-128 (aka CAST5) as described in RFC2144
-
- compile -DTEST to include main() which performs the tests
- specified in RFC2144
- Written by Wim Lewis <wiml@hhhh.org> based entirely on RFC2144. This code
- is in the public domain. Consult your local laws for possible restrictions
- on use, distribution, and import/export. RFC2144 states that this
- algorithm "is available worldwide on a royalty-free basis for commercial
- and non-commercial uses".
+ Written in 1997 by Wim Lewis <wiml@hhhh.org> based entirely on RFC2144.
+ Minor modifications made in 2002 by Andrew M. Kuchling <amk@amk.ca>.
+
+ ===================================================================
+ The contents of this file are dedicated to the public domain. To
+ the extent that dedication to the public domain is not available,
+ everyone is granted a worldwide, perpetual, royalty-free,
+ non-exclusive license to exercise all rights associated with the
+ contents of this file for any purpose whatsoever.
+ No rights are reserved.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+ ===================================================================
+
+ Consult your local laws for possible restrictions on use, distribution, and
+ import/export. RFC2144 states that this algorithm "is available worldwide
+ on a royalty-free basis for commercial and non-commercial uses".
This code is a pretty straightforward transliteration of the RFC into C.
It has not been optimized much at all: byte-order-independent arithmetic
@@ -18,11 +34,12 @@
This code requires a vaguely ANSI-ish compiler.
+ compile -DTEST to include main() which performs the tests
+ specified in RFC2144
+
Tested with gcc 2.5.8 on i486, i586, i686, hp pa-risc, mc68040, sparc;
also with gcc 2.7.2 and (with minor changes) native Sun compiler on sparc
- History:
- 21 Jul 1997: wiml : first working version & Python module
*/
#include "Python.h"