OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
evp_enc.c File Reference
#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_CTXEVP_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
 

Macro Definition Documentation

#define M_do_cipher (   ctx,
  out,
  in,
  inl 
)    ctx->cipher->do_cipher(ctx, out, in, inl)

Definition at line 75 of file evp_enc.c.

Function Documentation

int EVP_CIPHER_CTX_cleanup ( EVP_CIPHER_CTX c)

Definition at line 569 of file evp_enc.c.

int EVP_CIPHER_CTX_copy ( EVP_CIPHER_CTX out,
const EVP_CIPHER_CTX in 
)

Definition at line 647 of file evp_enc.c.

int EVP_CIPHER_CTX_ctrl ( EVP_CIPHER_CTX ctx,
int  type,
int  arg,
void ptr 
)

Definition at line 617 of file evp_enc.c.

void EVP_CIPHER_CTX_free ( EVP_CIPHER_CTX ctx)

Definition at line 560 of file evp_enc.c.

void EVP_CIPHER_CTX_init ( EVP_CIPHER_CTX ctx)

Definition at line 81 of file evp_enc.c.

EVP_CIPHER_CTX* EVP_CIPHER_CTX_new ( void  )

Definition at line 87 of file evp_enc.c.

int EVP_CIPHER_CTX_rand_key ( EVP_CIPHER_CTX ctx,
unsigned char *  key 
)

Definition at line 638 of file evp_enc.c.

int EVP_CIPHER_CTX_set_key_length ( EVP_CIPHER_CTX c,
int  keylen 
)

Definition at line 596 of file evp_enc.c.

int EVP_CIPHER_CTX_set_padding ( EVP_CIPHER_CTX ctx,
int  pad 
)

Definition at line 610 of file evp_enc.c.

int EVP_CipherFinal ( EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl 
)

Definition at line 276 of file evp_enc.c.

int EVP_CipherFinal_ex ( EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl 
)

Definition at line 269 of file evp_enc.c.

int EVP_CipherInit ( EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
const unsigned char *  key,
const unsigned char *  iv,
int  enc 
)

Definition at line 95 of file evp_enc.c.

int EVP_CipherInit_ex ( EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
ENGINE impl,
const unsigned char *  key,
const unsigned char *  iv,
int  enc 
)

Definition at line 103 of file evp_enc.c.

int EVP_CipherUpdate ( EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl,
const unsigned char *  in,
int  inl 
)

Definition at line 261 of file evp_enc.c.

int EVP_DecryptFinal ( EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl 
)

Definition at line 494 of file evp_enc.c.

int EVP_DecryptFinal_ex ( EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl 
)

Definition at line 501 of file evp_enc.c.

int EVP_DecryptInit ( EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
const unsigned char *  key,
const unsigned char *  iv 
)

Definition at line 295 of file evp_enc.c.

int EVP_DecryptInit_ex ( EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
ENGINE impl,
const unsigned char *  key,
const unsigned char *  iv 
)

Definition at line 301 of file evp_enc.c.

int EVP_DecryptUpdate ( EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl,
const unsigned char *  in,
int  inl 
)

Definition at line 433 of file evp_enc.c.

int EVP_EncryptFinal ( EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl 
)

Definition at line 380 of file evp_enc.c.

int EVP_EncryptFinal_ex ( EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl 
)

Definition at line 387 of file evp_enc.c.

int EVP_EncryptInit ( EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
const unsigned char *  key,
const unsigned char *  iv 
)

Definition at line 283 of file evp_enc.c.

int EVP_EncryptInit_ex ( EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
ENGINE impl,
const unsigned char *  key,
const unsigned char *  iv 
)

Definition at line 289 of file evp_enc.c.

int EVP_EncryptUpdate ( EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl,
const unsigned char *  in,
int  inl 
)

Definition at line 307 of file evp_enc.c.

Variable Documentation

const char EVP_version[] ="EVP" OPENSSL_VERSION_PTEXT

Definition at line 79 of file evp_enc.c.