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