Skip to content

SSLv3 s2n_hmac_test uses keys of the wrong lengths #644

Open
@danielsn

Description

@danielsn

https://github.com/awslabs/s2n/blob/master/tests/unit/s2n_hmac_test.c#L32

In SSLv3, the size of the key is fixed to be the same as the output size of the hash function, so the keys should be 16 bytes for md5 and 20 for sha1.

In addition to fixing the test, might be a good idea to add a check in the init code to ensure that the sslv3 keys are the right length

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions