This will need to be updated since we don't restrict the digest algorithm to SHA anymore?