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.
The way we define the bindings, the key is required to be a
bytes
object, and it can't be e.g. abytearray
. 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.