X-Git-Url: https://git.syn-net.org/debian/?a=blobdiff_plain;f=src%2Fcipher.cpp;h=f3b2ed1519a194b77c9636a7469728aa2aaa6490;hb=5123ec3335dda691676f62467c57edc2517a5d5c;hp=52a25431b9970cb4912e4dda4e75cedddae8467b;hpb=012bc15ee82b75957d9284160fb0a0089396f0d4;p=anytun.git diff --git a/src/cipher.cpp b/src/cipher.cpp index 52a2543..f3b2ed1 100644 --- a/src/cipher.cpp +++ b/src/cipher.cpp @@ -207,7 +207,7 @@ void AesIcmCipher::calc(KeyDerivation& kd, uint8_t* in, uint32_t ilen, uint8_t* } unsigned int num = 0; std::memset(ecount_buf_, 0, AES_BLOCK_SIZE); - AES_ctr128_encrypt(in, out, (ilen < olen) ? ilen : olen, &aes_key_, ctr_.buf_, ecount_buf_, &num); + CRYPTO_ctr128_encrypt(in, out, (ilen < olen) ? ilen : olen, &aes_key_, ctr_.buf_, ecount_buf_, &num, (block128_f)AES_encrypt); #elif defined(USE_NETTLE) if(CTR_LENGTH != AES_BLOCK_SIZE) { cLog.msg(Log::PRIO_ERROR) << "AesIcmCipher: Failed to set cipher CTR: size doesn't fit";