parent
9e087d578b
commit
07b547b80c
1
Makefile
1
Makefile
|
@ -49,6 +49,7 @@ clean-test: ## remove test and coverage artifacts
|
|||
|
||||
lint: ## check style with flake8
|
||||
flake8 src tests
|
||||
pylint src tests/*
|
||||
|
||||
test: install ## run tests quickly with the default Python
|
||||
py.test tests
|
||||
|
|
|
@ -20,8 +20,7 @@ RSA
|
|||
:members:
|
||||
:inherited-members:
|
||||
|
||||
Example
|
||||
~~~~~~~
|
||||
**Example:**
|
||||
|
||||
>>> from wolfcrypt.ciphers import RsaPrivate, RsaPublic
|
||||
>>> from wolfcrypt.utils import h2b
|
||||
|
|
|
@ -7,17 +7,25 @@ Symmetric Key Algorithms
|
|||
cryptographic key** for both encryption and decryption of data.
|
||||
This operation is also known as **Symmetric Key Encryption**.
|
||||
|
||||
``wolfcrypt`` provides access to the following **Symmetric Key Ciphers**:
|
||||
Symmetric Key Encryption Classes
|
||||
--------------------------------
|
||||
|
||||
Interface
|
||||
~~~~~~~~~
|
||||
|
||||
All **Symmetric Key Ciphers** available in this module implements the following
|
||||
interface:
|
||||
|
||||
.. autoclass:: _Cipher
|
||||
:members:
|
||||
|
||||
AES
|
||||
---
|
||||
~~~
|
||||
|
||||
.. autoclass:: Aes
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
Example
|
||||
~~~~~~~
|
||||
**Example:**
|
||||
|
||||
.. doctest::
|
||||
|
||||
|
@ -31,14 +39,12 @@ Example
|
|||
b'now is the time '
|
||||
|
||||
Triple DES
|
||||
----------
|
||||
~~~~~~~~~~
|
||||
|
||||
.. autoclass:: Des3
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
Example
|
||||
~~~~~~~
|
||||
**Example:**
|
||||
|
||||
.. doctest::
|
||||
|
||||
|
|
|
@ -308,7 +308,7 @@ def test_ecc_make_shared_secret():
|
|||
b_pub = EccPublic()
|
||||
b_pub.import_x963(b.export_x963())
|
||||
|
||||
assert a.shared_secret(b) == \
|
||||
b.shared_secret(a) == \
|
||||
a.shared_secret(b_pub) == \
|
||||
b.shared_secret(a_pub)
|
||||
assert a.shared_secret(b) \
|
||||
== b.shared_secret(a) \
|
||||
== a.shared_secret(b_pub) \
|
||||
== b.shared_secret(a_pub)
|
||||
|
|
Loading…
Reference in New Issue