Replaced usage of Digest with OpenSSL::Digest.

The Digest class has some thread safety issues.

See aws/aws-sdk-ruby#455
See aws/aws-sdk-ruby#529