crypto_has_cipher(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, meet crypto_has_cipher(9) β€” it’s the kernel API that does a vibe check on exactly one single block cipher. Literally a search for the availability of a single block cipher, no cap. πŸ’…βœ¨

🌸 NAME 🌸

crypto_has_cipher β€” search for the availability of a single block cipher. That’s it, that’s the assignment. πŸŽ€

✨ SYNOPSIS ✨

int crypto_has_cipher (const char *alg_name , u32 type , u32 mask );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • alg_name β€” is the cra_name / name or cra_driver_name / driver name of the single block cipher. Name or driver name, pick your fighter. 🫢
  • type β€” specifies the type of the cipher. Type check, but make it cipher. ✨
  • mask β€” specifies the mask for the cipher. Mask on, bestie. 🎭

πŸ”₯ RETURN πŸ”₯

It’s giving true when the single block cipher is known to the kernel crypto API; false otherwise. That’s the whole verdict, fr fr. πŸ‘‘

🌈 SEE ALSO 🌈

Go read the whole friend group, bestie. πŸ“šπŸ’–


later, legend β€” source/version: ./include/crypto/internal, dated October 2026. πŸ§šπŸ’œ

πŸ“¦ where this page comes from