Changeset View
Changeset View
Standalone View
Standalone View
b/cipher/mac.c
Context not available. | |||||
NULL, | NULL, | ||||
}; | }; | ||||
/* Explicitly initialize this module. */ | |||||
gcry_err_code_t | |||||
_gcry_mac_init (void) | |||||
{ | |||||
if (fips_mode()) | |||||
{ | |||||
/* disable algorithms that are disallowed in fips */ | |||||
int idx; | |||||
gcry_mac_spec_t *spec; | |||||
for (idx = 0; (spec = mac_list[idx]); idx++) | |||||
if (!spec->flags.fips) | |||||
spec->flags.disabled = 1; | |||||
} | |||||
return 0; | |||||
} | |||||
␌ | ␌ | ||||
/* Return the spec structure for the MAC algorithm ALGO. For an | /* Return the spec structure for the MAC algorithm ALGO. For an | ||||
Context not available. |