| OLD | NEW |
| (Empty) |
| 1 /* crypto/des/des_old.c -*- mode:C; c-file-style: "eay" -*- */ | |
| 2 | |
| 3 /* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING | |
| 4 * | |
| 5 * The function names in here are deprecated and are only present to | |
| 6 * provide an interface compatible with OpenSSL 0.9.6c. OpenSSL now | |
| 7 * provides functions where "des_" has been replaced with "DES_" in | |
| 8 * the names, to make it possible to make incompatible changes that | |
| 9 * are needed for C type security and other stuff. | |
| 10 * | |
| 11 * Please consider starting to use the DES_ functions rather than the | |
| 12 * des_ ones. The des_ functions will dissapear completely before | |
| 13 * OpenSSL 1.0! | |
| 14 * | |
| 15 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING | |
| 16 */ | |
| 17 | |
| 18 /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | |
| 19 * project 2001. | |
| 20 */ | |
| 21 /* ==================================================================== | |
| 22 * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. | |
| 23 * | |
| 24 * Redistribution and use in source and binary forms, with or without | |
| 25 * modification, are permitted provided that the following conditions | |
| 26 * are met: | |
| 27 * | |
| 28 * 1. Redistributions of source code must retain the above copyright | |
| 29 * notice, this list of conditions and the following disclaimer. | |
| 30 * | |
| 31 * 2. Redistributions in binary form must reproduce the above copyright | |
| 32 * notice, this list of conditions and the following disclaimer in | |
| 33 * the documentation and/or other materials provided with the | |
| 34 * distribution. | |
| 35 * | |
| 36 * 3. All advertising materials mentioning features or use of this | |
| 37 * software must display the following acknowledgment: | |
| 38 * "This product includes software developed by the OpenSSL Project | |
| 39 * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | |
| 40 * | |
| 41 * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | |
| 42 * endorse or promote products derived from this software without | |
| 43 * prior written permission. For written permission, please contact | |
| 44 * openssl-core@openssl.org. | |
| 45 * | |
| 46 * 5. Products derived from this software may not be called "OpenSSL" | |
| 47 * nor may "OpenSSL" appear in their names without prior written | |
| 48 * permission of the OpenSSL Project. | |
| 49 * | |
| 50 * 6. Redistributions of any form whatsoever must retain the following | |
| 51 * acknowledgment: | |
| 52 * "This product includes software developed by the OpenSSL Project | |
| 53 * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | |
| 54 * | |
| 55 * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | |
| 56 * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
| 57 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
| 58 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | |
| 59 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
| 60 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | |
| 61 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | |
| 62 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
| 63 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |
| 64 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
| 65 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | |
| 66 * OF THE POSSIBILITY OF SUCH DAMAGE. | |
| 67 * ==================================================================== | |
| 68 * | |
| 69 * This product includes cryptographic software written by Eric Young | |
| 70 * (eay@cryptsoft.com). This product includes software written by Tim | |
| 71 * Hudson (tjh@cryptsoft.com). | |
| 72 * | |
| 73 */ | |
| 74 | |
| 75 #undef OPENSSL_DES_LIBDES_COMPATIBILITY | |
| 76 #include <openssl/des.h> | |
| 77 #include <openssl/rand.h> | |
| 78 | |
| 79 void _ossl_096_des_random_seed(DES_cblock *key) | |
| 80 { | |
| 81 RAND_seed(key, sizeof(DES_cblock)); | |
| 82 } | |
| OLD | NEW |