diff options
Diffstat (limited to 'cipher/mac-cmac.c')
-rw-r--r-- | cipher/mac-cmac.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cipher/mac-cmac.c b/cipher/mac-cmac.c index 0538de37..b80c3406 100644 --- a/cipher/mac-cmac.c +++ b/cipher/mac-cmac.c @@ -451,73 +451,73 @@ static gcry_mac_spec_ops_t cmac_ops = { #if USE_BLOWFISH -gcry_mac_spec_t _gcry_mac_type_spec_cmac_blowfish = { +const gcry_mac_spec_t _gcry_mac_type_spec_cmac_blowfish = { GCRY_MAC_CMAC_BLOWFISH, {0, 0}, "CMAC_BLOWFISH", &cmac_ops }; #endif #if USE_DES -gcry_mac_spec_t _gcry_mac_type_spec_cmac_tripledes = { +const gcry_mac_spec_t _gcry_mac_type_spec_cmac_tripledes = { GCRY_MAC_CMAC_3DES, {0, 0}, "CMAC_3DES", &cmac_ops }; #endif #if USE_CAST5 -gcry_mac_spec_t _gcry_mac_type_spec_cmac_cast5 = { +const gcry_mac_spec_t _gcry_mac_type_spec_cmac_cast5 = { GCRY_MAC_CMAC_CAST5, {0, 0}, "CMAC_CAST5", &cmac_ops }; #endif #if USE_AES -gcry_mac_spec_t _gcry_mac_type_spec_cmac_aes = { +const gcry_mac_spec_t _gcry_mac_type_spec_cmac_aes = { GCRY_MAC_CMAC_AES, {0, 1}, "CMAC_AES", &cmac_ops }; #endif #if USE_TWOFISH -gcry_mac_spec_t _gcry_mac_type_spec_cmac_twofish = { +const gcry_mac_spec_t _gcry_mac_type_spec_cmac_twofish = { GCRY_MAC_CMAC_TWOFISH, {0, 0}, "CMAC_TWOFISH", &cmac_ops }; #endif #if USE_SERPENT -gcry_mac_spec_t _gcry_mac_type_spec_cmac_serpent = { +const gcry_mac_spec_t _gcry_mac_type_spec_cmac_serpent = { GCRY_MAC_CMAC_SERPENT, {0, 0}, "CMAC_SERPENT", &cmac_ops }; #endif #if USE_RFC2268 -gcry_mac_spec_t _gcry_mac_type_spec_cmac_rfc2268 = { +const gcry_mac_spec_t _gcry_mac_type_spec_cmac_rfc2268 = { GCRY_MAC_CMAC_RFC2268, {0, 0}, "CMAC_RFC2268", &cmac_ops }; #endif #if USE_SEED -gcry_mac_spec_t _gcry_mac_type_spec_cmac_seed = { +const gcry_mac_spec_t _gcry_mac_type_spec_cmac_seed = { GCRY_MAC_CMAC_SEED, {0, 0}, "CMAC_SEED", &cmac_ops }; #endif #if USE_CAMELLIA -gcry_mac_spec_t _gcry_mac_type_spec_cmac_camellia = { +const gcry_mac_spec_t _gcry_mac_type_spec_cmac_camellia = { GCRY_MAC_CMAC_CAMELLIA, {0, 0}, "CMAC_CAMELLIA", &cmac_ops }; #endif #if USE_IDEA -gcry_mac_spec_t _gcry_mac_type_spec_cmac_idea = { +const gcry_mac_spec_t _gcry_mac_type_spec_cmac_idea = { GCRY_MAC_CMAC_IDEA, {0, 0}, "CMAC_IDEA", &cmac_ops }; #endif #if USE_GOST28147 -gcry_mac_spec_t _gcry_mac_type_spec_cmac_gost28147 = { +const gcry_mac_spec_t _gcry_mac_type_spec_cmac_gost28147 = { GCRY_MAC_CMAC_GOST28147, {0, 0}, "CMAC_GOST28147", &cmac_ops }; #endif #if USE_SM4 -gcry_mac_spec_t _gcry_mac_type_spec_cmac_sm4 = { +const gcry_mac_spec_t _gcry_mac_type_spec_cmac_sm4 = { GCRY_MAC_CMAC_SM4, {0, 0}, "CMAC_SM4", &cmac_ops }; |