2N/A * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A * Copyright (C) 1998 by the FundsXpress, INC. 2N/A * All rights reserved. 2N/A * Export of this software from the United States of America may require 2N/A * a specific license from the United States Government. It is the 2N/A * responsibility of any person or organization contemplating export to 2N/A * obtain such a license before exporting. 2N/A * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 2N/A * distribute this software and its documentation for any purpose and 2N/A * without fee is hereby granted, provided that the above copyright 2N/A * notice appear in all copies and that both that copyright notice and 2N/A * this permission notice appear in supporting documentation, and that 2N/A * the name of FundsXpress. not be used in advertising or publicity pertaining 2N/A * to distribution of the software without specific, written prior 2N/A * permission. FundsXpress makes no representations about the suitability of 2N/A * this software for any purpose. It is provided "as is" without express 2N/A * or implied warranty. 2N/A * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 2N/A * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 2N/A * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 2N/A/* Force acceptance of krb5-beta5 md5des checksum for now. */ 2N/A/* des-cbc(xorkey, conf | rsa-md5(conf | data)) */ 2N/A/* this could be done in terms of the md5 and des providers, but 2N/A that's less efficient, and there's no need for this to be generic */ 2N/A /* Solaris Kerberos */ 2N/A /* create the confouder */ 2N/A /* hash the confounder, then the input data */ 2N/A /* construct the buffer to be encrypted */ 2N/A /* encrypt it, in place. this has a return value, but it's 2N/A /* create and the encryption key */ 2N/A /* decrypt it. this has a return value, but it's always zero. */ 2N/A /* hash the confounder, then the input data */ 2N/A /* compare the decrypted hash to the computed one */