Added digestSha256 which uses SHA256_CTX and writes to a buffer.