On Oct 22, 6:37 am, Charles T <charles...@...> wrote:
> I'm attempting to write a wrapper aroung the API defined for the
> trusted platform module. The Design Principles specification from the
> trusted computing group (http://www.trustedcomputinggroup.org/ > resources/tpm_main_specification) states that when using the
> TPM_ES_RSAESOAEP_SHA1_MGF1 encryption type, that " The OAEP encoding P
> parameter MUST be the 4 character string “TCPA” ".
> I use the following code when performing RSAES_OAEP encryption. How
> can I modify it to set the padding parameter to "TCPA"?
I don't believe modifying the padding after the fact will work well
(if at all).
For this, I believe the best course of action is to provide a
TPM_ES_RSAESOAEP_SHA1_MGF1 class. Then ne TPM padding class probably
should probably look a lot like PK_EncryptionMessageEncodingMethod or
OAEP < H, M >,