projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
[gnulib.git]
/
lib
/
arcfour.h
diff --git
a/lib/arcfour.h
b/lib/arcfour.h
index
28ef679
..
5e4cee7
100644
(file)
--- a/
lib/arcfour.h
+++ b/
lib/arcfour.h
@@
-1,6
+1,5
@@
/* arcfour.h --- The arcfour stream cipher
/* arcfour.h --- The arcfour stream cipher
- * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005
- * Free Software Foundation, Inc.
+ * Copyright (C) 2000-2005, 2009-2011 Free Software Foundation, Inc.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
@@
-25,13
+24,14
@@
# define ARCFOUR_H
# include <stddef.h>
# define ARCFOUR_H
# include <stddef.h>
+# include <stdint.h>
#define ARCFOUR_SBOX_SIZE 256
typedef struct
{
#define ARCFOUR_SBOX_SIZE 256
typedef struct
{
- size_t idx_i, idx_j;
char sbox[ARCFOUR_SBOX_SIZE];
char sbox[ARCFOUR_SBOX_SIZE];
+ uint8_t idx_i, idx_j;
} arcfour_context;
/* Apply ARCFOUR stream to INBUF placing the result in OUTBUF, both of
} arcfour_context;
/* Apply ARCFOUR stream to INBUF placing the result in OUTBUF, both of
@@
-39,7
+39,7
@@
typedef struct
before this function is called. */
extern void
arcfour_stream (arcfour_context * context,
before this function is called. */
extern void
arcfour_stream (arcfour_context * context,
- const char *inbuf, char *outbuf, size_t length);
+
const char *inbuf, char *outbuf, size_t length);
/* Initialize CONTEXT using encryption KEY of KEYLEN bytes. KEY
should be 40 bits (5 bytes) or longer. The KEY cannot be zero
/* Initialize CONTEXT using encryption KEY of KEYLEN bytes. KEY
should be 40 bits (5 bytes) or longer. The KEY cannot be zero