def __init__(self,<EOL>hashing_algorithm=None,<EOL>digest_value=None,<EOL>key_format_type=None):
super(Digest, self).__init__(Tags.DIGEST)<EOL>if hashing_algorithm is None:<EOL><INDENT>self.hashing_algorithm = HashingAlgorithm()<EOL><DEDENT>else:<EOL><INDENT>self.hashing_algorithm = hashing_algorithm<EOL><DEDENT>if digest_value is None:<EOL><INDENT>self.digest_value = DigestValue()<EOL><DEDENT>else:<EOL><INDENT>self.digest_value = digest_value<EOL><DEDENT>if key_format_type is None:<EOL><INDENT>self.key_format_type = KeyFormatType()<EOL><DEDENT>else:<EOL><INDENT>self.key_format_type = key_format_type<EOL><DEDENT>self.validate()<EOL>
Construct a Digest object.

Args:
    hashing_algorithm (HashingAlgorithm): The hash algorithm used to
        compute the value of the digest. Optional, defaults to None.
    digest_value (DigestValue): The byte string representing the
        value of the hash digest. Optional, defaults to None.
    key_format_type (KeyFormatType): The format type of the key the
        hash was computed for, if the object in question is a key.
        Optional, defaults to None.