All of lore.kernel.org
 help / color / mirror / Atom feed
To: tpm2@lists.01.org
Subject: [tpm2] Generating a symmetric key
Date: Tue, 13 Aug 2019 11:40:24 +0200	[thread overview]
Message-ID: <CAPSVqM0CW4L5ddUcO32Yia7mFUiNZ2QHBP7fTvKxfbf6fF4E1g@mail.gmail.com> (raw)

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

Hello,

I am trying to encrypt a file with a key generated by the TPM. I got
everything working and can generate rsa keys with no problem. But when I
try to run the following command

$ tpm2_create -C key2.ctx -Gaes -u key3.pub -r key3.priv

I get an error:

ARNING:esys:src/tss2-esys/api/Esys_Create.c:366:Esys_Create_Finish()
Received TPM Error
ERROR:esys:src/tss2-esys/api/Esys_Create.c:116:Esys_Create() Esys
Finish ErrorCode (0x0000012f)
ERROR: Esys_Create(0x12F) - tpm:error(2.0): authValue or authPolicy is
not available for selected entity
ERROR: Unable to run tpm2_create

key2 is loaded, so I don't know what the error is. I am using version 3.0.2
from the GitHub repository and running everything in a Raspberry Pi 3. I
have been reading the manual and the option for generating an AES key is
-Gaes, so I don't understand why it is not working.

Thanks in advance for your help.

Iratxe

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 1130 bytes --]

             reply	other threads:[~2019-08-13  9:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-13  9:40  [this message]
2019-08-23 17:30 [tpm2] Generating a symmetric key Roberts, William C
2019-08-26 17:32 
2019-08-26 20:53 Roberts, William C

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=CAPSVqM0CW4L5ddUcO32Yia7mFUiNZ2QHBP7fTvKxfbf6fF4E1g@mail.gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.