Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKueltz authored Dec 26, 2019
1 parent fcb1290 commit d188480
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ Method 2
Basic API
---------

Encryption
~~~~~~~~~~
:code:`aead.encrypt_and_tag`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Takes a key, nonce, plaintext and additional data and returns a ciphertext and MAC.

.. code:: python
Expand All @@ -52,11 +53,12 @@ Encryption
nonce: bytes,
plaintext: bytes,
aad: bytes
) -> bytes
) -> (bytes, bytes)
Decryption
~~~~~~~~~~
:code:`aead.verify_and_decrypt`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Takes a key, nonce, ciphertext, MAC and additional data and returns a plaintext.

.. code:: python
Expand Down

0 comments on commit d188480

Please sign in to comment.