openssl_rsa.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/rand.h>
00018 #include <openssl/evp.h>
00019 #include <openssl/pem.h>
00020 #include <openssl/bio.h>
00021 #include <openssl/rand.h>
00022 #include <openssl_constants.h>
00023 #include <openssl_pkey.h>
00024 #include <axis2_util.h>
00025 #include <oxs_buffer.h>
00026 
00031 #ifndef OPENSSL_RSA_H
00032 #define OPENSSL_RSA_H
00033 
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037 
00052     int AXIS2_CALL
00053     openssl_rsa_prv_decrypt(
00054         const axutil_env_t *env,
00055         const openssl_pkey_t *pkey,
00056         const axis2_char_t *padding,
00057         oxs_buffer_t *in,
00058         oxs_buffer_t *out);
00059 
00069     int AXIS2_CALL
00070     openssl_rsa_pub_encrypt(
00071         const axutil_env_t *env,
00072         const openssl_pkey_t *pkey,
00073         const axis2_char_t *padding,
00074         oxs_buffer_t *in,
00075         oxs_buffer_t *out);
00076 
00086     int AXIS2_CALL
00087     openssl_rsa_prv_encrypt(
00088         const axutil_env_t *env,
00089         const openssl_pkey_t *pkey,
00090         const axis2_char_t *padding,
00091         oxs_buffer_t *in,
00092         oxs_buffer_t *out);
00093 
00103     int AXIS2_CALL
00104     openssl_rsa_pub_decrypt(
00105         const axutil_env_t *env,
00106         const openssl_pkey_t *pkey,
00107         const axis2_char_t *padding,
00108         oxs_buffer_t *in,
00109         oxs_buffer_t *out);
00110 
00111 
00113 #ifdef __cplusplus
00114 }
00115 #endif
00116 
00117 #endif    /* OPENSSL_RSA_H */

Generated on Wed Oct 14 01:02:15 2009 for Rampart/C by  doxygen 1.5.7.1