Example #1
0
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;
	}
}
Example #2
0
static bool crypto_api_available(void)
{
	return crypto_has_alg("ecb(des)", 0, 0);
}