Lines Matching refs:cipher_api
2796 static int crypt_ctr_auth_cipher(struct crypt_config *cc, char *cipher_api) in crypt_ctr_auth_cipher() argument
2801 if (!strstarts(cipher_api, "authenc(")) in crypt_ctr_auth_cipher()
2804 start = strchr(cipher_api, '('); in crypt_ctr_auth_cipher()
2805 end = strchr(cipher_api, ','); in crypt_ctr_auth_cipher()
2834 char *tmp, *cipher_api, buf[CRYPTO_MAX_ALG_NAME]; in crypt_ctr_cipher_new() local
2858 cipher_api = tmp; in crypt_ctr_cipher_new()
2862 ret = crypt_ctr_auth_cipher(cc, cipher_api); in crypt_ctr_cipher_new()
2878 cipher_api, *ivopts); in crypt_ctr_cipher_new()
2883 cipher_api = buf; in crypt_ctr_cipher_new()
2889 ret = crypt_alloc_tfms(cc, cipher_api); in crypt_ctr_cipher_new()
2908 char *cipher_api = NULL; in crypt_ctr_cipher_old() local
2952 cipher_api = kmalloc(CRYPTO_MAX_ALG_NAME, GFP_KERNEL); in crypt_ctr_cipher_old()
2953 if (!cipher_api) in crypt_ctr_cipher_old()
2959 kfree(cipher_api); in crypt_ctr_cipher_old()
2962 ret = snprintf(cipher_api, CRYPTO_MAX_ALG_NAME, in crypt_ctr_cipher_old()
2965 ret = snprintf(cipher_api, CRYPTO_MAX_ALG_NAME, in crypt_ctr_cipher_old()
2969 kfree(cipher_api); in crypt_ctr_cipher_old()
2974 ret = crypt_alloc_tfms(cc, cipher_api); in crypt_ctr_cipher_old()
2977 kfree(cipher_api); in crypt_ctr_cipher_old()
2980 kfree(cipher_api); in crypt_ctr_cipher_old()