Lines Matching defs:iv
2040 u8 *iv = PTR_ALIGN(&_iv[0], 2 * (MAX_ALGAPI_ALIGNMASK + 1)) +
2085 if (vec->iv)
2086 memcpy(iv, vec->iv, ivsize);
2088 memset(iv, 0, ivsize);
2111 enc ? vec->plen : vec->clen, iv);
2123 req->iv != iv ||
2136 if (req->iv != iv)
2137 pr_err("alg: aead: changed 'req->iv'\n");
2321 memcpy((u8 *)vec->assoc + vec->alen - ivsize, vec->iv, ivsize);
2329 u8 iv[MAX_IVLEN];
2341 memcpy(iv, vec->iv, ivsize);
2343 aead_request_set_crypt(req, src, &dst, vec->plen, iv);
2394 generate_random_bytes(rng, (u8 *)vec->iv, ivsize);
2614 ctx->vec.iv = kmalloc(crypto_aead_ivsize(ctx->tfm), GFP_KERNEL);
2618 if (!ctx->vec.key || !ctx->vec.iv || !ctx->vec.assoc ||
2631 kfree(ctx->vec.iv);
2818 u8 *iv = PTR_ALIGN(&_iv[0], 2 * (MAX_ALGAPI_ALIGNMASK + 1)) +
2851 memcpy(iv, vec->iv_out, ivsize);
2852 else if (vec->iv)
2853 memcpy(iv, vec->iv, ivsize);
2855 memset(iv, 0, ivsize);
2862 iv = NULL;
2880 vec->len, iv);
2890 req->iv != iv ||
2901 if (req->iv != iv)
2902 pr_err("alg: skcipher: changed 'req->iv'\n");
2958 if (vec->iv_out && memcmp(iv, vec->iv_out, ivsize) != 0) {
2961 hexdump(iv, ivsize);
3027 u8 iv[MAX_IVLEN];
3038 generate_random_bytes(rng, (u8 *)vec->iv, ivsize);
3051 memcpy(iv, vec->iv, ivsize);
3053 skcipher_request_set_crypt(req, &src, &dst, vec->len, iv);
3179 vec.iv = kmalloc(ivsize, GFP_KERNEL);
3182 if (!vec.key || !vec.iv || !vec.ptext || !vec.ctext) {
3208 kfree(vec.iv);