oxs_derivation.h

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 #ifndef OXS_DERIVATION_H
00019 #define OXS_DERIVATION_H
00020 
00021 
00032 #include <axis2_defines.h>
00033 #include <axutil_env.h>
00034 #include <oxs_key.h>
00035 #include <oxs_buffer.h>
00036 
00037 #ifdef __cplusplus
00038 extern "C"
00039 {
00040 #endif
00041 
00042 
00054     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00055     oxs_derivation_derive_key(const axutil_env_t *env,
00056                          oxs_key_t *secret,
00057                          oxs_key_t *derived_key,
00058                                                  axis2_bool_t build_fresh
00059                          );
00070     AXIS2_EXTERN axiom_node_t * AXIS2_CALL
00071     oxs_derivation_build_derived_key_token(const axutil_env_t *env,
00072     oxs_key_t *derived_key,
00073     axiom_node_t *parent,
00074     axis2_char_t *stref_uri,
00075     axis2_char_t *stref_val_type);
00076 
00086     AXIS2_EXTERN axiom_node_t * AXIS2_CALL
00087     oxs_derivation_build_derived_key_token_with_stre(const axutil_env_t *env,
00088                                                     oxs_key_t *derived_key,
00089                                                     axiom_node_t *parent,    
00090                                                     axiom_node_t *stre);
00101     AXIS2_EXTERN oxs_key_t * AXIS2_CALL
00102     oxs_derivation_extract_derived_key_from_token(const axutil_env_t *env,
00103     axiom_node_t *dk_token,
00104     axiom_node_t *root_node,
00105     oxs_key_t *session_key);
00107 #ifdef __cplusplus
00108 }
00109 #endif
00110 
00111 #endif                          /* OXS_DERIVATION_H */

Generated on Thu May 22 15:02:56 2008 for Rampart/C by  doxygen 1.5.5