/external/wpa_supplicant/ |
rc4.c | 2 * RC4 stream cipher 18 #include "rc4.h" 23 * rc4 - XOR RC4 stream to given data with skip-stream-start 24 * @key: RC4 key 25 * @keylen: RC4 key length 26 * @skip: number of bytes to skip from the beginning of the RC4 stream 27 * @data: data to be XOR'ed with RC4 stream 30 * Generate RC4 pseudo random stream for the given key, skip beginning of the 31 * stream, and XOR the end result with the data buffer to perform RC4 83 void rc4(u8 *buf, size_t len, const u8 *key, size_t key_len) function [all...] |
crypto_internal.c | 21 #include "rc4.h" 237 } rc4; member in union:crypto_cipher::__anon8392 266 if (key_len > sizeof(ctx->u.rc4.key)) { 270 ctx->u.rc4.keylen = key_len; 271 os_memcpy(ctx->u.rc4.key, key, key_len); 318 rc4_skip(ctx->u.rc4.key, ctx->u.rc4.keylen, 319 ctx->u.rc4.used_bytes, crypt, len); 320 ctx->u.rc4.used_bytes += len; 369 rc4_skip(ctx->u.rc4.key, ctx->u.rc4.keylen [all...] |
crypto_libtomcrypt.c | 19 #include "rc4.h" 292 int rc4; member in struct:crypto_cipher 299 } rc4; member in union:crypto_cipher::__anon8397 309 int idx, res, rc4 = 0; local 326 rc4 = 1; 336 if (rc4) { 337 ctx->rc4 = 1; 338 if (key_len > sizeof(ctx->u.rc4.key)) { 342 ctx->u.rc4.keylen = key_len; 343 os_memcpy(ctx->u.rc4.key, key, key_len) [all...] |
/external/dropbear/libtomcrypt/src/headers/ |
tomcrypt_prng.h | 11 #ifdef RC4 55 #ifdef RC4 56 struct rc4_prng rc4; member in union:Prng_state 145 #ifdef RC4
|
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/ |
crypto_internal.c | 21 #include "rc4.h" 238 } rc4; member in union:crypto_cipher::__anon8558 267 if (key_len > sizeof(ctx->u.rc4.key)) { 271 ctx->u.rc4.keylen = key_len; 272 os_memcpy(ctx->u.rc4.key, key, key_len); 319 rc4_skip(ctx->u.rc4.key, ctx->u.rc4.keylen, 320 ctx->u.rc4.used_bytes, crypt, len); 321 ctx->u.rc4.used_bytes += len; 370 rc4_skip(ctx->u.rc4.key, ctx->u.rc4.keylen [all...] |
crypto_libtomcrypt.c | 19 #include "rc4.h" 292 int rc4; member in struct:crypto_cipher 299 } rc4; member in union:crypto_cipher::__anon8563 309 int idx, res, rc4 = 0; local 326 rc4 = 1; 336 if (rc4) { 337 ctx->rc4 = 1; 338 if (key_len > sizeof(ctx->u.rc4.key)) { 342 ctx->u.rc4.keylen = key_len; 343 os_memcpy(ctx->u.rc4.key, key, key_len) [all...] |