| * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. |
| * Licensed under the Apache License 2.0 (the "License"). You may not use |
| * this file except in compliance with the License. You can obtain a copy |
| * in the file LICENSE in the source distribution or at |
| * https://www.openssl.org/source/license.html |
| * RC4 low level APIs are deprecated for public use, but still ok for internal |
| #include "internal/deprecated.h" |
| #include <openssl/opensslv.h> |
| const char *RC4_options(void) |
| if (sizeof(RC4_INT) == 1) |
| * RC4 as implemented from a posting from |
| * Subject: RC4 Algorithm revealed. |
| * Message-ID: <sternCvKL4B.Hyy@netcom.com> |
| * Date: Wed, 14 Sep 1994 06:35:31 GMT |
| void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data) |
| id2 = (data[id1] + tmp + id2) & 0xff; \ |
| if (++id1 == len) id1=0; \ |
| for (i = 0; i < 256; i++) |
| for (i = 0; i < 256; i += 4) { |