Lines Matching refs:cipher_api
2883 static int crypt_ctr_auth_cipher(struct crypt_config *cc, char *cipher_api) in crypt_ctr_auth_cipher() argument
2888 if (!strstarts(cipher_api, "authenc(")) in crypt_ctr_auth_cipher()
2891 start = strchr(cipher_api, '('); in crypt_ctr_auth_cipher()
2892 end = strchr(cipher_api, ','); in crypt_ctr_auth_cipher()
2921 char *tmp, *cipher_api, buf[CRYPTO_MAX_ALG_NAME]; in crypt_ctr_cipher_new() local
2945 cipher_api = tmp; in crypt_ctr_cipher_new()
2949 ret = crypt_ctr_auth_cipher(cc, cipher_api); in crypt_ctr_cipher_new()
2965 cipher_api, *ivopts); in crypt_ctr_cipher_new()
2970 cipher_api = buf; in crypt_ctr_cipher_new()
2976 ret = crypt_alloc_tfms(cc, cipher_api); in crypt_ctr_cipher_new()
2995 char *cipher_api = NULL; in crypt_ctr_cipher_old() local
3039 cipher_api = kmalloc(CRYPTO_MAX_ALG_NAME, GFP_KERNEL); in crypt_ctr_cipher_old()
3040 if (!cipher_api) in crypt_ctr_cipher_old()
3046 kfree(cipher_api); in crypt_ctr_cipher_old()
3049 ret = snprintf(cipher_api, CRYPTO_MAX_ALG_NAME, in crypt_ctr_cipher_old()
3052 ret = snprintf(cipher_api, CRYPTO_MAX_ALG_NAME, in crypt_ctr_cipher_old()
3056 kfree(cipher_api); in crypt_ctr_cipher_old()
3061 ret = crypt_alloc_tfms(cc, cipher_api); in crypt_ctr_cipher_old()
3064 kfree(cipher_api); in crypt_ctr_cipher_old()
3067 kfree(cipher_api); in crypt_ctr_cipher_old()