Skip to content

Fix [Incorrect SHAKE APIs] #1119

@rdubois-crypto

Description

@rdubois-crypto

/*## Description

As a XOF, SHAKE is intended to be used dynamically (squeeze function being called at will, without prior knowledge at init of the output length).

Your environment

Not relevant

Steps to reproduce

APIs of final doesn't include a length. Prior knowledge at init is required.

Expected behaviour

A cx_shake128_squeeze(state, buff, outlen) shall be available instead of final.

Actual behaviour

It is expected to know desired output length at init. A XOF enables dynamic generation.

Logs

Not relevant

Proposed solution

Implemeent cx_shake128_squeeze(state, buff, outlen) and cx_shake256_squeeze(state, buff, outlen)
*/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions