Skip to content

Instantly share code, notes, and snippets.

@jwiegley
Created December 13, 2023 20:38
Show Gist options
  • Save jwiegley/b917bc108fc1b45dc6ef727c019aaf91 to your computer and use it in GitHub Desktop.
Save jwiegley/b917bc108fc1b45dc6ef727c019aaf91 to your computer and use it in GitHub Desktop.

TRUNCATION OF A MESSAGE DIGEST

Some application may require a hash function with a message digest length different than those provided by the hash functions in this Standard. In such cases, a truncated message digest may be used, whereby a hash function with a larger message digest length is applied to the data to be hashed, and the resulting message digest is truncated by selecting an appropriate number of the leftmost bits. For guidelines on choosing the length of the truncated message digest and information about its security implications for the cryptographic application that uses it, see SP 800-107 [SP 800-107].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment