xref: /illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/include/old.h (revision 2aeafac3612e19716bf8164f89c3c9196342979c)
1 /*
2  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 /*
7  * Copyright (C) 1998 by the FundsXpress, INC.
8  *
9  * All rights reserved.
10  *
11  * Export of this software from the United States of America may require
12  * a specific license from the United States Government.  It is the
13  * responsibility of any person or organization contemplating export to
14  * obtain such a license before exporting.
15  *
16  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
17  * distribute this software and its documentation for any purpose and
18  * without fee is hereby granted, provided that the above copyright
19  * notice appear in all copies and that both that copyright notice and
20  * this permission notice appear in supporting documentation, and that
21  * the name of FundsXpress. not be used in advertising or publicity pertaining
22  * to distribution of the software without specific, written prior
23  * permission.  FundsXpress makes no representations about the suitability of
24  * this software for any purpose.  It is provided "as is" without express
25  * or implied warranty.
26  *
27  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
28  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
29  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
30  */
31 
32 #include "k5-int.h"
33 
34 void krb5_old_encrypt_length
35 (const struct krb5_enc_provider *enc,
36 		const struct krb5_hash_provider *hash,
37 		size_t input, size_t *length);
38 
39 krb5_error_code krb5_old_encrypt
40 (krb5_context context,
41 		const struct krb5_enc_provider *enc,
42 		const struct krb5_hash_provider *hash,
43 		const krb5_keyblock *key, krb5_keyusage usage,
44 		const krb5_data *ivec, const krb5_data *input,
45 		krb5_data *output);
46 
47 krb5_error_code krb5_old_decrypt
48 (krb5_context context,
49 		const struct krb5_enc_provider *enc,
50 		const struct krb5_hash_provider *hash,
51 		const krb5_keyblock *key, krb5_keyusage usage,
52 		const krb5_data *ivec, const krb5_data *input,
53 		krb5_data *arg_output);
54 
55 #ifndef	_KERNEL
56 krb5_error_code krb5int_des_string_to_key
57 (krb5_context context,
58 		const struct krb5_enc_provider *enc,
59 		const krb5_data *string, const krb5_data *salt,
60 		const krb5_data *params,
61 		krb5_keyblock *key);
62 #endif	/* _KERNEL */
63