Lines Matching refs:cipher_api
2657 static int crypt_ctr_auth_cipher(struct crypt_config *cc, char *cipher_api) in crypt_ctr_auth_cipher() argument
2662 if (!strstarts(cipher_api, "authenc(")) in crypt_ctr_auth_cipher()
2665 start = strchr(cipher_api, '('); in crypt_ctr_auth_cipher()
2666 end = strchr(cipher_api, ','); in crypt_ctr_auth_cipher()
2695 char *tmp, *cipher_api, buf[CRYPTO_MAX_ALG_NAME]; in crypt_ctr_cipher_new() local
2719 cipher_api = tmp; in crypt_ctr_cipher_new()
2723 ret = crypt_ctr_auth_cipher(cc, cipher_api); in crypt_ctr_cipher_new()
2739 cipher_api, *ivopts); in crypt_ctr_cipher_new()
2744 cipher_api = buf; in crypt_ctr_cipher_new()
2750 ret = crypt_alloc_tfms(cc, cipher_api); in crypt_ctr_cipher_new()
2769 char *cipher_api = NULL; in crypt_ctr_cipher_old() local
2813 cipher_api = kmalloc(CRYPTO_MAX_ALG_NAME, GFP_KERNEL); in crypt_ctr_cipher_old()
2814 if (!cipher_api) in crypt_ctr_cipher_old()
2820 kfree(cipher_api); in crypt_ctr_cipher_old()
2823 ret = snprintf(cipher_api, CRYPTO_MAX_ALG_NAME, in crypt_ctr_cipher_old()
2826 ret = snprintf(cipher_api, CRYPTO_MAX_ALG_NAME, in crypt_ctr_cipher_old()
2830 kfree(cipher_api); in crypt_ctr_cipher_old()
2835 ret = crypt_alloc_tfms(cc, cipher_api); in crypt_ctr_cipher_old()
2838 kfree(cipher_api); in crypt_ctr_cipher_old()
2841 kfree(cipher_api); in crypt_ctr_cipher_old()