Minor optimisation to KDF algorithm.
Minor optimisation to KDF algorithm.

Don't need to use temporary buffer if remaining length equals digest length.

openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl