openssl_cipher_property.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<openssl/evp.h>
00018 #include<oxs_buffer.h>
00019 
00024 #ifndef OPENSSL_CIPHER_PROPERTY_H
00025 #define OPENSSL_CIPHER_PROPERTY_H
00026 
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036 
00037 
00039     typedef struct openssl_cipher_property_t openssl_cipher_property_t;
00040 
00041 
00042     EVP_CIPHER * AXIS2_CALL
00043     openssl_cipher_property_get_cipher(
00044         const openssl_cipher_property_t *cprop,
00045         const axutil_env_t *env);
00046 
00047     axis2_char_t * AXIS2_CALL
00048     openssl_cipher_property_get_name(
00049         const openssl_cipher_property_t *cprop,
00050         const axutil_env_t *env);
00051 
00052     axis2_char_t * AXIS2_CALL
00053     openssl_cipher_property_get_url(
00054         const openssl_cipher_property_t *cprop,
00055         const axutil_env_t *env);
00056 
00057     int AXIS2_CALL
00058     openssl_cipher_property_get_key_size(
00059         const openssl_cipher_property_t *cprop,
00060         const axutil_env_t *env);
00061 
00062     int AXIS2_CALL
00063     openssl_cipher_property_get_block_size(
00064         const openssl_cipher_property_t *cprop,
00065         const axutil_env_t *env);
00066 
00067     int AXIS2_CALL
00068     openssl_cipher_property_get_iv_size(
00069         const openssl_cipher_property_t *cprop,
00070         const axutil_env_t *env);
00071 
00072     axis2_status_t AXIS2_CALL
00073     openssl_cipher_property_set_cipher(
00074         openssl_cipher_property_t *cprop,
00075         const axutil_env_t *env,
00076         EVP_CIPHER *cipher);
00077 
00078     axis2_status_t AXIS2_CALL
00079     openssl_cipher_property_set_name(
00080         openssl_cipher_property_t *cprop,
00081         const axutil_env_t *env,
00082         axis2_char_t *name);
00083 
00084     axis2_status_t AXIS2_CALL
00085     openssl_cipher_property_set_url(
00086         openssl_cipher_property_t *cprop,
00087         const axutil_env_t *env,
00088         axis2_char_t *name);
00089 
00090     axis2_status_t AXIS2_CALL
00091     openssl_cipher_property_set_key_size(
00092         openssl_cipher_property_t *cprop,
00093         const axutil_env_t *env,
00094         int   key_size);
00095 
00096 
00097     axis2_status_t AXIS2_CALL
00098     openssl_cipher_property_set_block_size(
00099         openssl_cipher_property_t *cprop,
00100         const axutil_env_t *env,
00101         int  block_size);
00102 
00103     axis2_status_t AXIS2_CALL
00104     openssl_cipher_property_set_iv_size(
00105         openssl_cipher_property_t *cprop,
00106         const axutil_env_t *env,
00107         int   iv_size);
00108 
00109     axis2_status_t AXIS2_CALL
00110     openssl_cipher_property_free(openssl_cipher_property_t * cprop, const axutil_env_t *env);
00111 
00112 
00117     AXIS2_EXTERN openssl_cipher_property_t *AXIS2_CALL
00118     openssl_cipher_property_create(const axutil_env_t *env);
00119 
00122 #ifdef __cplusplus
00123 }
00124 #endif
00125 
00126 #endif    /* OPENSSL_CIPHER_PROPERTY_H */

Generated on Thu Oct 4 17:37:07 2007 for Rampart/C by  doxygen 1.4.7