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 112 of file arc4.c.
114{
117
121}
#define NULL
NULL pointer (VOID *).
struct golan_eq_context ctx
union @162305117151260234136356364136041353210355154177 key
static int arc4_setkey(struct cipher_algorithm *cipher __unused, void *ctxv, const void *keyv, size_t keylen)
Set ARC4 key.
struct cipher_algorithm arc4_algorithm
static void arc4_xor(struct cipher_algorithm *cipher __unused, void *ctxv, const void *srcv, void *dstv, size_t len)
Perform ARC4 encryption or decryption.
References arc4_algorithm, arc4_setkey(), arc4_xor(), ctx, key, NULL, and src.
Referenced by tkip_kie_decrypt().
◆ arc4_algorithm
Definition at line 123 of file arc4.c.
123 {
124 .name = "ARC4",
126 .blocksize = 1,
127 .alignsize = 1,
128 .authsize = 0,
129 .confidential = 1,
135};
int cipher_null_setiv(struct cipher_algorithm *cipher __unused, void *ctx __unused, const void *iv __unused, size_t ivlen __unused)
void cipher_null_auth(struct cipher_algorithm *cipher __unused, void *ctx __unused, void *auth __unused)
Referenced by arc4_skip(), tkip_decrypt(), tkip_encrypt(), wep_decrypt(), and wep_encrypt().