Skip to content

Cannot create symmetric key larger than 32 bytes #133

@BrianSipos

Description

@BrianSipos

I am trying to adhere to COSE requirements from Section 3.1 of RFC 9053 regarding HMAC key sizes, which requires:

For those algorithms that derive the key (such as ECDH), the derived key MUST be the same size as the output of the underlying hash function.

For SHA-384 this is 48 bytes, but when I try to create a key for this I get a pycose error:

pycose.exceptions.CoseInvalidKey: Key length should be either 16, 24, or 32 bytes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions