TPM2 (Trusted Platform Module) userspace development
 help / color / mirror / Atom feed
From: Chenxi Z <cxzhang1981 at hotmail.com>
To: tpm2@lists.01.org
Subject: [tpm2] Question about RSA 2048 AK key size
Date: Sat, 22 Feb 2020 00:05:50 +0000	[thread overview]
Message-ID: <20200222000550.2820.79421@ml01.vlan13.01.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 593 bytes --]

I created a 2048 RSA AK by using the command below :
tpm2_createak -C 0x81010001 -c ak.ctx -u ak.pub -r ak.priv -n ak.name -P dummypwd -p dummypwd

ak.priv file size = 224 bytes
#stat --printf="%s" ak.priv
224


ak.pub file size = 282 bytes.
$stat --printf="%s" ak.pub
282

Question: Do the AK private key and public key always have the same key sizes, ie, 224 and 282?
Is there any possibility that the key size could be changed because of random number or big prime number changes during key generation?

TPM2 tools version:
tpm2-tools-4.1.1
tpm2-abrmd-2.3.1
tpm2-tss-2.3.2

                 reply	other threads:[~2020-02-22  0:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200222000550.2820.79421@ml01.vlan13.01.org \
    --to=tpm2@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox