Review and changes from Jocelyn Fiat

added this DIGEST_DATA class to store the digest related value.
In addition, this enable us to benefit from void-safety to say that realm and other have to be set (i.e not void).