Lines Matching refs:cipher_api
2814 static int crypt_ctr_auth_cipher(struct crypt_config *cc, char *cipher_api) in crypt_ctr_auth_cipher() argument
2819 if (!strstarts(cipher_api, "authenc(")) in crypt_ctr_auth_cipher()
2822 start = strchr(cipher_api, '('); in crypt_ctr_auth_cipher()
2823 end = strchr(cipher_api, ','); in crypt_ctr_auth_cipher()
2852 char *tmp, *cipher_api, buf[CRYPTO_MAX_ALG_NAME]; in crypt_ctr_cipher_new() local
2876 cipher_api = tmp; in crypt_ctr_cipher_new()
2880 ret = crypt_ctr_auth_cipher(cc, cipher_api); in crypt_ctr_cipher_new()
2896 cipher_api, *ivopts); in crypt_ctr_cipher_new()
2901 cipher_api = buf; in crypt_ctr_cipher_new()
2907 ret = crypt_alloc_tfms(cc, cipher_api); in crypt_ctr_cipher_new()
2926 char *cipher_api = NULL; in crypt_ctr_cipher_old() local
2970 cipher_api = kmalloc(CRYPTO_MAX_ALG_NAME, GFP_KERNEL); in crypt_ctr_cipher_old()
2971 if (!cipher_api) in crypt_ctr_cipher_old()
2977 kfree(cipher_api); in crypt_ctr_cipher_old()
2980 ret = snprintf(cipher_api, CRYPTO_MAX_ALG_NAME, in crypt_ctr_cipher_old()
2983 ret = snprintf(cipher_api, CRYPTO_MAX_ALG_NAME, in crypt_ctr_cipher_old()
2987 kfree(cipher_api); in crypt_ctr_cipher_old()
2992 ret = crypt_alloc_tfms(cc, cipher_api); in crypt_ctr_cipher_old()
2995 kfree(cipher_api); in crypt_ctr_cipher_old()
2998 kfree(cipher_api); in crypt_ctr_cipher_old()