Lines Matching refs:cipher_api
2816 static int crypt_ctr_auth_cipher(struct crypt_config *cc, char *cipher_api) in crypt_ctr_auth_cipher() argument
2821 if (!strstarts(cipher_api, "authenc(")) in crypt_ctr_auth_cipher()
2824 start = strchr(cipher_api, '('); in crypt_ctr_auth_cipher()
2825 end = strchr(cipher_api, ','); in crypt_ctr_auth_cipher()
2854 char *tmp, *cipher_api, buf[CRYPTO_MAX_ALG_NAME]; in crypt_ctr_cipher_new() local
2878 cipher_api = tmp; in crypt_ctr_cipher_new()
2882 ret = crypt_ctr_auth_cipher(cc, cipher_api); in crypt_ctr_cipher_new()
2898 cipher_api, *ivopts); in crypt_ctr_cipher_new()
2903 cipher_api = buf; in crypt_ctr_cipher_new()
2909 ret = crypt_alloc_tfms(cc, cipher_api); in crypt_ctr_cipher_new()
2928 char *cipher_api = NULL; in crypt_ctr_cipher_old() local
2972 cipher_api = kmalloc(CRYPTO_MAX_ALG_NAME, GFP_KERNEL); in crypt_ctr_cipher_old()
2973 if (!cipher_api) in crypt_ctr_cipher_old()
2979 kfree(cipher_api); in crypt_ctr_cipher_old()
2982 ret = snprintf(cipher_api, CRYPTO_MAX_ALG_NAME, in crypt_ctr_cipher_old()
2985 ret = snprintf(cipher_api, CRYPTO_MAX_ALG_NAME, in crypt_ctr_cipher_old()
2989 kfree(cipher_api); in crypt_ctr_cipher_old()
2994 ret = crypt_alloc_tfms(cc, cipher_api); in crypt_ctr_cipher_old()
2997 kfree(cipher_api); in crypt_ctr_cipher_old()
3000 kfree(cipher_api); in crypt_ctr_cipher_old()