Lines Matching refs:cipher_api
2849 static int crypt_ctr_auth_cipher(struct crypt_config *cc, char *cipher_api) in crypt_ctr_auth_cipher() argument
2854 if (!strstarts(cipher_api, "authenc(")) in crypt_ctr_auth_cipher()
2857 start = strchr(cipher_api, '('); in crypt_ctr_auth_cipher()
2858 end = strchr(cipher_api, ','); in crypt_ctr_auth_cipher()
2887 char *tmp, *cipher_api, buf[CRYPTO_MAX_ALG_NAME]; in crypt_ctr_cipher_new() local
2911 cipher_api = tmp; in crypt_ctr_cipher_new()
2915 ret = crypt_ctr_auth_cipher(cc, cipher_api); in crypt_ctr_cipher_new()
2931 cipher_api, *ivopts); in crypt_ctr_cipher_new()
2936 cipher_api = buf; in crypt_ctr_cipher_new()
2942 ret = crypt_alloc_tfms(cc, cipher_api); in crypt_ctr_cipher_new()
2961 char *cipher_api = NULL; in crypt_ctr_cipher_old() local
3005 cipher_api = kmalloc(CRYPTO_MAX_ALG_NAME, GFP_KERNEL); in crypt_ctr_cipher_old()
3006 if (!cipher_api) in crypt_ctr_cipher_old()
3012 kfree(cipher_api); in crypt_ctr_cipher_old()
3015 ret = snprintf(cipher_api, CRYPTO_MAX_ALG_NAME, in crypt_ctr_cipher_old()
3018 ret = snprintf(cipher_api, CRYPTO_MAX_ALG_NAME, in crypt_ctr_cipher_old()
3022 kfree(cipher_api); in crypt_ctr_cipher_old()
3027 ret = crypt_alloc_tfms(cc, cipher_api); in crypt_ctr_cipher_old()
3030 kfree(cipher_api); in crypt_ctr_cipher_old()
3033 kfree(cipher_api); in crypt_ctr_cipher_old()