Skip to content

Commit f3094b5

Browse files
author
Yiming Lin
committed
change static to const
1 parent 67d9417 commit f3094b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

aws-lc-rs/src/cmac.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,31 +137,31 @@ impl Algorithm {
137137
}
138138

139139
/// CMAC using AES-128.
140-
pub static AES_128: Algorithm = Algorithm {
140+
pub const AES_128: Algorithm = Algorithm {
141141
name: "AES_128",
142142
key_len: 16,
143143
tag_len: 16,
144144
cipher_fn: EVP_aes_128_cbc,
145145
};
146146

147147
/// CMAC using AES-192.
148-
pub static AES_192: Algorithm = Algorithm {
148+
pub const AES_192: Algorithm = Algorithm {
149149
name: "AES_192",
150150
key_len: 24,
151151
tag_len: 16,
152152
cipher_fn: EVP_aes_192_cbc,
153153
};
154154

155155
/// CMAC using AES-256.
156-
pub static AES_256: Algorithm = Algorithm {
156+
pub const AES_256: Algorithm = Algorithm {
157157
name: "AES_256",
158158
key_len: 32,
159159
tag_len: 16,
160160
cipher_fn: EVP_aes_256_cbc,
161161
};
162162

163163
/// CMAC using 3DES (Triple DES). Obsolete
164-
pub static TDES_FOR_LEGACY_USE_ONLY: Algorithm = Algorithm {
164+
pub const TDES_FOR_LEGACY_USE_ONLY: Algorithm = Algorithm {
165165
name: "TDES",
166166
key_len: 24,
167167
tag_len: 8,

0 commit comments

Comments
 (0)