Browse Source

fix incorrect p_len in ss_decrypt_all

pull/317/head
Max Lv 9 years ago
parent
commit
d5765a8bbe
1 changed files with 1 additions and 1 deletions
  1. 2
      src/encrypt.c

2
src/encrypt.c

@ -893,8 +893,8 @@ char * ss_decrypt_all(int buf_size, char *ciphertext, ssize_t *len, int method)
if (method > TABLE) {
cipher_ctx_t evp;
cipher_context_init(&evp, method, 0);
int c_len = *len, p_len = *len;
int iv_len = enc_iv_len;
int c_len = *len, p_len = *len - iv_len;
int err = 1;
static int tmp_len = 0;

Loading…
Cancel
Save