memcpy(out, iname->name, iname->len);
memset(out + iname->len, 0, olen - iname->len);
+ if (tfm == NULL)
+ return 0;
+
/* Initialize the IV */
llcrypt_generate_iv(&iv, 0, ci);
union llcrypt_iv iv;
int res;
+ if (tfm == NULL) {
+ memcpy(oname->name, iname->name, iname->len);
+ oname->name[iname->len] = '\0';
+ oname->len = iname->len;
+ return 0;
+ }
+
/* Allocate request */
req = skcipher_request_alloc(tfm, GFP_NOFS);
if (!req)