Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[python] Pass bytes to cryptography.io's
RSAPrivateKey.sign()
Until RIIR, cryptography.io accepted bytearray for arguments in various methods like `RSAPrivateKey.sign()`. Technically at least `.sign()` is documented to accept bytes only (even if bytearray is "bytes-like"). Fix by always converting to bytes in `Sigstruct.to_bytes()` (which BTW should return bytes, as the name suggests). Corresponding upstream commit in `pyca/cryptography` repository: 0000b402dd5edffa6a86ca560464e83a66fd91f5 Signed-off-by: Wojtek Porczyk <woju@invisiblethingslab.com>
- Loading branch information