Metadata-Version: 2.4
Name: lib1305
Version: 20250415.2
Summary: Python wrapper around implementation of the Poly1305 one-time authenticator
Author-email: Jan Mojžíš <jan.mojzis@gmail.com>
License: SPDX-License-Identifier: CC0-1.0 OR 0BSD OR MIT-0 OR MIT
        
        - [CC0-1.0](https://spdx.org/licenses/CC0-1.0.html)
        - [0BSD](https://spdx.org/licenses/0BSD.html)
        - [MIT-0](https://spdx.org/licenses/MIT-0.html)
        - [MIT](https://spdx.org/licenses/MIT.html)
        
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

Python wrapper around [lib1305](https://lib1305.cr.yp.to) library,
wrapper around the Poly1305 one-time authenticator.

Import library:

    from lib1305 import poly1305

Authenticating a message:

    a = poly1305.auth(m, k)

Verifying an authenticator:

    poly1305.verify(a, m, k)

The poly1305.auth function generates an 128-bit authenticator 'a' given
a message 'm' and a 256-bit secret key 'k'. "One-time" means that the secret
key must not be reused to generate an authenticator of another message.

The poly1305.verify function verifies an 128-bit authenticator 'a' given
a messagea 'm' and a 256-bit secret key 'k'.
It raises an exception if the authenticator is not valid.
