Skip to content

Commit

Permalink
sha2: clarify documentation #112
Browse files Browse the repository at this point in the history
  • Loading branch information
marsella committed Aug 23, 2024
1 parent 166d28a commit 54cd534
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Primitive/Keyless/Hash/SHA2/Instantiations/SHA256.cry
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Secure hash algorithm SHA-256 as specified in [FIPS-180-4].
* Instantiation of the secure hash algorithm SHA-256 as specified in
* [FIPS-180-4], Section 5.3.3.
*
* @copyright Galois, Inc
* @author Marcella Hastings <[email protected]>
Expand Down
3 changes: 2 additions & 1 deletion Primitive/Keyless/Hash/SHA2/Instantiations/SHA384.cry
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Secure hash algorithm SHA-384 as specified in [FIPS-180-4].
* Instantiation of the secure hash algorithm SHA-384 as specified in
* [FIPS-180-4], Section 5.3.4.
*
* @copyright Galois, Inc
* @author Marcella Hastings <[email protected]>
Expand Down
3 changes: 2 additions & 1 deletion Primitive/Keyless/Hash/SHA2/Instantiations/SHA512.cry
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Secure hash algorithm SHA-512 as specified in [FIPS-180-4].
* Instantiation of the secure hash algorithm SHA-512 as specified in
* [FIPS-180-4], Section 5.3.5.
*
* @copyright Galois, Inc
* @author Marcella Hastings <[email protected]>
Expand Down
4 changes: 3 additions & 1 deletion Primitive/Keyless/Hash/SHA2/Specification.cry
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ parameter
/**
* Length of words, in bits, that are used during hashing.
*
* The specification defines words to be either 32 or 64 bits.
* The specification defines words to be either 32 bits (for
* SHA-224 and SHA-256) or 64 bits (for SHA-384, SHA-512, and
* SHA-512/t for any valid `t`).
* [FIPS-180-4] Section 1, Figure 1.
*/
type w : #
Expand Down

0 comments on commit 54cd534

Please sign in to comment.