kef_digest
rv = kef_digest(sha1_hash_mech, input, inlen, output, SHA1_HASHSIZE);
rv = kef_digest(md5_hash_mech, input, inlen, output, MD5_HASHSIZE);