提交 23fb9bc0 编写于 作者: B Bodo Möller

Use des_set_key_unchecked, not des_set_key.

上级 cddfe788
...@@ -93,7 +93,7 @@ static void des_cbc_init_key(EVP_CIPHER_CTX *ctx, unsigned char *key, ...@@ -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->oiv[0]),iv,8);
memcpy(&(ctx->iv[0]),&(ctx->oiv[0]),8); memcpy(&(ctx->iv[0]),&(ctx->oiv[0]),8);
if (deskey != NULL) 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, static void des_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册