Skip to content

Commit

Permalink
Warning that SHA-512 truncated to 215 is not SHA-512/526.
Browse files Browse the repository at this point in the history
  • Loading branch information
lapo-luchini authored Sep 29, 2018
1 parent b7ee66c commit 80259ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/multihash.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ The multihash examples are chosen to show different hash functions and different
multihash="132052eb4dd19f1ec522859e12d89706156570f8fbab1824870bc6f8c7d235eef5f4"
%}}

Note: this is the actual SHA-512 (as per code `0x13`) truncated to 256 bits; some libraries support an hash called SHA-512/256 that has the same 256 bit length but with a different initialization vector (as defined in [FIPS 180-4](https://ws680.nist.gov/publication/get_pdf.cfm?pub_id=910977)).

### sha2-512 - 512 bits (aka sha512)

{{% multihash
Expand Down

1 comment on commit 80259ab

@lapo-luchini
Copy link
Owner Author

@lapo-luchini lapo-luchini commented on 80259ab Sep 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, 215 (in the commit title) is a strange typo for 256.

Please sign in to comment.