# oxs_asym_ctx.h File Reference

Keeps information relavent for asymmetric encryption. More...

`#include <axis2_defines.h>`
`#include <axutil_env.h>`
`#include <axiom_node.h>`
`#include <oxs_x509_cert.h>`
`#include <openssl_pkey.h>`

Go to the source code of this file.

## Typedefs
typedef struct oxs_asym_ctx_t | oxs_asym_ctx_t
## Enumerations
enum | oxs_asym_ctx_format_t { OXS_ASYM_CTX_FORMAT_UNKNOWN = 0, OXS_ASYM_CTX_FORMAT_PEM, OXS_ASYM_CTX_FORMAT_PKCS12 }
enum | oxs_asym_ctx_operation_t { OXS_ASYM_CTX_OPERATION_PUB_ENCRYPT = 0, OXS_ASYM_CTX_OPERATION_PRV_DECRYPT, OXS_ASYM_CTX_OPERATION_PUB_DECRYPT, OXS_ASYM_CTX_OPERATION_PRV_ENCRYPT }
## Functions
AXIS2_EXTERN oxs_asym_ctx_t * | oxs_asym_ctx_create (const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | oxs_asym_ctx_free (oxs_asym_ctx_t *ctx, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | oxs_asym_ctx_get_algorithm (const oxs_asym_ctx_t *ctx, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | oxs_asym_ctx_get_st_ref_pattern (const oxs_asym_ctx_t *ctx, const axutil_env_t *env)
AXIS2_EXTERN oxs_asym_ctx_operation_t | oxs_asym_ctx_get_operation (const oxs_asym_ctx_t *ctx, const axutil_env_t *env)
AXIS2_EXTERN openssl_pkey_t * | oxs_asym_ctx_get_private_key (const oxs_asym_ctx_t *ctx, const axutil_env_t *env)
AXIS2_EXTERN oxs_x509_cert_t * | oxs_asym_ctx_get_certificate (const oxs_asym_ctx_t *ctx, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | oxs_asym_ctx_set_algorithm (oxs_asym_ctx_t *ctx, const axutil_env_t *env, axis2_char_t *algorithm)
AXIS2_EXTERN axis2_status_t | oxs_asym_ctx_set_st_ref_pattern (oxs_asym_ctx_t *ctx, const axutil_env_t *env, axis2_char_t *st_ref_pattern)
AXIS2_EXTERN axis2_status_t | oxs_asym_ctx_set_operation (oxs_asym_ctx_t *ctx, const axutil_env_t *env, oxs_asym_ctx_operation_t operation)
AXIS2_EXTERN axis2_status_t | oxs_asym_ctx_set_certificate (oxs_asym_ctx_t *ctx, const axutil_env_t *env, oxs_x509_cert_t *certificate)
AXIS2_EXTERN axis2_status_t | oxs_asym_ctx_set_private_key (oxs_asym_ctx_t *asym_ctx, const axutil_env_t *env, openssl_pkey_t *private_key)

## Detailed Description

Keeps information relavent for asymmetric encryption.