From this question: Digitally sign a hash value of a file directly instead of file
I wonder that Is there any security risk or integrity problem when signing a hash value instead of a file?
From this question: Digitally sign a hash value of a file directly instead of file
I wonder that Is there any security risk or integrity problem when signing a hash value instead of a file?
The US National and International standards for digitally signing documents (PDF, Word, Excel) and data sign hash values that represent the original documents/data.
So you'll be in good company.
The various national and international standards bodies periodically issue new standards and regulations to ensure that the hashing functions are secure.
For example, in 2011, the US National Institute of Standards issued a regulation (see page 6) that states:
After December 31, 2013, key lengths providing less than 112 bits of security strength shall not be used to generate digital signatures.
(Emphasis is in the original.) This regulation applies to the US Government, but it is also common for non-government organizations/companies to follow it as an example of best practice.
What it means in practice is don't use SHA-1. Instead, use the SHA-2 family of hashing functions.