OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
encode.c File Reference
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>

Go to the source code of this file.

Macros

#define conv_bin2ascii(a)   (data_bin2ascii[(a)&0x3f])
 
#define conv_ascii2bin(a)   (data_ascii2bin[(a)&0x7f])
 
#define BIN_PER_LINE   (64/4*3)
 
#define CHUNKS_PER_LINE   (64/4)
 
#define CHAR_PER_LINE   (64+1)
 
#define B64_EOLN   0xF0
 
#define B64_CR   0xF1
 
#define B64_EOF   0xF2
 
#define B64_WS   0xE0
 
#define B64_ERROR   0xFF
 
#define B64_NOT_BASE64(a)   (((a)|0x13) == 0xF3)
 

Functions

void EVP_EncodeInit (EVP_ENCODE_CTX *ctx)
 
void EVP_EncodeUpdate (EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl)
 
void EVP_EncodeFinal (EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl)
 
int EVP_EncodeBlock (unsigned char *t, const unsigned char *f, int dlen)
 
void EVP_DecodeInit (EVP_ENCODE_CTX *ctx)
 
int EVP_DecodeUpdate (EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl)
 
int EVP_DecodeBlock (unsigned char *t, const unsigned char *f, int n)
 
int EVP_DecodeFinal (EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl)
 

Macro Definition Documentation

#define B64_CR   0xF1

Definition at line 99 of file encode.c.

#define B64_EOF   0xF2

Definition at line 100 of file encode.c.

#define B64_EOLN   0xF0

Definition at line 98 of file encode.c.

#define B64_ERROR   0xFF

Definition at line 102 of file encode.c.

#define B64_NOT_BASE64 (   a)    (((a)|0x13) == 0xF3)

Definition at line 103 of file encode.c.

#define B64_WS   0xE0

Definition at line 101 of file encode.c.

#define BIN_PER_LINE   (64/4*3)

Definition at line 84 of file encode.c.

#define CHAR_PER_LINE   (64+1)

Definition at line 86 of file encode.c.

#define CHUNKS_PER_LINE   (64/4)

Definition at line 85 of file encode.c.

#define conv_ascii2bin (   a)    (data_ascii2bin[(a)&0x7f])

Definition at line 65 of file encode.c.

#define conv_bin2ascii (   a)    (data_bin2ascii[(a)&0x3f])

Definition at line 64 of file encode.c.

Function Documentation

int EVP_DecodeBlock ( unsigned char *  t,
const unsigned char *  f,
int  n 
)

Definition at line 358 of file encode.c.

int EVP_DecodeFinal ( EVP_ENCODE_CTX ctx,
unsigned char *  out,
int *  outl 
)

Definition at line 398 of file encode.c.

void EVP_DecodeInit ( EVP_ENCODE_CTX ctx)

Definition at line 223 of file encode.c.

int EVP_DecodeUpdate ( EVP_ENCODE_CTX ctx,
unsigned char *  out,
int *  outl,
const unsigned char *  in,
int  inl 
)

Definition at line 235 of file encode.c.

int EVP_EncodeBlock ( unsigned char *  t,
const unsigned char *  f,
int  dlen 
)

Definition at line 189 of file encode.c.

void EVP_EncodeFinal ( EVP_ENCODE_CTX ctx,
unsigned char *  out,
int *  outl 
)

Definition at line 175 of file encode.c.

void EVP_EncodeInit ( EVP_ENCODE_CTX ctx)

Definition at line 124 of file encode.c.

void EVP_EncodeUpdate ( EVP_ENCODE_CTX ctx,
unsigned char *  out,
int *  outl,
const unsigned char *  in,
int  inl 
)

Definition at line 131 of file encode.c.