diff --git a/arcfour.c b/arcfour.c index 4aeedc9d907d7edcb4906c82c01096ecdccd40a1..c97186576ffc959b8341a2dec5d807a397a8c2d4 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 74ce624381fe39cd9da2f89a6232a0f414a61753..4b1261cc5cd1ebbfe616015bc1b348f901453469 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 4f24fff79fb8d36b469e147ef9bbbea6ca71ed78..f3a44051cefe9d14550cda0d34dd4bb07caa4e1b 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 46e580412b7b27b3dd415a4c88cc6648b177ccbf..293ff644f7b3a4c162af82feb4b7b81552f7a677 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 8c90ff81b8458b9fa3918701675156b02d6ad47a..8920caa10362df368390da45be7006ae4e2466a4 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"