jpayne@69: /* jpayne@69: * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. jpayne@69: * jpayne@69: * Licensed under the OpenSSL license (the "License"). You may not use jpayne@69: * this file except in compliance with the License. You can obtain a copy jpayne@69: * in the file LICENSE in the source distribution or at jpayne@69: * https://www.openssl.org/source/license.html jpayne@69: */ jpayne@69: jpayne@69: #ifndef HEADER_RC4_H jpayne@69: # define HEADER_RC4_H jpayne@69: jpayne@69: # include jpayne@69: jpayne@69: # ifndef OPENSSL_NO_RC4 jpayne@69: # include jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: typedef struct rc4_key_st { jpayne@69: RC4_INT x, y; jpayne@69: RC4_INT data[256]; jpayne@69: } RC4_KEY; jpayne@69: jpayne@69: const char *RC4_options(void); jpayne@69: void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data); jpayne@69: void RC4(RC4_KEY *key, size_t len, const unsigned char *indata, jpayne@69: unsigned char *outdata); jpayne@69: jpayne@69: # ifdef __cplusplus jpayne@69: } jpayne@69: # endif jpayne@69: # endif jpayne@69: jpayne@69: #endif