Home
last modified time | relevance | path

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

/linux/security/keys/trusted-keys/
H A Dtrusted_tpm2.c32 u16 priv_len, pub_len; in tpm2_key_encode() local
40 pub_len = get_unaligned_be16(src) + 2; in tpm2_key_encode()
66 if (WARN(work - scratch + pub_len + priv_len + 14 > SCRATCH_SIZE, in tpm2_key_encode()
73 work = asn1_encode_octet_string(work, end_work, pub, pub_len); in tpm2_key_encode()
96 u32 pub_len; member
116 if (ctx.priv_len + ctx.pub_len > MAX_BLOB_SIZE) in tpm2_key_decode()
119 blob = kmalloc(ctx.priv_len + ctx.pub_len + 4, GFP_KERNEL); in tpm2_key_decode()
129 memcpy(blob, ctx.pub, ctx.pub_len); in tpm2_key_decode()
176 ctx->pub_len = vlen; in tpm2_key_pub()