tpm2-software / tpm2-tss-engine

OpenSSL Engine for TPM2 devices
https://tpm2-software.github.io
BSD 3-Clause "New" or "Revised" License
151 stars 100 forks source link

digest-sign: fix digest of large chunks of data #249

Closed rshearman closed 2 years ago

rshearman commented 2 years ago

Fix the use of digest on chunks of data larger than the buffer size supported by the TPM by iteratively calling Esys_SequenceUpdate on the chunks until all the data is consumed.

Extend the restricted signing tests to cover this case.

Fixes #248

Signed-off-by: Rob Shearman rob@graphiant.com