|
Lines 128-134
Link Here
|
| 128 |
enum my_aes_opmode mode, const unsigned char *iv, |
128 |
enum my_aes_opmode mode, const unsigned char *iv, |
| 129 |
bool padding) |
129 |
bool padding) |
| 130 |
{ |
130 |
{ |
| 131 |
EVP_CIPHER_CTX *ctx; |
131 |
EVP_CIPHER_CTX *ctx=EVP_CIPHER_CTX_new(); |
| 132 |
const EVP_CIPHER *cipher= aes_evp_type(mode); |
132 |
const EVP_CIPHER *cipher= aes_evp_type(mode); |
| 133 |
int u_len, f_len; |
133 |
int u_len, f_len; |
| 134 |
/* The real key to be used for encryption */ |
134 |
/* The real key to be used for encryption */ |
|
Lines 173-179
Link Here
|
| 173 |
bool padding) |
173 |
bool padding) |
| 174 |
{ |
174 |
{ |
| 175 |
|
175 |
|
| 176 |
EVP_CIPHER_CTX *ctx; |
176 |
EVP_CIPHER_CTX *ctx=EVP_CIPHER_CTX_new(); |
| 177 |
const EVP_CIPHER *cipher= aes_evp_type(mode); |
177 |
const EVP_CIPHER *cipher= aes_evp_type(mode); |
| 178 |
int u_len, f_len; |
178 |
int u_len, f_len; |
| 179 |
|
179 |
|