Home
last modified time | relevance | path

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

/openbmc/linux/security/keys/trusted-keys/
H A Dtrusted_tpm2.c40 u16 priv_len, pub_len; in tpm2_key_encode() local
48 pub_len = get_unaligned_be16(src) + 2; in tpm2_key_encode()
74 if (WARN(work - scratch + pub_len + priv_len + 14 > SCRATCH_SIZE, in tpm2_key_encode()
81 work = asn1_encode_octet_string(work, end_work, pub, pub_len); in tpm2_key_encode()
104 u32 pub_len; member
124 if (ctx.priv_len + ctx.pub_len > MAX_BLOB_SIZE) in tpm2_key_decode()
127 blob = kmalloc(ctx.priv_len + ctx.pub_len + 4, GFP_KERNEL); in tpm2_key_decode()
137 memcpy(blob, ctx.pub, ctx.pub_len); in tpm2_key_decode()
184 ctx->pub_len = vlen; in tpm2_key_pub()