Changeset View
Changeset View
Standalone View
Standalone View
b/cipher/md.c
Context not available. | |||||
gcry_err_code_t | gcry_err_code_t | ||||
_gcry_md_init (void) | _gcry_md_init (void) | ||||
{ | { | ||||
if (fips_mode()) | |||||
{ | |||||
/* disable algorithms that are disallowed in fips */ | |||||
int idx; | |||||
gcry_md_spec_t *spec; | |||||
for (idx = 0; (spec = digest_list[idx]); idx++) | |||||
if (!spec->flags.fips) | |||||
spec->flags.disabled = 1; | |||||
} | |||||
return 0; | return 0; | ||||
} | } | ||||
Context not available. |