void digest_alg_available(unsigned int *val) { if (*val & DIGEST_CRC32C && !crypto_has_alg("crc32c", 0, CRYPTO_ALG_ASYNC)) { printk("CRC32C digest algorithm not available in kernel\n"); *val |= ~DIGEST_CRC32C; } }
static bool crypto_api_available(void) { return crypto_has_alg("ecb(des)", 0, 0); }