logarithm in OpenSSL

Niklas Niere nniklas at mail.uni-paderborn.de
Thu Jul 25 18:03:08 UTC 2019


The BN_num_bits() approximation is exactly what we need. We need it to 
compute the depth of a node in a binary tree of which we only have a sub 
tree available.

Thank you,
Niklas

On 24.07.2019 23:59, Dr Paul Dale wrote:
> I’m wondering why you need the log function?
> If you’re measuring performance, could the analysis tool perform the logarithm?
>
> A first order approximation to log_2(n) where n is a BIGNUM would be BN_num_bits(n).
>
>
> Pauli


More information about the openssl-users mailing list