1109998Smarkm/* crypto/des/des_old.c -*- mode:C; c-file-style: "eay" -*- */ 2109998Smarkm 3296341Sdelphij/* 4296341Sdelphij * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING The 5296341Sdelphij * function names in here are deprecated and are only present to provide an 6296341Sdelphij * interface compatible with OpenSSL 0.9.6c. OpenSSL now provides functions 7296341Sdelphij * where "des_" has been replaced with "DES_" in the names, to make it 8296341Sdelphij * possible to make incompatible changes that are needed for C type security 9296341Sdelphij * and other stuff. Please consider starting to use the DES_ functions 10296341Sdelphij * rather than the des_ ones. The des_ functions will dissapear completely 11296341Sdelphij * before OpenSSL 1.0! WARNING WARNING WARNING WARNING WARNING WARNING 12296341Sdelphij * WARNING WARNING 13109998Smarkm */ 14109998Smarkm 15296341Sdelphij/* 16296341Sdelphij * Written by Richard Levitte (richard@levitte.org) for the OpenSSL project 17296341Sdelphij * 2001. 18109998Smarkm */ 19109998Smarkm/* ==================================================================== 20109998Smarkm * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. 21109998Smarkm * 22109998Smarkm * Redistribution and use in source and binary forms, with or without 23109998Smarkm * modification, are permitted provided that the following conditions 24109998Smarkm * are met: 25109998Smarkm * 26109998Smarkm * 1. Redistributions of source code must retain the above copyright 27296341Sdelphij * notice, this list of conditions and the following disclaimer. 28109998Smarkm * 29109998Smarkm * 2. Redistributions in binary form must reproduce the above copyright 30109998Smarkm * notice, this list of conditions and the following disclaimer in 31109998Smarkm * the documentation and/or other materials provided with the 32109998Smarkm * distribution. 33109998Smarkm * 34109998Smarkm * 3. All advertising materials mentioning features or use of this 35109998Smarkm * software must display the following acknowledgment: 36109998Smarkm * "This product includes software developed by the OpenSSL Project 37109998Smarkm * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 38109998Smarkm * 39109998Smarkm * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 40109998Smarkm * endorse or promote products derived from this software without 41109998Smarkm * prior written permission. For written permission, please contact 42109998Smarkm * openssl-core@openssl.org. 43109998Smarkm * 44109998Smarkm * 5. Products derived from this software may not be called "OpenSSL" 45109998Smarkm * nor may "OpenSSL" appear in their names without prior written 46109998Smarkm * permission of the OpenSSL Project. 47109998Smarkm * 48109998Smarkm * 6. Redistributions of any form whatsoever must retain the following 49109998Smarkm * acknowledgment: 50109998Smarkm * "This product includes software developed by the OpenSSL Project 51109998Smarkm * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 52109998Smarkm * 53109998Smarkm * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 54109998Smarkm * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 55109998Smarkm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 56109998Smarkm * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 57109998Smarkm * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 58109998Smarkm * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 59109998Smarkm * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 60109998Smarkm * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 61109998Smarkm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 62109998Smarkm * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 63109998Smarkm * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 64109998Smarkm * OF THE POSSIBILITY OF SUCH DAMAGE. 65109998Smarkm * ==================================================================== 66109998Smarkm * 67109998Smarkm * This product includes cryptographic software written by Eric Young 68109998Smarkm * (eay@cryptsoft.com). This product includes software written by Tim 69109998Smarkm * Hudson (tjh@cryptsoft.com). 70109998Smarkm * 71109998Smarkm */ 72109998Smarkm 73109998Smarkm#undef OPENSSL_DES_LIBDES_COMPATIBILITY 74109998Smarkm#include <openssl/des.h> 75109998Smarkm#include <openssl/rand.h> 76109998Smarkm 77109998Smarkmvoid _ossl_096_des_random_seed(DES_cblock *key) 78296341Sdelphij{ 79296341Sdelphij RAND_seed(key, sizeof(DES_cblock)); 80296341Sdelphij} 81