Brad King
6495b595c4
cmCryptoHash: Add virtual destructor
...
Instances of this class are always subclasses. Use a virtual destructor
to ensure the subclasses cleanup correctly.
2011-11-16 11:32:01 -05:00
Brad King
293a7f4e2a
cmCryptoHash: Provide factory "New" method
...
Construct a cmCryptoHash subclass instance based on the name of the
desired hash algorithm.
2011-11-16 10:15:44 -05:00
Brad King
38771d3bdf
Add file(SHA*) commands to compute cryptographic hashes
...
Add a file() command API for SHA1, SHA224, SHA256, SHA384, and SHA512.
2011-11-16 10:15:44 -05:00
Brad King
ed7cef5634
Factor Compute(File|String)MD5 into cmCryptoHash helper
...
Define an abstract API around the backend hash algorithm. Expose
ifstream errors to HashFile callers. Always try opening the file.
Succeed only if the end of file is reached without error.
2011-11-16 10:14:53 -05:00