diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2023-03-20 20:16:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-21 08:16:53 +0800 |
| commit | f371af837a6785959e52ac4c84e80f0453c542f1 (patch) | |
| tree | 087b340b6ffe83aceb5e56c78af85ed8c53513a5 /src/cryptography/hazmat | |
| parent | 328f04dd8a575540ef493613c08f3a521365ce8f (diff) | |
| download | cryptography-f371af837a6785959e52ac4c84e80f0453c542f1.tar.gz | |
Added support for handling python buffers in Rust code (#8556)
This is extra mega cursed, and strictly speaking unsound. It does, however, match the status quo ante, where someone mutating a buffer while its being used in cffi code will basically always be UB.
Diffstat (limited to 'src/cryptography/hazmat')
| -rw-r--r-- | src/cryptography/hazmat/primitives/serialization/pkcs7.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/primitives/serialization/pkcs7.py b/src/cryptography/hazmat/primitives/serialization/pkcs7.py index 59b3ab99d..0a72e0df8 100644 --- a/src/cryptography/hazmat/primitives/serialization/pkcs7.py +++ b/src/cryptography/hazmat/primitives/serialization/pkcs7.py @@ -78,7 +78,7 @@ class PKCS7SignatureBuilder: if self._data is not None: raise ValueError("data may only be set once") - return PKCS7SignatureBuilder(bytes(data), self._signers) + return PKCS7SignatureBuilder(data, self._signers) def add_signer( self, |
