]>
Commit | Line | Data |
---|---|---|
21dcbebc RS |
1 | /* |
2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. | |
d02b48c6 | 3 | * |
48f4ad77 | 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
21dcbebc RS |
5 | * this file except in compliance with the License. You can obtain a copy |
6 | * in the file LICENSE in the source distribution or at | |
7 | * https://www.openssl.org/source/license.html | |
d02b48c6 RE |
8 | */ |
9 | ||
ae4186b0 DMSP |
10 | #ifndef OPENSSL_RC4_H |
11 | # define OPENSSL_RC4_H | |
d86167ec DMSP |
12 | # pragma once |
13 | ||
14 | # include <openssl/macros.h> | |
936c2b9e | 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 |
d86167ec DMSP |
16 | # define HEADER_RC4_H |
17 | # endif | |
d02b48c6 | 18 | |
3c27208f | 19 | # include <openssl/opensslconf.h> |
f5d7a031 | 20 | |
3c27208f | 21 | # ifndef OPENSSL_NO_RC4 |
0f113f3e | 22 | # include <stddef.h> |
82271cee RL |
23 | #ifdef __cplusplus |
24 | extern "C" { | |
25 | #endif | |
26 | ||
0f113f3e MC |
27 | typedef struct rc4_key_st { |
28 | RC4_INT x, y; | |
29 | RC4_INT data[256]; | |
30 | } RC4_KEY; | |
d02b48c6 | 31 | |
e778802f | 32 | const char *RC4_options(void); |
c236e66d | 33 | void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data); |
f768be81 | 34 | void RC4(RC4_KEY *key, size_t len, const unsigned char *indata, |
0f113f3e | 35 | unsigned char *outdata); |
d02b48c6 | 36 | |
3c27208f | 37 | # ifdef __cplusplus |
d02b48c6 | 38 | } |
3c27208f RS |
39 | # endif |
40 | # endif | |
d02b48c6 RE |
41 | |
42 | #endif |