X-Git-Url: https://git.syn-net.org/?p=debian%2Fuanytun.git;a=blobdiff_plain;f=src%2Fcipher.c;fp=src%2Fcipher.c;h=f3ccbce394605ba1c1d7f70fcb00dab965dff6ad;hp=f87e2cff019542e9d793c85bbbbc5e3d39abfcb5;hb=cd587a97e53c5eddf158462a6ff2271351e813e5;hpb=b863f88b972172a865fb257dd18436c36f663e87 diff --git a/src/cipher.c b/src/cipher.c index f87e2cf..f3ccbce 100644 --- a/src/cipher.c +++ b/src/cipher.c @@ -338,7 +338,8 @@ int32_t cipher_aesctr_crypt(cipher_t* c, key_derivation_t* kd, key_derivation_di } u_int32_t num = 0; memset(params->ecount_buf_, 0, AES_BLOCK_SIZE); - AES_ctr128_encrypt(in, out, (ilen < olen) ? ilen : olen, ¶ms->aes_key_, params->ctr_.buf_, params->ecount_buf_, &num); + CRYPTO_ctr128_encrypt(in, out, (ilen < olen) ? ilen : olen, ¶ms->aes_key_, params->ctr_.buf_, + params->ecount_buf_, &num, (block128_f)AES_encrypt); #elif defined(USE_NETTLE) if(C_AESCTR_CTR_LENGTH != AES_BLOCK_SIZE) { log_printf(ERROR, "failed to set cipher CTR: size doesn't fit");