Erentigionation |
05-14-2021 09:51 AM |
How would you choose different ciphers, modes of operation, etc. in libcrypt?
I'm confused about this. I've been looking at the man page for the Linux crypt library as well as crypt.h and a hexdump of libcrypt.so. The Wikipedia article says libcrypt provides for several different ciphers and modes of operation, but I don't see any way of specifying these in the library. There's a generic crypt() function as well as a couple thread-safe versions and some functions for working with salts. How would you use hashing algorithms like bcrypt, MD5-Crypt, and SHA2-Crypt using this library? Am I misunderstanding what Linux crypt is? I thought Linux crypt provided those three hashing algorithms?
|