Use des_set_key_unchecked, not des_set_key.
This commit is contained in:
parent
cddfe788fb
commit
23fb9bc0eb
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ static void des_cbc_init_key(EVP_CIPHER_CTX *ctx, unsigned char *key,
|
|||
memcpy(&(ctx->oiv[0]),iv,8);
|
||||
memcpy(&(ctx->iv[0]),&(ctx->oiv[0]),8);
|
||||
if (deskey != NULL)
|
||||
des_set_key(deskey,ctx->c.des_ks);
|
||||
des_set_key_unchecked(deskey,ctx->c.des_ks);
|
||||
}
|
||||
|
||||
static void des_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
|
||||
|
|
Loading…
Reference in a new issue