Gets the digest id based on the digest name.
a CryptoContext
digest name
the equivalent digest id or DEFAULT on fail.