http://man7.org/linux/man-pages/man3/crypt.3.html crypt(3) man page only has a description about ENOSYS. However current glibc may return EPERM and EINVAL too. I'd suggest to add following description EPERM: If /proc/sys/crypto/fips_enabled is turned on and try to use weak crypt type, such as DES. EINVAL: salt argument has wrong format. Thanks.
Thanks, for the report Motohiro. I added these texts: EINVAL salt has the wrong format. EPERM /proc/sys/crypto/fips_enabled has a nonzero value, and an attempt was made to use a weak encryption type, such as DES. Okay? Just for future reports: to help me verify details, pointers to the relevant source files would save me doing some hunting. (I did find them after a little searching, in this case)
>Thanks, for the report Motohiro. I added these texts: > > EINVAL salt has the wrong format. > > EPERM /proc/sys/crypto/fips_enabled has a nonzero value, and an > attempt was made to use a weak encryption type, such as > DES. > >Okay? Yes, thanks. >Just for future reports: to help me verify details, pointers to the relevant >>source files would save me doing some hunting. (I did find them after a >little >searching, in this case) Oops. Sorry about that. Yes, I'll do that.