Implementing combined mode digest when using openssl