@@ -60,7 +60,7 @@ const DIGEST_MAX_INPUT_LEN: u64 = u64::MAX;
6060///
6161/// [FIPS 180-4]: http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf
6262#[ allow( deprecated) ]
63- pub static SHA1_FOR_LEGACY_USE_ONLY : Algorithm = Algorithm {
63+ pub const SHA1_FOR_LEGACY_USE_ONLY : Algorithm = Algorithm {
6464 output_len : SHA1_OUTPUT_LEN ,
6565 chaining_len : SHA1_OUTPUT_LEN ,
6666 block_len : SHA1_BLOCK_LEN ,
@@ -75,7 +75,7 @@ pub static SHA1_FOR_LEGACY_USE_ONLY: Algorithm = Algorithm {
7575///
7676/// [FIPS 180-4]: http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf
7777#[ allow( deprecated) ]
78- pub static SHA224 : Algorithm = Algorithm {
78+ pub const SHA224 : Algorithm = Algorithm {
7979 output_len : SHA224_OUTPUT_LEN ,
8080
8181 // The chaining length is equivalent to the length before truncation.
@@ -93,7 +93,7 @@ pub static SHA224: Algorithm = Algorithm {
9393///
9494/// [FIPS 180-4]: http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf
9595#[ allow( deprecated) ]
96- pub static SHA256 : Algorithm = Algorithm {
96+ pub const SHA256 : Algorithm = Algorithm {
9797 output_len : SHA256_OUTPUT_LEN ,
9898 chaining_len : SHA256_OUTPUT_LEN ,
9999 block_len : SHA256_BLOCK_LEN ,
@@ -108,7 +108,7 @@ pub static SHA256: Algorithm = Algorithm {
108108///
109109/// [FIPS 180-4]: http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf
110110#[ allow( deprecated) ]
111- pub static SHA384 : Algorithm = Algorithm {
111+ pub const SHA384 : Algorithm = Algorithm {
112112 output_len : SHA384_OUTPUT_LEN ,
113113
114114 // The chaining length is equivalent to the length before truncation.
@@ -126,7 +126,7 @@ pub static SHA384: Algorithm = Algorithm {
126126///
127127/// [FIPS 180-4]: http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf
128128#[ allow( deprecated) ]
129- pub static SHA512 : Algorithm = Algorithm {
129+ pub const SHA512 : Algorithm = Algorithm {
130130 output_len : SHA512_OUTPUT_LEN ,
131131 chaining_len : SHA512_OUTPUT_LEN ,
132132 block_len : SHA512_BLOCK_LEN ,
@@ -141,7 +141,7 @@ pub static SHA512: Algorithm = Algorithm {
141141///
142142/// [FIPS 180-4]: http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf
143143#[ allow( deprecated) ]
144- pub static SHA512_256 : Algorithm = Algorithm {
144+ pub const SHA512_256 : Algorithm = Algorithm {
145145 output_len : SHA512_256_OUTPUT_LEN ,
146146 chaining_len : SHA512_OUTPUT_LEN ,
147147 block_len : SHA512_BLOCK_LEN ,
@@ -156,7 +156,7 @@ pub static SHA512_256: Algorithm = Algorithm {
156156///
157157/// [FIPS 202]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf
158158#[ allow( deprecated) ]
159- pub static SHA3_256 : Algorithm = Algorithm {
159+ pub const SHA3_256 : Algorithm = Algorithm {
160160 output_len : SHA3_256_OUTPUT_LEN ,
161161 chaining_len : SHA3_256_OUTPUT_LEN ,
162162 block_len : SHA3_256_BLOCK_LEN ,
@@ -171,7 +171,7 @@ pub static SHA3_256: Algorithm = Algorithm {
171171///
172172/// [FIPS 202]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf
173173#[ allow( deprecated) ]
174- pub static SHA3_384 : Algorithm = Algorithm {
174+ pub const SHA3_384 : Algorithm = Algorithm {
175175 output_len : SHA3_384_OUTPUT_LEN ,
176176 chaining_len : SHA3_384_OUTPUT_LEN ,
177177 block_len : SHA3_384_BLOCK_LEN ,
@@ -186,7 +186,7 @@ pub static SHA3_384: Algorithm = Algorithm {
186186///
187187/// [FIPS 202]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf
188188#[ allow( deprecated) ]
189- pub static SHA3_512 : Algorithm = Algorithm {
189+ pub const SHA3_512 : Algorithm = Algorithm {
190190 output_len : SHA3_512_OUTPUT_LEN ,
191191 chaining_len : SHA3_512_OUTPUT_LEN ,
192192 block_len : SHA3_512_BLOCK_LEN ,
0 commit comments