-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathSHA384.cry
28 lines (26 loc) · 1014 Bytes
/
SHA384.cry
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* 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]>
*
* [FIPS-180-4]: National Institute of Standards and Technology. Secure Hash
* Standard (SHS). (Department of Commerce, Washington, D.C.), Federal
* Information Processing Standards Publication (FIPS) NIST FIPS 180-4.
* August 2015.
* @see https://doi.org/10.6028/NIST.FIPS.180-4
*/
module Primitive::Keyless::Hash::SHA2::Instantiations::SHA384 =
Primitive::Keyless::Hash::SHA2::Specification
where
type w = 64
type DigestSize = 384
// Per [FIPS-180-4], these are the the first sixty-four bits of the
// fractional parts of the square roots of the 9th - 16th prime numbers.
H0 = [
0xcbbb9d5dc1059ed8, 0x629a292a367cd507,
0x9159015a3070dd17, 0x152fecd8f70e5939,
0x67332667ffc00b31, 0x8eb44a8768581511,
0xdb0c2e0d64f98fa7, 0x47b5481dbefa4fa4
]