Home
last modified time | relevance | path

Searched refs:pub_len (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/security/keys/trusted-keys/
Dtrusted_tpm2.c40 u16 priv_len, pub_len; in tpm2_key_encode() local
47 pub_len = get_unaligned_be16(src) + 2; in tpm2_key_encode()
71 if (WARN(work - scratch + pub_len + priv_len + 14 > SCRATCH_SIZE, in tpm2_key_encode()
76 work = asn1_encode_octet_string(work, end_work, pub, pub_len); in tpm2_key_encode()
91 u32 pub_len; member
111 if (ctx.priv_len + ctx.pub_len > MAX_BLOB_SIZE) in tpm2_key_decode()
114 blob = kmalloc(ctx.priv_len + ctx.pub_len + 4, GFP_KERNEL); in tpm2_key_decode()
124 memcpy(blob, ctx.pub, ctx.pub_len); in tpm2_key_decode()
171 ctx->pub_len = vlen; in tpm2_key_pub()