From 3f7c7bf262116bee79a7d30e93ac26dee77b9729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Thu, 31 Dec 1998 05:36:27 +0100 Subject: [PATCH] *** empty log message *** Rev: src/symmetric/arcfour.c:1.2 Rev: src/symmetric/bf_test.c:1.2 Rev: src/symmetric/desQuick.c:1.3 Rev: src/symmetric/desdata.c:1.3 Rev: src/symmetric/desinfo.h:1.2 --- arcfour.c | 5 +++++ bf_test.c | 6 +++--- desQuick.c | 2 +- desdata.c | 11 ++++++++--- desinfo.h | 15 +++++++++------ 5 files changed, 26 insertions(+), 13 deletions(-) diff --git a/arcfour.c b/arcfour.c index 4aeedc9d..c9718657 100644 --- a/arcfour.c +++ b/arcfour.c @@ -1,5 +1,10 @@ /* arcfour.c * + * This implements the Arcfour stream cipher with 128 bit keys. + * + * The Arcfour cipher is believed to be compatible with the RC4 cipher. + * RC4 is a registered trademark of RSA Data Security Inc. + * */ #include "crypto_types.h" diff --git a/bf_test.c b/bf_test.c index 74ce6243..4b1261cc 100644 --- a/bf_test.c +++ b/bf_test.c @@ -8,17 +8,17 @@ #include <stdio.h> #include <stdlib.h> -int main (int argc, char **argv) +int main (int argc UNUSED, char **argv UNUSED) { if (bf_selftest()) { fprintf(stderr, "Blowfish works.\n"); - exit(EXIT_SUCCESS); + return EXIT_SUCCESS; } else { fprintf(stderr, "ERROR: Blowfish failed.\n"); - exit(EXIT_FAILURE); + return EXIT_FAILURE; } } diff --git a/desQuick.c b/desQuick.c index 4f24fff7..f3a44051 100644 --- a/desQuick.c +++ b/desQuick.c @@ -1,7 +1,7 @@ /* * des - fast & portable DES encryption & decryption. * Copyright (C) 1992 Dana L. How - * Please see the file `README' for the complete copyright notice. + * Please see the file `descore.README' for the complete copyright notice. * * Slightly edited by Niels M�ller, 1997 */ diff --git a/desdata.c b/desdata.c index 46e58041..293ff644 100644 --- a/desdata.c +++ b/desdata.c @@ -1,9 +1,14 @@ +/* desdata.c + * + * Generate tables used by desUtil.c and desCode.h. + * + * $Id$ */ + /* * des - fast & portable DES encryption & decryption. * Copyright (C) 1992 Dana L. How - * Please see the file `README' for the complete copyright notice. + * Please see the file `descore.README' for the complete copyright notice. * - * Generate tables used by desUtil.c and desCode.h. */ #include "desinfo.h" @@ -58,7 +63,7 @@ int sorder[] = { int printf(const char *, ...); int -main(int argc, char **argv) +main(int argc UNUSED, char **argv UNUSED) { UINT32 d, i, j, k, l, m, n, s; char b[256], ksr[56]; diff --git a/desinfo.h b/desinfo.h index 8c90ff81..8920caa1 100644 --- a/desinfo.h +++ b/desinfo.h @@ -1,10 +1,13 @@ -/* - * des - fast & portable DES encryption & decryption. - * Copyright (C) 1992 Dana L. How - * Please see the file `README' for the complete copyright notice. +/* desinfo.h + * + * Tables describing DES rather than just this implementation. + * These are used in desdata but NOT in runtime code. * - * Tables describing DES rather than just this implementation. - * These are used in desdata but NOT in runtime code. + * $Id$ */ + +/* des - fast & portable DES encryption & decryption. + * Copyright (C) 1992 Dana L. How + * Please see the file `descore.README' for the complete copyright notice. */ #include "RCSID.h" -- GitLab