oconnor663 / blake3-py

Python bindings for the BLAKE3 cryptographic hash function
Other
148 stars 14 forks source link

allow the key parameter to be a bytearray #15

Closed oconnor663 closed 4 years ago

oconnor663 commented 4 years ago

The way we define the bindings, the key is required to be a bytes object, and it can't be e.g. a bytearray. This is an unnecessary restriction. We should probably refactor the buffer API code so that we can call it twice, and then treat the key the same way we treat the input bytes.

oconnor663 commented 4 years ago

Done.