Skip to content

Invalid signature using HMAC_GENERAL #2

@sidalit

Description

@sidalit

Hi,

I have a problem with the PKCS11 test sign_and_verify for CKM_SHA256_HMAC_GENERAL. the C_Verify function fails with Invalid Signature. In fact, the function C_Verify uses the GlobalPlatoform function TEE_MACCompareFinal to compute the MAC and compare with the one provided in argument.

However with the CKM_SHA256_HMAC_GENERAL mechanism, the truncated MAC is provided to the TEE_MACCompareFinal which cause a failure because calculated MAC and the truncated MAC will be different.

Is this a problem in the test or am I missing something ?
Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions