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