public inbox for tpm2@lists.linux.dev
 help / color / mirror / Atom feed
From: Petr Gotthard <petr.gotthard at centrum.cz>
To: tpm2@lists.01.org
Subject: [tpm2] Hash sequence duplication without ContextSave/ContextLoad
Date: Mon, 16 May 2022 18:29:22 +0200	[thread overview]
Message-ID: <20220516182922.3BF1EB1D@centrum.cz> (raw)

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

Hello,
 
I need to duplicate a hash sequence. This is to implement TPM-based version of OpenSSL's EVP_MD_CTX_dup.
 
Background: EVP_MD_CTX_dup can be used to duplicate the message digest state. This is useful [...] if large amounts of data are to be hashed which only differ in the last few bytes.
 
 
So far I am using ContextSave/ContextLoad, but Windows is blocking these TPM commands.
https://docs.microsoft.com/en-us/windows/win32/tbs/command-blocking
 
Is there some other way to duplicate a TPM hash sequence, please?
 
 
Petr 

                 reply	other threads:[~2022-05-16 16:29 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=20220516182922.3BF1EB1D@centrum.cz \
    --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