Skip to content
Snippets Groups Projects
Commit 3f7c7bf2 authored by Niels Möller's avatar Niels Möller
Browse files

*** 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
parent 077695fe
No related branches found
No related tags found
No related merge requests found
/* arcfour.c /* 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" #include "crypto_types.h"
......
...@@ -8,17 +8,17 @@ ...@@ -8,17 +8,17 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
int main (int argc, char **argv) int main (int argc UNUSED, char **argv UNUSED)
{ {
if (bf_selftest()) if (bf_selftest())
{ {
fprintf(stderr, "Blowfish works.\n"); fprintf(stderr, "Blowfish works.\n");
exit(EXIT_SUCCESS); return EXIT_SUCCESS;
} }
else else
{ {
fprintf(stderr, "ERROR: Blowfish failed.\n"); fprintf(stderr, "ERROR: Blowfish failed.\n");
exit(EXIT_FAILURE); return EXIT_FAILURE;
} }
} }
/* /*
* des - fast & portable DES encryption & decryption. * des - fast & portable DES encryption & decryption.
* Copyright (C) 1992 Dana L. How * 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 Mller, 1997 * Slightly edited by Niels Mller, 1997
*/ */
......
/* desdata.c
*
* Generate tables used by desUtil.c and desCode.h.
*
* $Id$ */
/* /*
* des - fast & portable DES encryption & decryption. * des - fast & portable DES encryption & decryption.
* Copyright (C) 1992 Dana L. How * 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" #include "desinfo.h"
...@@ -58,7 +63,7 @@ int sorder[] = { ...@@ -58,7 +63,7 @@ int sorder[] = {
int printf(const char *, ...); int printf(const char *, ...);
int int
main(int argc, char **argv) main(int argc UNUSED, char **argv UNUSED)
{ {
UINT32 d, i, j, k, l, m, n, s; UINT32 d, i, j, k, l, m, n, s;
char b[256], ksr[56]; char b[256], ksr[56];
......
/* /* desinfo.h
* des - fast & portable DES encryption & decryption. *
* Copyright (C) 1992 Dana L. How * Tables describing DES rather than just this implementation.
* Please see the file `README' for the complete copyright notice. * These are used in desdata but NOT in runtime code.
* *
* Tables describing DES rather than just this implementation. * $Id$ */
* These are used in desdata but NOT in runtime code.
/* 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" #include "RCSID.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment