Lines Matching refs:ctx
101 struct tpm2_key_context ctx;
104 memset(&ctx, 0, sizeof(ctx));
106 ret = asn1_ber_decoder(&tpm2key_decoder, &ctx, payload->blob,
111 if (ctx.priv_len + ctx.pub_len > MAX_BLOB_SIZE)
114 blob = kmalloc(ctx.priv_len + ctx.pub_len + 4, GFP_KERNEL);
119 options->keyhandle = ctx.parent;
121 memcpy(blob, ctx.priv, ctx.priv_len);
122 blob += ctx.priv_len;
124 memcpy(blob, ctx.pub, ctx.pub_len);
133 struct tpm2_key_context *ctx = context;
137 ctx->parent = 0;
139 ctx->parent <<= 8;
140 ctx->parent |= v[i];
168 struct tpm2_key_context *ctx = context;
170 ctx->pub = value;
171 ctx->pub_len = vlen;
180 struct tpm2_key_context *ctx = context;
182 ctx->priv = value;
183 ctx->priv_len = vlen;