Skip to content

Data with null bytes is not supported #2

@veorq

Description

@veorq

Data that includes null bytes seems to throw an exception:

import blake2
blake2.blake2('\x02\x01')
'c9b2d35d76fb7c0d8ffe8d5342d869b2237569d57e1f9415ee732f802e17e9a384f390834addad4a04443bcfe91e985d6c2daddd16bd97471bd2c02cc47159cd'
blake2.blake2('\x02\x00')
Traceback (most recent call last):
File "", line 1, in
TypeError: argument 1 must be string without null bytes, not str
blake2.blake2('\x00\x01')
Traceback (most recent call last):
File "", line 1, in
TypeError: argument 1 must be string without null bytes, not str

Same with blake2.blake2b and blake2.blake2s.

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