summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/builtin/arcfour/arcfour.h
blob: be408febc632d7519ff8662da7d91409a3ed5918 (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
36
37
38
39
40
41
42
43
#ifndef ARCFOUR_H
#define ARCFOUR_H

extern void
krb5_arcfour_encrypt_length(const struct krb5_enc_provider *,
			const struct krb5_hash_provider *,
			size_t,
			size_t *);

extern 
krb5_error_code krb5_arcfour_encrypt(const struct krb5_enc_provider *,
			const struct krb5_hash_provider *,
			const krb5_keyblock *,
			krb5_keyusage,
			const krb5_data *,
     			const krb5_data *,
			krb5_data *);

extern 
krb5_error_code krb5_arcfour_decrypt(const struct krb5_enc_provider *,
			const struct krb5_hash_provider *,
			const krb5_keyblock *,
			krb5_keyusage,
			const krb5_data *,
			const krb5_data *,
			krb5_data *);

extern krb5_error_code krb5int_arcfour_string_to_key(
     const struct krb5_enc_provider *,
     const krb5_data *,
     const krb5_data *,
     const krb5_data *,
     krb5_keyblock *);

extern const struct krb5_enc_provider krb5int_enc_arcfour;
extern const struct krb5_aead_provider krb5int_aead_arcfour;
 krb5_error_code krb5int_arcfour_prf(
					 const struct krb5_enc_provider *enc,
					 const struct krb5_hash_provider *hash,
					 const krb5_keyblock *key,
					 const krb5_data *in, krb5_data *out);

#endif /* ARCFOUR_H */