mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-08 23:13:38 +08:00
zuc bug
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
static int zuc_init(EVP_CIPHER_CTX *ctx, const unsigned char *key,
|
static int zuc_init(EVP_CIPHER_CTX *ctx, const unsigned char *key,
|
||||||
const unsigned char *iv, int enc)
|
const unsigned char *iv, int enc)
|
||||||
{
|
{
|
||||||
ZUC_set_key((ZUC_KEY *)&ctx->cipher_data, EVP_CIPHER_CTX_key_length(ctx), key);
|
ZUC_set_key((ZUC_KEY *)&ctx->cipher_data, key, iv);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user