10Sstevel@tonic-gate /* 2*7934SMark.Phalan@Sun.COM * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 30Sstevel@tonic-gate * Use is subject to license terms. 40Sstevel@tonic-gate */ 50Sstevel@tonic-gate 60Sstevel@tonic-gate /* 70Sstevel@tonic-gate * Copyright (C) 1998 by the FundsXpress, INC. 80Sstevel@tonic-gate * 90Sstevel@tonic-gate * All rights reserved. 100Sstevel@tonic-gate * 110Sstevel@tonic-gate * Export of this software from the United States of America may require 120Sstevel@tonic-gate * a specific license from the United States Government. It is the 130Sstevel@tonic-gate * responsibility of any person or organization contemplating export to 140Sstevel@tonic-gate * obtain such a license before exporting. 150Sstevel@tonic-gate * 160Sstevel@tonic-gate * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 170Sstevel@tonic-gate * distribute this software and its documentation for any purpose and 180Sstevel@tonic-gate * without fee is hereby granted, provided that the above copyright 190Sstevel@tonic-gate * notice appear in all copies and that both that copyright notice and 200Sstevel@tonic-gate * this permission notice appear in supporting documentation, and that 210Sstevel@tonic-gate * the name of FundsXpress. not be used in advertising or publicity pertaining 220Sstevel@tonic-gate * to distribution of the software without specific, written prior 230Sstevel@tonic-gate * permission. FundsXpress makes no representations about the suitability of 240Sstevel@tonic-gate * this software for any purpose. It is provided "as is" without express 250Sstevel@tonic-gate * or implied warranty. 260Sstevel@tonic-gate * 270Sstevel@tonic-gate * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 280Sstevel@tonic-gate * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 290Sstevel@tonic-gate * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 300Sstevel@tonic-gate */ 310Sstevel@tonic-gate 32*7934SMark.Phalan@Sun.COM #include "k5-int.h" 330Sstevel@tonic-gate 340Sstevel@tonic-gate void krb5_old_encrypt_length 35781Sgtb (const struct krb5_enc_provider *enc, 36*7934SMark.Phalan@Sun.COM const struct krb5_hash_provider *hash, 37781Sgtb size_t input, size_t *length); 380Sstevel@tonic-gate 390Sstevel@tonic-gate krb5_error_code krb5_old_encrypt 40781Sgtb (krb5_context context, 41*7934SMark.Phalan@Sun.COM const struct krb5_enc_provider *enc, 42*7934SMark.Phalan@Sun.COM const struct krb5_hash_provider *hash, 43*7934SMark.Phalan@Sun.COM const krb5_keyblock *key, krb5_keyusage usage, 44*7934SMark.Phalan@Sun.COM const krb5_data *ivec, const krb5_data *input, 45781Sgtb krb5_data *output); 460Sstevel@tonic-gate 470Sstevel@tonic-gate krb5_error_code krb5_old_decrypt 48781Sgtb (krb5_context context, 49*7934SMark.Phalan@Sun.COM const struct krb5_enc_provider *enc, 50*7934SMark.Phalan@Sun.COM const struct krb5_hash_provider *hash, 51*7934SMark.Phalan@Sun.COM const krb5_keyblock *key, krb5_keyusage usage, 52*7934SMark.Phalan@Sun.COM const krb5_data *ivec, const krb5_data *input, 53781Sgtb krb5_data *arg_output); 540Sstevel@tonic-gate 550Sstevel@tonic-gate #ifndef _KERNEL 56*7934SMark.Phalan@Sun.COM krb5_error_code krb5int_des_string_to_key 57781Sgtb (krb5_context context, 58*7934SMark.Phalan@Sun.COM const struct krb5_enc_provider *enc, 59*7934SMark.Phalan@Sun.COM const krb5_data *string, const krb5_data *salt, 60*7934SMark.Phalan@Sun.COM const krb5_data *params, 61781Sgtb krb5_keyblock *key); 620Sstevel@tonic-gate #endif /* _KERNEL */ 63