From 3c68250ad9bfb275c760fcce4c72c78c99b57c34 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 10 Dec 2018 12:13:31 +0800 Subject: allow bytes-like for key/iv/data for symmetric encryption (#4621) * allow bytearrays for key/iv for symmetric encryption * bump pypy/cffi requirements * update docs, fix some tests * old openssl is naught but pain * revert a typo * use trusty for old pypy * better error msg again * restore match --- docs/glossary.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/glossary.rst') diff --git a/docs/glossary.rst b/docs/glossary.rst index ce08dbaa..95b893c8 100644 --- a/docs/glossary.rst +++ b/docs/glossary.rst @@ -94,6 +94,11 @@ Glossary bit key, you can calculate the number of bytes by dividing by 8. 128 divided by 8 is 16, so a 128 bit key is a 16 byte key. + bytes-like + A bytes-like object contains binary data and supports the + `buffer protocol`_. This includes ``bytes``, ``bytearray``, and + ``memoryview`` objects. + U-label The presentational unicode form of an internationalized domain name. U-labels use unicode characters outside the ASCII range and @@ -101,3 +106,4 @@ Glossary .. _`hardware security module`: https://en.wikipedia.org/wiki/Hardware_security_module .. _`idna`: https://pypi.org/project/idna/ +.. _`buffer protocol`: https://docs.python.org/3/c-api/buffer.html -- cgit v1.2.3