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