1e1051a39Sopenharmony_ci/* 2e1051a39Sopenharmony_ci * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3e1051a39Sopenharmony_ci * 4e1051a39Sopenharmony_ci * Licensed under the OpenSSL license (the "License"). You may not use 5e1051a39Sopenharmony_ci * this file except in compliance with the License. You can obtain a copy 6e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at 7e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html 8e1051a39Sopenharmony_ci */ 9e1051a39Sopenharmony_ci 10e1051a39Sopenharmony_ci#ifndef HEADER_RC4_H 11e1051a39Sopenharmony_ci# define HEADER_RC4_H 12e1051a39Sopenharmony_ci 13e1051a39Sopenharmony_ci# include <openssl/opensslconf.h> 14e1051a39Sopenharmony_ci 15e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_RC4 16e1051a39Sopenharmony_ci# include <stddef.h> 17e1051a39Sopenharmony_ci#ifdef __cplusplus 18e1051a39Sopenharmony_ciextern "C" { 19e1051a39Sopenharmony_ci#endif 20e1051a39Sopenharmony_ci 21e1051a39Sopenharmony_citypedef struct rc4_key_st { 22e1051a39Sopenharmony_ci RC4_INT x, y; 23e1051a39Sopenharmony_ci RC4_INT data[256]; 24e1051a39Sopenharmony_ci} RC4_KEY; 25e1051a39Sopenharmony_ci 26e1051a39Sopenharmony_ciconst char *RC4_options(void); 27e1051a39Sopenharmony_civoid RC4_set_key(RC4_KEY *key, int len, const unsigned char *data); 28e1051a39Sopenharmony_civoid RC4(RC4_KEY *key, size_t len, const unsigned char *indata, 29e1051a39Sopenharmony_ci unsigned char *outdata); 30e1051a39Sopenharmony_ci 31e1051a39Sopenharmony_ci# ifdef __cplusplus 32e1051a39Sopenharmony_ci} 33e1051a39Sopenharmony_ci# endif 34e1051a39Sopenharmony_ci# endif 35e1051a39Sopenharmony_ci 36e1051a39Sopenharmony_ci#endif 37