Lines Matching defs:key
66 /* initialize an rc4 key as the last possible fallback. */
67 static void ares_rc4_generate_key(ares_rand_rc4 *rc4_state, unsigned char *key,
84 memcpy(key + len, &data, sizeof(data));
88 memcpy(key + len, &data, sizeof(data));
93 memcpy(key + len, &data, sizeof(data));
100 key[i] = (unsigned char)(rand() % 256); /* LCOV_EXCL_LINE */
106 unsigned char key[ARES_RC4_KEY_LEN];
110 ares_rc4_generate_key(rc4_state, key, sizeof(key));
117 j = (j + rc4_state->S[i] + key[i % sizeof(key)]) % 256;
125 /* Just outputs the key schedule, no need to XOR with any data since we have