def constants

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/sha.bend:160

import bend-collections-laws-crypto@1.0.0.0/spec/crypto/sha.bend as Sha
import Base

160# FIPS 180-4 section 4.2.2, transcribed separately from the implementation.
161def constants() -> List<&2, U32>:
162  [1116352408, 1899447441, 3049323471, 3921009573,
163   961987163, 1508970993, 2453635748, 2870763221,
164   3624381080, 310598401, 607225278, 1426881987,
165   1925078388, 2162078206, 2614888103, 3248222580,
166   3835390401, 4022224774, 264347078, 604807628,
167   770255983, 1249150122, 1555081692, 1996064986,
168   2554220882, 2821834349, 2952996808, 3210313671,
169   3336571891, 3584528711, 113926993, 338241895,
170   666307205, 773529912, 1294757372, 1396182291,
171   1695183700, 1986661051, 2177026350, 2456956037,
172   2730485921, 2820302411, 3259730800, 3345764771,
173   3516065817, 3600352804, 4094571909, 275423344,
174   430227734, 506948616, 659060556, 883997877,
175   958139571, 1322822218, 1537002063, 1747873779,
176   1955562222, 2024104815, 2227730452, 2361852424,
177   2428436474, 2756734187, 3204031479, 3329325298]

Uses (2)

Used by (9)