Skip to content

enum OpenSSL::Algorithm

Indicates the possible hash algorithms for OpenSSL digest operations.

Members

MD4 = 0

MD5 = 1

RIPEMD160 = 2

SHA1 = 3

SHA224 = 4

SHA256 = 5

SHA384 = 6

SHA512 = 7

Methods

#md4?

View source

#md5?

View source

#ripemd160?

View source

#sha1?

View source

#sha224?

View source

#sha256?

View source

#sha384?

View source

#sha512?

View source

#to_evp

Returns the appropriate equivalent hash algorithm that corresponds to the current enum value.

The internal bindings to the LibCrypto digest operations sometimes require a hash algorithm implementation to be passed as one of the arguments.

View source