Remove DES_random_seed() but retain des_random_seed() for now. Change
authorRichard Levitte <levitte@openssl.org>
Thu, 25 Oct 2001 06:46:22 +0000 (06:46 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 25 Oct 2001 06:46:22 +0000 (06:46 +0000)
the docs to reflect this change and correct libeay.num.

crypto/des/Makefile.ssl
crypto/des/des.h
crypto/des/des_old.c
crypto/des/rand_key.c
doc/crypto/des.pod
util/libeay.num

index 9e7d1dbe29f732883e5a0da93d7ba64baa110b6b..c1c9aaec7f43ea83fe8bd789a2232a1ce71a779a 100644 (file)
@@ -153,6 +153,9 @@ cfb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
 cfb_enc.o: ../../include/openssl/opensslconf.h cfb_enc.c des_locl.h
 des_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
 des_enc.o: ../../include/openssl/opensslconf.h des_enc.c des_locl.h ncbc_enc.c
+des_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
+des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
+des_old.o: ../../include/openssl/symhacks.h des_old.c
 ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
 ecb3_enc.o: ../../include/openssl/opensslconf.h des_locl.h ecb3_enc.c
 ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
index 68fd355c79f8e284c4402f42b0355ade4f83106a..cc95af823bdb29845df4327bbef52fa7784c8576 100644 (file)
@@ -198,7 +198,6 @@ void DES_pcbc_encrypt(const unsigned char *input,unsigned char *output,
                      int enc);
 DES_LONG DES_quad_cksum(const unsigned char *input,DES_cblock output[],
                        long length,int out_count,DES_cblock *seed);
-void DES_random_seed(DES_cblock *key);
 int DES_random_key(DES_cblock *ret);
 void DES_set_odd_parity(DES_cblock *key);
 int DES_check_key_parity(const_DES_cblock *key);
index 3de404600a53725ed139e1f4277daa5129a18cc3..d4f701f540b77b45ed664b9aad44464ec48e8962 100644 (file)
@@ -217,7 +217,7 @@ DES_LONG des_quad_cksum(des_cblock *input,des_cblock *output,
        }
 void des_random_seed(des_cblock key)
        {
-       DES_random_seed((DES_cblock *)key);
+       RAND_seed(key, sizeof(des_cblock));
        }
 void des_random_key(des_cblock ret)
        {
index a617969f70ff7c0075cf5f891fee66c6896850fe..23981655685800ea24a459af3b7694d9df26eb99 100644 (file)
 #include <openssl/des.h>
 #include <openssl/rand.h>
 
-void DES_random_seed(DES_cblock *key)
-       {
-       RAND_seed(key, sizeof(DES_cblock));
-       }
-
 int DES_random_key(DES_cblock *ret)
        {
        do
index 23f59b670e9a033a108ee798dac9f28504d20ea7..1cf48f65b91ec30414971107fc42759892bf3c52 100644 (file)
@@ -122,11 +122,9 @@ each byte is the parity bit.  The key schedule is an expanded form of
 the key; it is used to speed the encryption process.
 
 DES_random_key() generates a random key.  The PRNG must be seeded
-prior to using this function (see L<rand(3)|rand(3)>; for backward
-compatibility the function DES_random_seed() is available as well).
-If the PRNG could not generate a secure key, 0 is returned.  In
-earlier versions of the library, DES_random_key() did not generate
-secure keys.
+prior to using this function (see L<rand(3)|rand(3)>).  If the PRNG
+could not generate a secure key, 0 is returned.  In earlier versions
+of the library, DES_random_key() did not generate secure keys.
 
 Before a DES key can be used, it must be converted into the
 architecture dependent I<DES_key_schedule> via the
@@ -348,9 +346,13 @@ crypt(3), L<des_modes(7)|des_modes(7)>, L<evp(3)|evp(3)>, L<rand(3)|rand(3)>
 
 =head1 HISTORY
 
-In OpenSSL 0.9.7, All des_ functions were renamed to DES_ to avoid
+In OpenSSL 0.9.7, all des_ functions were renamed to DES_ to avoid
 clashes with older versions of libdes.  Compatibility des_ functions
-are provided for a short while, as well as crypt().
+are provided for a short while, as well as crypt().  des_random_seed()
+is were not kept as DES_ variants.  This will happen to other functions
+as well if they are deemed redundant (des_random_seed() just calls
+RAND_seed() and is present for backward compatibility only), buggy or
+already scheduled for removal.
 
 des_cbc_cksum(), des_cbc_encrypt(), des_ecb_encrypt(),
 des_is_weak_key(), des_key_sched(), des_pcbc_encrypt(),
index ac05c2aefc5728036b6b20187e3f4caf06f1b423..91634d81792faa070732efcdf4981ac35207bb55 100755 (executable)
@@ -793,11 +793,12 @@ DES_options                             799       EXIST::FUNCTION:DES
 DES_pcbc_encrypt                        800    EXIST::FUNCTION:DES
 DES_quad_cksum                          801    EXIST::FUNCTION:DES
 DES_random_key                          802    EXIST::FUNCTION:DES
-DES_random_seed                         803    EXIST::FUNCTION:DES
-DES_read_2passwords                     804    NOEXIST::FUNCTION:
-DES_read_password                       805    NOEXIST::FUNCTION:
-DES_read_pw                             806    NOEXIST::FUNCTION:
-DES_read_pw_string                      807    NOEXIST::FUNCTION:
+des_random_seed                         803    EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_random_seed                        803    EXIST:VMS,WIN16:FUNCTION:DES
+des_read_2passwords                     804    EXIST::FUNCTION:DES
+des_read_password                       805    EXIST::FUNCTION:DES
+des_read_pw                             806    EXIST::FUNCTION:
+des_read_pw_string                      807    EXIST::FUNCTION:
 DES_set_key                             808    EXIST::FUNCTION:DES
 DES_set_odd_parity                      809    EXIST::FUNCTION:DES
 DES_string_to_2keys                     810    EXIST::FUNCTION:DES
@@ -2726,53 +2727,47 @@ des_enc_read                            3163    EXIST:!VMS,!WIN16:FUNCTION:DES
 odes_enc_read                           3163   EXIST:VMS,WIN16:FUNCTION:DES
 des_decrypt3                            3164   EXIST:!VMS,!WIN16:FUNCTION:DES
 odes_decrypt3                           3164   EXIST:VMS,WIN16:FUNCTION:DES
-des_read_password                       3165   EXIST::FUNCTION:DES
-des_string_to_2keys                     3166   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_string_to_2keys                    3166   EXIST:VMS,WIN16:FUNCTION:DES
-des_ede3_cbc_encrypt                    3167   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_ede3_cbc_encrypt                   3167   EXIST:VMS,WIN16:FUNCTION:DES
-des_cbc_cksum                           3168   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_cbc_cksum                          3168   EXIST:VMS,WIN16:FUNCTION:DES
-des_ede3_cfb64_encrypt                  3169   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_ede3_cfb64_encrypt                 3169   EXIST:VMS,WIN16:FUNCTION:DES
-des_string_to_key                       3170   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_string_to_key                      3170   EXIST:VMS,WIN16:FUNCTION:DES
-des_set_odd_parity                      3171   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_set_odd_parity                     3171   EXIST:VMS,WIN16:FUNCTION:DES
-des_fcrypt                              3172   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_fcrypt                             3172   EXIST:VMS,WIN16:FUNCTION:DES
-des_ecb3_encrypt                        3173   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_ecb3_encrypt                       3173   EXIST:VMS,WIN16:FUNCTION:DES
-des_read_pw_string                      3174   EXIST::FUNCTION:
-des_cbc_encrypt                         3175   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_cbc_encrypt                        3175   EXIST:VMS,WIN16:FUNCTION:DES
-des_cfb_encrypt                         3176   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_cfb_encrypt                        3176   EXIST:VMS,WIN16:FUNCTION:DES
-des_quad_cksum                          3177   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_quad_cksum                         3177   EXIST:VMS,WIN16:FUNCTION:DES
-des_read_2passwords                     3178   EXIST::FUNCTION:DES
-des_encrypt2                            3179   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_encrypt2                           3179   EXIST:VMS,WIN16:FUNCTION:DES
-des_encrypt3                            3180   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_encrypt3                           3180   EXIST:VMS,WIN16:FUNCTION:DES
-des_ede3_ofb64_encrypt                  3181   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_ede3_ofb64_encrypt                 3181   EXIST:VMS,WIN16:FUNCTION:DES
-des_enc_write                           3182   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_enc_write                          3182   EXIST:VMS,WIN16:FUNCTION:DES
-des_ncbc_encrypt                        3183   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_ncbc_encrypt                       3183   EXIST:VMS,WIN16:FUNCTION:DES
-des_pcbc_encrypt                        3184   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_pcbc_encrypt                       3184   EXIST:VMS,WIN16:FUNCTION:DES
-des_set_key                             3185   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_set_key                            3185   EXIST:VMS,WIN16:FUNCTION:DES
-des_random_seed                         3186   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_random_seed                        3186   EXIST:VMS,WIN16:FUNCTION:DES
-des_cfb64_encrypt                       3187   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_cfb64_encrypt                      3187   EXIST:VMS,WIN16:FUNCTION:DES
-des_ofb_encrypt                         3188   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_ofb_encrypt                        3188   EXIST:VMS,WIN16:FUNCTION:DES
-des_read_pw                             3189   EXIST::FUNCTION:
-des_xcbc_encrypt                        3190   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_xcbc_encrypt                       3190   EXIST:VMS,WIN16:FUNCTION:DES
-des_ecb_encrypt                         3191   EXIST:!VMS,!WIN16:FUNCTION:DES
-odes_ecb_encrypt                        3191   EXIST:VMS,WIN16:FUNCTION:DES
+des_string_to_2keys                     3165   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_string_to_2keys                    3165   EXIST:VMS,WIN16:FUNCTION:DES
+des_ede3_cbc_encrypt                    3166   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_ede3_cbc_encrypt                   3166   EXIST:VMS,WIN16:FUNCTION:DES
+des_cbc_cksum                           3167   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_cbc_cksum                          3167   EXIST:VMS,WIN16:FUNCTION:DES
+des_ede3_cfb64_encrypt                  3168   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_ede3_cfb64_encrypt                 3168   EXIST:VMS,WIN16:FUNCTION:DES
+des_string_to_key                       3169   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_string_to_key                      3169   EXIST:VMS,WIN16:FUNCTION:DES
+des_set_odd_parity                      3170   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_set_odd_parity                     3170   EXIST:VMS,WIN16:FUNCTION:DES
+des_fcrypt                              3171   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_fcrypt                             3171   EXIST:VMS,WIN16:FUNCTION:DES
+des_ecb3_encrypt                        3172   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_ecb3_encrypt                       3172   EXIST:VMS,WIN16:FUNCTION:DES
+des_cbc_encrypt                         3173   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_cbc_encrypt                        3173   EXIST:VMS,WIN16:FUNCTION:DES
+des_cfb_encrypt                         3174   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_cfb_encrypt                        3174   EXIST:VMS,WIN16:FUNCTION:DES
+des_quad_cksum                          3175   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_quad_cksum                         3175   EXIST:VMS,WIN16:FUNCTION:DES
+des_encrypt2                            3176   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_encrypt2                           3176   EXIST:VMS,WIN16:FUNCTION:DES
+des_encrypt3                            3177   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_encrypt3                           3177   EXIST:VMS,WIN16:FUNCTION:DES
+des_ede3_ofb64_encrypt                  3178   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_ede3_ofb64_encrypt                 3178   EXIST:VMS,WIN16:FUNCTION:DES
+des_enc_write                           3179   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_enc_write                          3179   EXIST:VMS,WIN16:FUNCTION:DES
+des_ncbc_encrypt                        3180   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_ncbc_encrypt                       3180   EXIST:VMS,WIN16:FUNCTION:DES
+des_pcbc_encrypt                        3181   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_pcbc_encrypt                       3181   EXIST:VMS,WIN16:FUNCTION:DES
+des_set_key                             3182   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_set_key                            3182   EXIST:VMS,WIN16:FUNCTION:DES
+des_cfb64_encrypt                       3183   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_cfb64_encrypt                      3183   EXIST:VMS,WIN16:FUNCTION:DES
+des_ofb_encrypt                         3184   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_ofb_encrypt                        3184   EXIST:VMS,WIN16:FUNCTION:DES
+des_xcbc_encrypt                        3185   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_xcbc_encrypt                       3185   EXIST:VMS,WIN16:FUNCTION:DES
+des_ecb_encrypt                         3186   EXIST:!VMS,!WIN16:FUNCTION:DES
+odes_ecb_encrypt                        3186   EXIST:VMS,WIN16:FUNCTION:DES