summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/openssl/arcfour/arcfour-int.h
blob: bb4cf42013e2d6699977317e50bd07b452781e32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*

ARCFOUR cipher (based on a cipher posted on the Usenet in Spring-95).
This cipher is widely believed and has been tested to be equivalent
with the RC4 cipher from RSA Data Security, Inc.  (RC4 is a trademark
of RSA Data Security)

*/
#ifndef ARCFOUR_INT_H
#define ARCFOUR_INT_H

#include "arcfour.h"
#include <openssl/evp.h>

#define CONFOUNDERLENGTH 8

typedef struct
{
    EVP_CIPHER_CTX  evp_ctx;
    unsigned int x;
    unsigned int y;
    unsigned char state[256];

} ArcfourContext;

typedef struct {
    int initialized;
    ArcfourContext ctx;
} ArcFourCipherState;

krb5_keyusage krb5int_arcfour_translate_usage(krb5_keyusage usage);

extern const char *const krb5int_arcfour_l40;

#endif /* ARCFOUR_INT_H */