-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels