#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.
|
| 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_CIPHER * | EVP_rc2_64_cbc (void) |
|
const EVP_CIPHER * | EVP_rc2_40_cbc (void) |
|
#define data |
( |
|
ctx | ) |
((EVP_RC2_KEY *)(ctx)->cipher_data) |
#define RC2_128_MAGIC 0x3a |
#define RC2_40_MAGIC 0xa0 |
#define RC2_64_MAGIC 0x78 |
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 |
|
|
) |
| const |