Debian Codegraph @

debian/rust-vendor/aws-lc-sys/aws-lc/include/openssl/rc4.h

raw
1 // Copyright (C) 1995-1998 Eric Young ([email protected]) All rights reserved.
2 // SPDX-License-Identifier: Apache-2.0
3
4 #ifndef OPENSSL_HEADER_RC4_H
5 #define OPENSSL_HEADER_RC4_H
6
7 #include <openssl/base.h>
8
9 #if defined(__cplusplus)
10 extern "C" {
11 #endif
12
13
14 // RC4.
15
16
17 struct rc4_key_st {
18 uint32_t x, y;
19 uint32_t data[256];
20 } /* RC4_KEY */;
21
22 // RC4_set_key performs an RC4 key schedule and initialises |rc4key| with |len|
23 // bytes of key material from |key|.
24 OPENSSL_EXPORT void RC4_set_key(RC4_KEY *rc4key, unsigned len,
25 const uint8_t *key);
26
27 // RC4 encrypts (or decrypts, it's the same with RC4) |len| bytes from |in| to
28 // |out|.
29 OPENSSL_EXPORT void RC4(RC4_KEY *key, size_t len, const uint8_t *in,
30 uint8_t *out);
31
32
33 // Deprecated functions.
34
35 // RC4_options returns the string "rc4(ptr,int)".
36 OPENSSL_EXPORT OPENSSL_DEPRECATED const char *RC4_options(void);
37
38
39 #if defined(__cplusplus)
40 } // extern C
41 #endif
42
43 #endif // OPENSSL_HEADER_RC4_H