added the sha-256 digest since this is neede for message integrity checks.