|
Classes |
struct | soap_mec_data |
| The mecevp engine context data. More...
|
Defines |
#define | SOAP_MEC_KEY_TYPE EVP_PKEY |
#define | SOAP_MEC_NONE (0) |
#define | SOAP_MEC_DES_CBC (0x10) |
#define | SOAP_MEC_ENC (0x20) |
#define | SOAP_MEC_ENV (0x40) |
#define | SOAP_MEC_STORE (0x80) |
#define | SOAP_MEC_ENC_DES_CBC (SOAP_MEC_DES_CBC | SOAP_MEC_ENC) |
#define | SOAP_MEC_DEC_DES_CBC (SOAP_MEC_DES_CBC) |
#define | SOAP_MEC_ENV_ENC_DES_CBC (SOAP_MEC_ENC_DES_CBC | SOAP_MEC_ENV) |
#define | SOAP_MEC_ENV_DEC_DES_CBC (SOAP_MEC_DEC_DES_CBC | SOAP_MEC_ENV) |
Enumerations |
enum | SOAP_MEC_STATE {
SOAP_MEC_STATE_NONE,
SOAP_MEC_STATE_INIT,
SOAP_MEC_STATE_IV,
SOAP_MEC_STATE_DECRYPT,
SOAP_MEC_STATE_FINAL,
SOAP_MEC_STATE_FLUSH
} |
Functions |
int | soap_mec_begin (struct soap *soap, struct soap_mec_data *data, int alg, SOAP_MEC_KEY_TYPE *pkey, unsigned char *key, int *keylen) |
| Initialize the mecevp engine data and begin encryption or decryption message sequence using a private/public key or symmetric secret key.
|
int | soap_mec_start (struct soap *soap, const unsigned char *key) |
| Start encryption or decryption of current message. If key is non-NULL, use the symmetric triple DES key. Use soap_mec_start only after soap_mec_begin. The soap_mec_start should be followed by a soap_mec_stop call.
|
int | soap_mec_stop (struct soap *soap) |
| Stops encryption or decryption of current message. Use after soap_mec_start.
|
int | soap_mec_end (struct soap *soap, struct soap_mec_data *data) |
| Ends encryption or decryption of a sequence of message parts that began with soap_mec_begin.
|
size_t | soap_mec_size (int alg, SOAP_MEC_KEY_TYPE *pkey) |
| Returns the number of octets needed to store the public/private key or the symmetric triple DES key, depending on the algorithm.
|
int | soap_mec_init (struct soap *soap, struct soap_mec_data *data, int alg, SOAP_MEC_KEY_TYPE *pkey, unsigned char *key, int *keylen) |
| Initialize mecevp engine state and create context for encryption/decryption algorithm using a private/public key or symmetric secret key.
|
int | soap_mec_update (struct soap *soap, struct soap_mec_data *data, const char **s, size_t *n) |
| Update mecevp engine state: encrypts plain text (or raw data) or decrypts cipher data in base64 format.
|
int | soap_mec_final (struct soap *soap, struct soap_mec_data *data, const char **s, size_t *n) |
| Ends mecevp engine state: encrypt/decrypt remainder from buffers.
|
void | soap_mec_cleanup (struct soap *soap, struct soap_mec_data *data) |
| Clean up mecevp engine and deallocate cipher context and buffers.
|