#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
#include <openssl/err.h>
#include <openssl/rand.h>
#include <openssl/engine.h>
#include "evp_locl.h"
Go to the source code of this file.
Macros | |
#define | M_do_cipher(ctx, out, in, inl) ctx->cipher->do_cipher(ctx, out, in, inl) |
Functions | |
void | EVP_CIPHER_CTX_init (EVP_CIPHER_CTX *ctx) |
EVP_CIPHER_CTX * | EVP_CIPHER_CTX_new (void) |
int | EVP_CipherInit (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv, int enc) |
int | EVP_CipherInit_ex (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv, int enc) |
int | EVP_CipherUpdate (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) |
int | EVP_CipherFinal_ex (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) |
int | EVP_CipherFinal (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) |
int | EVP_EncryptInit (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) |
int | EVP_EncryptInit_ex (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv) |
int | EVP_DecryptInit (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) |
int | EVP_DecryptInit_ex (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv) |
int | EVP_EncryptUpdate (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) |
int | EVP_EncryptFinal (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) |
int | EVP_EncryptFinal_ex (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) |
int | EVP_DecryptUpdate (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) |
int | EVP_DecryptFinal (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) |
int | EVP_DecryptFinal_ex (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) |
void | EVP_CIPHER_CTX_free (EVP_CIPHER_CTX *ctx) |
int | EVP_CIPHER_CTX_cleanup (EVP_CIPHER_CTX *c) |
int | EVP_CIPHER_CTX_set_key_length (EVP_CIPHER_CTX *c, int keylen) |
int | EVP_CIPHER_CTX_set_padding (EVP_CIPHER_CTX *ctx, int pad) |
int | EVP_CIPHER_CTX_ctrl (EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) |
int | EVP_CIPHER_CTX_rand_key (EVP_CIPHER_CTX *ctx, unsigned char *key) |
int | EVP_CIPHER_CTX_copy (EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in) |
Variables | |
const char | EVP_version [] ="EVP" OPENSSL_VERSION_PTEXT |
int EVP_CIPHER_CTX_cleanup | ( | EVP_CIPHER_CTX * | c | ) |
int EVP_CIPHER_CTX_copy | ( | EVP_CIPHER_CTX * | out, |
const EVP_CIPHER_CTX * | in | ||
) |
int EVP_CIPHER_CTX_ctrl | ( | EVP_CIPHER_CTX * | ctx, |
int | type, | ||
int | arg, | ||
void * | ptr | ||
) |
void EVP_CIPHER_CTX_free | ( | EVP_CIPHER_CTX * | ctx | ) |
void EVP_CIPHER_CTX_init | ( | EVP_CIPHER_CTX * | ctx | ) |
EVP_CIPHER_CTX* EVP_CIPHER_CTX_new | ( | void | ) |
int EVP_CIPHER_CTX_rand_key | ( | EVP_CIPHER_CTX * | ctx, |
unsigned char * | key | ||
) |
int EVP_CIPHER_CTX_set_key_length | ( | EVP_CIPHER_CTX * | c, |
int | keylen | ||
) |
int EVP_CIPHER_CTX_set_padding | ( | EVP_CIPHER_CTX * | ctx, |
int | pad | ||
) |
int EVP_CipherFinal | ( | EVP_CIPHER_CTX * | ctx, |
unsigned char * | out, | ||
int * | outl | ||
) |
int EVP_CipherFinal_ex | ( | EVP_CIPHER_CTX * | ctx, |
unsigned char * | out, | ||
int * | outl | ||
) |
int EVP_CipherInit | ( | EVP_CIPHER_CTX * | ctx, |
const EVP_CIPHER * | cipher, | ||
const unsigned char * | key, | ||
const unsigned char * | iv, | ||
int | enc | ||
) |
int EVP_CipherInit_ex | ( | EVP_CIPHER_CTX * | ctx, |
const EVP_CIPHER * | cipher, | ||
ENGINE * | impl, | ||
const unsigned char * | key, | ||
const unsigned char * | iv, | ||
int | enc | ||
) |
int EVP_CipherUpdate | ( | EVP_CIPHER_CTX * | ctx, |
unsigned char * | out, | ||
int * | outl, | ||
const unsigned char * | in, | ||
int | inl | ||
) |
int EVP_DecryptFinal | ( | EVP_CIPHER_CTX * | ctx, |
unsigned char * | out, | ||
int * | outl | ||
) |
int EVP_DecryptFinal_ex | ( | EVP_CIPHER_CTX * | ctx, |
unsigned char * | out, | ||
int * | outl | ||
) |
int EVP_DecryptInit | ( | EVP_CIPHER_CTX * | ctx, |
const EVP_CIPHER * | cipher, | ||
const unsigned char * | key, | ||
const unsigned char * | iv | ||
) |
int EVP_DecryptInit_ex | ( | EVP_CIPHER_CTX * | ctx, |
const EVP_CIPHER * | cipher, | ||
ENGINE * | impl, | ||
const unsigned char * | key, | ||
const unsigned char * | iv | ||
) |
int EVP_DecryptUpdate | ( | EVP_CIPHER_CTX * | ctx, |
unsigned char * | out, | ||
int * | outl, | ||
const unsigned char * | in, | ||
int | inl | ||
) |
int EVP_EncryptFinal | ( | EVP_CIPHER_CTX * | ctx, |
unsigned char * | out, | ||
int * | outl | ||
) |
int EVP_EncryptFinal_ex | ( | EVP_CIPHER_CTX * | ctx, |
unsigned char * | out, | ||
int * | outl | ||
) |
int EVP_EncryptInit | ( | EVP_CIPHER_CTX * | ctx, |
const EVP_CIPHER * | cipher, | ||
const unsigned char * | key, | ||
const unsigned char * | iv | ||
) |
int EVP_EncryptInit_ex | ( | EVP_CIPHER_CTX * | ctx, |
const EVP_CIPHER * | cipher, | ||
ENGINE * | impl, | ||
const unsigned char * | key, | ||
const unsigned char * | iv | ||
) |
int EVP_EncryptUpdate | ( | EVP_CIPHER_CTX * | ctx, |
unsigned char * | out, | ||
int * | outl, | ||
const unsigned char * | in, | ||
int | inl | ||
) |