openssl digest function work