crypto_has_cipher(9)
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 thecra_name/ name orcra_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 π
- Kernel file
./include/crypto/internal/cipher.h Single Block Cipher API(9)crypto_alloc_cipher(9)crypto_free_cipher(9)crypto_cipher_blocksize(9)crypto_cipher_setkey(9)crypto_cipher_encrypt_one(9)crypto_cipher_decrypt_one(9)
Go read the whole friend group, bestie. ππ
later, legend β source/version: ./include/crypto/internal, dated October 2026. π§π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms