Skip to content

Increase hash function block size to accommodate SHA3 HMAC and SHAKE-128 #21

@andhu19

Description

@andhu19

Hello,
In cf_hmac_init() key k and block blk is allocated with CF_CHASH_MAXBLK (144 bytes). However, for SHA3HMAC and SHAKE-128 use block size up to 168 bytes.
With change of macro CF_CHASH_MAXBLK to 168, we can HMAC for these algorithms.

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