# openssl_constants.h

Go to the documentation of this file.

    00001 /*
    00002  *   Copyright 2003-2004 The Apache Software Foundation.
    00003  *
    00004  *   Licensed under the Apache License, Version 2.0 (the "License");
    00005  *   you may not use this file except in compliance with the License.
    00006  *   You may obtain a copy of the License at
    00007  *
    00008  *       http://www.apache.org/licenses/LICENSE-2.0
    00009  *
    00010  *   Unless required by applicable law or agreed to in writing, software
    00011  *   distributed under the License is distributed on an "AS IS" BASIS,
    00012  *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00013  *   See the License for the specific language governing permissions and
    00014  *   limitations under the License.
    00015  */
    00016
    00017 #include <axis2_util.h>
    00018
    00023 #ifndef OPENSSL_CONSTANTS_H
    00024 #define OPENSSL_CONSTANTS_H
    00025
    00033 #ifdef __cplusplus
    00034 extern "C" {
    00035 #endif
    00036
    00037 #define OPENSSL_ENCRYPT             1
    00038 #define OPENSSL_DECRYPT             0
    00039 #define OPENSSL_LEAVE_UNCHANGED     -1
    00040
    00043 #define OPENSSL_EVP_des_ede3_cbc     "EVP_des_ede3_cbc"
    00044 #define OPENSSL_EVP_aes_128_cbc      "EVP_aes_128_cbc"
    00045 #define OPENSSL_EVP_aes_192_cbc      "EVP_aes_192_cbc"
    00046 #define OPENSSL_EVP_aes_256_cbc      "EVP_aes_256_cbc"
    00047
    00048 #define OPENSSL_HMAC_SHA1            "HmacSha1"
    00049 #define OPENSSL_HMAC_SHA1_KEY_LEN     32
    00050
    00051 #define OPENSSL_RSA_ENCRYPTION      "rsaEncryption"
    00052 #define OPENSSL_RSA_PKCS1_PADDING    "RSA_PKCS1_PADDING"
    00053 #define OPENSSL_RSA_PKCS1_OAEP_PADDING     "RSA_PKCS1_OAEP_PADDING"
    00054
    00055 #define OPENSSL_DEFAULT_IV8          "01234567"
    00056 #define OPENSSL_DEFAULT_IV16         "0123456701234567"
    00057 #define OPENSSL_DEFAULT_IV24         "012345670123456701234567"
    00058
    00059 #define OPENSSL_DEFAULT_LABEL_FOR_PSHA1 "WS-SecureConversation"
    00060 #define OPENSSL_DEFAULT_KEY_LEN_FOR_PSHA1 32
    00061 #define OPENSSL_DEFAULT_KEY_OFFSET_FOR_PSHA1 0
    00062
    00064 #ifdef __cplusplus
    00065 }
    00066 #endif
    00067
    00068 #endif    /* OPENSSL_CONSTANTS_H */