OXIESEC PANEL
- Current Dir:
/
/
opt
/
gsutil
/
third_party
/
rsa
/
doc
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
12/11/2024 09:39:44 AM
rwxr-xr-x
📄
Makefile
4.66 KB
04/05/2021 03:08:16 PM
rw-r--r--
📁
_build
-
04/05/2021 03:08:16 PM
rwxr-xr-x
📁
_static
-
04/05/2021 03:08:16 PM
rwxr-xr-x
📁
_templates
-
04/05/2021 03:08:16 PM
rwxr-xr-x
📄
cli.rst
3.76 KB
04/05/2021 03:08:16 PM
rw-r--r--
📄
compatibility.rst
1.9 KB
04/05/2021 03:08:16 PM
rw-r--r--
📄
conf.py
7.13 KB
04/05/2021 03:08:16 PM
rw-r--r--
📄
index.rst
1.51 KB
04/05/2021 03:08:16 PM
rw-r--r--
📄
installation.rst
1.38 KB
04/05/2021 03:08:16 PM
rw-r--r--
📄
intro.rst
1.51 KB
04/05/2021 03:08:16 PM
rw-r--r--
📄
licence.rst
667 bytes
04/05/2021 03:08:16 PM
rw-r--r--
📄
make.bat
4.41 KB
04/05/2021 03:08:16 PM
rw-r--r--
📄
reference.rst
2.19 KB
04/05/2021 03:08:16 PM
rw-r--r--
📄
upgrading.rst
2.69 KB
04/05/2021 03:08:16 PM
rw-r--r--
📄
usage.rst
10.58 KB
04/05/2021 03:08:16 PM
rw-r--r--
Editing: reference.rst
Close
Reference ========= This is the class and function reference. For more usage information see the :ref:`usage` page. Functions --------- .. autofunction:: rsa.encrypt .. autofunction:: rsa.decrypt .. autofunction:: rsa.sign .. autofunction:: rsa.verify .. autofunction:: rsa.find_signature_hash .. autofunction:: rsa.newkeys(keysize) Classes ------- .. note:: Storing public and private keys via the `pickle` module is possible. However, it is insecure to load a key from an untrusted source. The pickle module is not secure against erroneous or maliciously constructed data. Never unpickle data received from an untrusted or unauthenticated source. .. autoclass:: rsa.PublicKey :members: :inherited-members: .. autoclass:: rsa.PrivateKey :members: :inherited-members: Exceptions ---------- .. autoclass:: rsa.pkcs1.CryptoError(Exception) .. autoclass:: rsa.pkcs1.DecryptionError(CryptoError) .. autoclass:: rsa.pkcs1.VerificationError(CryptoError) .. index:: VARBLOCK (file format) The VARBLOCK file format ++++++++++++++++++++++++ .. warning:: The VARBLOCK format is NOT recommended for general use, has been deprecated since Python-RSA 3.4, and was removed in version 4.0. It's vulnerable to a number of attacks. See :ref:`bigfiles` for more information. The VARBLOCK file format allows us to encrypt files that are larger than the RSA key. The format is as follows; || denotes byte string concatenation:: VARBLOCK := VERSION || BLOCK || BLOCK || ... VERSION := 1 BLOCK := LENGTH || DATA LENGTH := varint-encoded length of the following data, in bytes DATA := the data to store in the block The varint-format was taken from Google's Protobuf_, and allows us to efficiently encode an arbitrarily long integer. .. _Protobuf: https://code.google.com/apis/protocolbuffers/docs/encoding.html#varints Module: rsa.core ---------------- At the core of the RSA encryption method lie these functions. They both operate on (arbitrarily long) integers only. They probably aren't of much use to you, but I wanted to document them anyway as they are the core of the entire library. .. autofunction:: rsa.core.encrypt_int .. autofunction:: rsa.core.decrypt_int