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

Go to the source code of this file.

Classes

struct  EVP_RC2_KEY
 

Macros

#define data(ctx)   ((EVP_RC2_KEY *)(ctx)->cipher_data)
 
#define RC2_40_MAGIC   0xa0
 
#define RC2_64_MAGIC   0x78
 
#define RC2_128_MAGIC   0x3a
 

Functions

 IMPLEMENT_BLOCK_CIPHER (rc2, ks, RC2, EVP_RC2_KEY, NID_rc2, 8, RC2_KEY_LENGTH, 8, 64, EVP_CIPH_VARIABLE_LENGTH|EVP_CIPH_CTRL_INIT, rc2_init_key, NULL, rc2_set_asn1_type_and_iv, rc2_get_asn1_type_and_iv, rc2_ctrl) static const EVP_CIPHER r2_64_cbc_cipher
 
const EVP_CIPHEREVP_rc2_64_cbc (void)
 
const EVP_CIPHEREVP_rc2_40_cbc (void)
 

Macro Definition Documentation

#define data (   ctx)    ((EVP_RC2_KEY *)(ctx)->cipher_data)

Definition at line 83 of file e_rc2.c.

#define RC2_128_MAGIC   0x3a
#define RC2_40_MAGIC   0xa0
#define RC2_64_MAGIC   0x78

Function Documentation

const EVP_CIPHER* EVP_rc2_40_cbc ( void  )

Definition at line 132 of file e_rc2.c.

const EVP_CIPHER* EVP_rc2_64_cbc ( void  )

Definition at line 127 of file e_rc2.c.

IMPLEMENT_BLOCK_CIPHER ( rc2  ,
ks  ,
RC2  ,
EVP_RC2_KEY  ,
NID_rc2  ,
,
RC2_KEY_LENGTH  ,
,
64  ,
EVP_CIPH_VARIABLE_LENGTH EVP_CIPH_CTRL_INIT,
rc2_init_key  ,
NULL  ,
rc2_set_asn1_type_and_iv  ,
rc2_get_asn1_type_and_iv  ,
rc2_ctrl   
) const