Home | History | Annotate | Line # | Download | only in evp
      1 /*
      2  * Copyright 2004-2016 The OpenSSL Project Authors. All Rights Reserved.
      3  *
      4  * Licensed under the OpenSSL license (the "License").  You may not use
      5  * this file except in compliance with the License.  You can obtain a copy
      6  * in the file LICENSE in the source distribution or at
      7  * https://www.openssl.org/source/license.html
      8  */
      9 
     10 #include <openssl/opensslconf.h>
     11 #if OPENSSL_API_COMPAT >= 0x00908000L
     12 NON_EMPTY_TRANSLATION_UNIT
     13 #else
     14 
     15 # include <openssl/evp.h>
     16 
     17 /*
     18  * Define some deprecated functions, so older programs don't crash and burn
     19  * too quickly.  On Windows and VMS, these will never be used, since
     20  * functions and variables in shared libraries are selected by entry point
     21  * location, not by name.
     22  */
     23 
     24 # ifndef OPENSSL_NO_BF
     25 #  undef EVP_bf_cfb
     26 const EVP_CIPHER *EVP_bf_cfb(void);
     27 const EVP_CIPHER *EVP_bf_cfb(void)
     28 {
     29     return EVP_bf_cfb64();
     30 }
     31 # endif
     32 
     33 # ifndef OPENSSL_NO_DES
     34 #  undef EVP_des_cfb
     35 const EVP_CIPHER *EVP_des_cfb(void);
     36 const EVP_CIPHER *EVP_des_cfb(void)
     37 {
     38     return EVP_des_cfb64();
     39 }
     40 
     41 #  undef EVP_des_ede3_cfb
     42 const EVP_CIPHER *EVP_des_ede3_cfb(void);
     43 const EVP_CIPHER *EVP_des_ede3_cfb(void)
     44 {
     45     return EVP_des_ede3_cfb64();
     46 }
     47 
     48 #  undef EVP_des_ede_cfb
     49 const EVP_CIPHER *EVP_des_ede_cfb(void);
     50 const EVP_CIPHER *EVP_des_ede_cfb(void)
     51 {
     52     return EVP_des_ede_cfb64();
     53 }
     54 # endif
     55 
     56 # ifndef OPENSSL_NO_IDEA
     57 #  undef EVP_idea_cfb
     58 const EVP_CIPHER *EVP_idea_cfb(void);
     59 const EVP_CIPHER *EVP_idea_cfb(void)
     60 {
     61     return EVP_idea_cfb64();
     62 }
     63 # endif
     64 
     65 # ifndef OPENSSL_NO_RC2
     66 #  undef EVP_rc2_cfb
     67 const EVP_CIPHER *EVP_rc2_cfb(void);
     68 const EVP_CIPHER *EVP_rc2_cfb(void)
     69 {
     70     return EVP_rc2_cfb64();
     71 }
     72 # endif
     73 
     74 # ifndef OPENSSL_NO_CAST
     75 #  undef EVP_cast5_cfb
     76 const EVP_CIPHER *EVP_cast5_cfb(void);
     77 const EVP_CIPHER *EVP_cast5_cfb(void)
     78 {
     79     return EVP_cast5_cfb64();
     80 }
     81 # endif
     82 
     83 # ifndef OPENSSL_NO_RC5
     84 #  undef EVP_rc5_32_12_16_cfb
     85 const EVP_CIPHER *EVP_rc5_32_12_16_cfb(void);
     86 const EVP_CIPHER *EVP_rc5_32_12_16_cfb(void)
     87 {
     88     return EVP_rc5_32_12_16_cfb64();
     89 }
     90 # endif
     91 
     92 # undef EVP_aes_128_cfb
     93 const EVP_CIPHER *EVP_aes_128_cfb(void);
     94 const EVP_CIPHER *EVP_aes_128_cfb(void)
     95 {
     96     return EVP_aes_128_cfb128();
     97 }
     98 
     99 # undef EVP_aes_192_cfb
    100 const EVP_CIPHER *EVP_aes_192_cfb(void);
    101 const EVP_CIPHER *EVP_aes_192_cfb(void)
    102 {
    103     return EVP_aes_192_cfb128();
    104 }
    105 
    106 # undef EVP_aes_256_cfb
    107 const EVP_CIPHER *EVP_aes_256_cfb(void);
    108 const EVP_CIPHER *EVP_aes_256_cfb(void)
    109 {
    110     return EVP_aes_256_cfb128();
    111 }
    112 
    113 #endif
    114