Use correct digest when exporting keying material.
Use correct digest when exporting keying material.

PR#3319

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