{-------------------------------------------------------------------------------
Translated form headers/epv.h

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      THIS ISN'T COMPLETE TRANSLATION OF C++ HEADERS AND NEVER WILL BE.

  FOR COPYRIGHT OF ORIGINAL ERIC YOUNG SOFTWARE LOOK AT FILES IN HEADER FOLDER.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

      Copyright (C) 1998 by Jan Tomasek <xtomasej@fel.cvut.cz>
      All rights reserved.

      This library is free for commercial and non-commercial use as long as
      the following conditions are aheared to.  The following conditions
      apply to all code found in this distribution.  The documentation
      included with this distribution is covered by the same copyright terms.

      Copyright remains Jan Tomasek's, and as such any Copyright notices in
      the code are not to be removed.
      If this package is used in a product, Jan Tomasek should be given
      attribution as the author of the parts of the library used.
      This can be in the form of a textual message at program startup or
      in documentation (online or textual) provided with the package.

      Redistribution and use in source and binary forms, with or without
      modification, are permitted provided that the following conditions
      are met:
      1. Redistributions of source code must retain the copyright
         notice, this list of conditions and the following disclaimer.
      2. Redistributions in binary form must reproduce the above copyright
         notice, this list of conditions and the following disclaimer in the
         documentation and/or other materials provided with the distribution.
      3. All advertising materials mentioning features or use of this software
         must display the following acknowledgement:
             "This product includes software written by
              Jan Tomasek <xtomasej@fel.cvut.cz>"

      THIS SOFTWARE IS PROVIDED BY JAN TOMASEK ``AS IS'' AND
      ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
      IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
      ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
      FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
      DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
      OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
      HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
      LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
      OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
      SUCH DAMAGE.

      The licence and distribution terms for any publically available version or
      derivative of this code cannot be changed.  i.e. this code cannot simply
      be copied and put under another distribution licence
      [including the GNU Public Licence.]
-------------------------------------------------------------------------------}
Const EVP_RC2_KEY_SIZE                                           = 16;
Const EVP_RC4_KEY_SIZE                                           = 16;
Const EVP_BLOWFISH_KEY_SIZE                                      = 16;
Const EVP_MAX_MD_SIZE                                            = 20;
Const EVP_MAX_KEY_LENGTH                                         = 24;
Const EVP_MAX_IV_LENGTH                                          =  8;

Const EVP_PK_RSA                                                 = $0001;
Const EVP_PK_DSA                                                 = $0002;
Const EVP_PK_DH                                                  = $0004;
Const EVP_PKT_SIGN                                               = $0010;
Const EVP_PKT_ENC                                                = $0020;
Const EVP_PKT_EXCH                                               = $0040;
Const EVP_PKS_RSA                                                = $0100;
Const EVP_PKS_DSA                                                = $0200;
Const EVP_PKT_EXP                                                = $1000; { <= 512 bit key }

{ BEGIN ERROR CODES }
{ Error codes for the EVP functions. }

{ Function codes. }
const EVP_F_D2I_PKEY                                             = 100;
const EVP_F_EVP_DECRYPTFINAL                                     = 101;
const EVP_F_EVP_OPENINIT                                         = 102;
const EVP_F_EVP_PKEY_COPY_PARAMETERS                             = 103;
const EVP_F_EVP_PKEY_NEW                                         = 104;
const EVP_F_EVP_SEALINIT                                         = 105;
const EVP_F_EVP_SIGNFINAL                                        = 106;
const EVP_F_EVP_VERIFYFINAL                                      = 107;

{ Reason codes. }
const EVP_R_BAD_DECRYPT                                          = 100;
const EVP_R_DIFFERENT_KEY_TYPES                                  = 101;
const EVP_R_IV_TOO_LARGE                                         = 102;
const EVP_R_MISSING_PARMATERS                                    = 103;
const EVP_R_NO_SIGN_FUNCTION_CONFIGURED                          = 104;
const EVP_R_NO_VERIFY_FUNCTION_CONFIGURED                        = 105;
const EVP_R_PUBLIC_KEY_NOT_RSA                                   = 106;
const EVP_R_UNSUPPORTED_CIPHER                                   = 107;
const EVP_R_WRONG_FINAL_BLOCK_LENGTH                             = 108;
const EVP_R_WRONG_PUBLIC_KEY_TYPE                                = 109;

