Lines Matching refs:cipher_api
2227 static int crypt_ctr_auth_cipher(struct crypt_config *cc, char *cipher_api) in crypt_ctr_auth_cipher() argument
2232 if (!strstarts(cipher_api, "authenc(")) in crypt_ctr_auth_cipher()
2235 start = strchr(cipher_api, '('); in crypt_ctr_auth_cipher()
2236 end = strchr(cipher_api, ','); in crypt_ctr_auth_cipher()
2265 char *tmp, *cipher_api, buf[CRYPTO_MAX_ALG_NAME]; in crypt_ctr_cipher_new() local
2289 cipher_api = tmp; in crypt_ctr_cipher_new()
2293 ret = crypt_ctr_auth_cipher(cc, cipher_api); in crypt_ctr_cipher_new()
2309 cipher_api, *ivopts); in crypt_ctr_cipher_new()
2314 cipher_api = buf; in crypt_ctr_cipher_new()
2320 ret = crypt_alloc_tfms(cc, cipher_api); in crypt_ctr_cipher_new()
2339 char *cipher_api = NULL; in crypt_ctr_cipher_old() local
2383 cipher_api = kmalloc(CRYPTO_MAX_ALG_NAME, GFP_KERNEL); in crypt_ctr_cipher_old()
2384 if (!cipher_api) in crypt_ctr_cipher_old()
2390 kfree(cipher_api); in crypt_ctr_cipher_old()
2393 ret = snprintf(cipher_api, CRYPTO_MAX_ALG_NAME, in crypt_ctr_cipher_old()
2396 ret = snprintf(cipher_api, CRYPTO_MAX_ALG_NAME, in crypt_ctr_cipher_old()
2400 kfree(cipher_api); in crypt_ctr_cipher_old()
2405 ret = crypt_alloc_tfms(cc, cipher_api); in crypt_ctr_cipher_old()
2408 kfree(cipher_api); in crypt_ctr_cipher_old()
2411 kfree(cipher_api); in crypt_ctr_cipher_old()