Go to the source code of this file.
◆ ARC4_CTX_SIZE
#define ARC4_CTX_SIZE sizeof ( struct arc4_ctx ) |
◆ FILE_LICENCE()
FILE_LICENCE |
( |
GPL2_OR_LATER |
| ) |
|
◆ arc4_skip()
void arc4_skip |
( |
const void * |
key, |
|
|
size_t |
keylen, |
|
|
size_t |
skip, |
|
|
const void * |
src, |
|
|
void * |
dst, |
|
|
size_t |
msglen |
|
) |
| |
Perform ARC4 encryption or decryption, skipping initial keystream bytes.
- Parameters
-
key | ARC4 encryption key |
keylen | Key length |
skip | Number of bytes of keystream to skip |
src | Message to encrypt or decrypt |
msglen | Length of message |
- Return values
-
dst | Encrypted or decrypted message |
Definition at line 109 of file arc4.c.
struct golan_eq_context ctx
static void arc4_xor(void *ctxv, const void *srcv, void *dstv, size_t len)
Perform ARC4 encryption or decryption.
static int arc4_setkey(void *ctxv, const void *keyv, size_t keylen)
Set ARC4 key.
#define NULL
NULL pointer (VOID *)
References arc4_setkey(), arc4_xor(), ctx, key, NULL, and src.
Referenced by tkip_kie_decrypt().
◆ arc4_algorithm