ehCrypt

General Design:

Message Digest

digestAlg = get_digest_alg(name)
digestParams = create_digest_params(digestAlg)
    set_digest_pram(param, name, value...)
digest = create_digest(digestAlg, params)