Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:48

0001 /*
0002  * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
0003  *
0004  * Licensed under the Apache License 2.0 (the "License").  You may not use
0005  * this file except in compliance with the License.  You can obtain a copy
0006  * in the file LICENSE in the source distribution or at
0007  * https://www.openssl.org/source/license.html
0008  */
0009 
0010 #ifndef OPENSSL_RC4_H
0011 # define OPENSSL_RC4_H
0012 # pragma once
0013 
0014 # include <openssl/macros.h>
0015 # ifndef OPENSSL_NO_DEPRECATED_3_0
0016 #  define HEADER_RC4_H
0017 # endif
0018 
0019 # include <openssl/opensslconf.h>
0020 
0021 # ifndef OPENSSL_NO_RC4
0022 #  include <stddef.h>
0023 #  ifdef  __cplusplus
0024 extern "C" {
0025 #  endif
0026 
0027 #  ifndef OPENSSL_NO_DEPRECATED_3_0
0028 typedef struct rc4_key_st {
0029     RC4_INT x, y;
0030     RC4_INT data[256];
0031 } RC4_KEY;
0032 #  endif
0033 #  ifndef OPENSSL_NO_DEPRECATED_3_0
0034 OSSL_DEPRECATEDIN_3_0 const char *RC4_options(void);
0035 OSSL_DEPRECATEDIN_3_0 void RC4_set_key(RC4_KEY *key, int len,
0036                                        const unsigned char *data);
0037 OSSL_DEPRECATEDIN_3_0 void RC4(RC4_KEY *key, size_t len,
0038                                const unsigned char *indata,
0039                                unsigned char *outdata);
0040 #  endif
0041 
0042 #  ifdef  __cplusplus
0043 }
0044 #  endif
0045 # endif
0046 
0047 #endif