8000 GitHub - janmojzis/python-lib1305: Python wrapper around implementation of the Poly1305 one-time authenticator
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

janmojzis/python-lib1305

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python wrapper around lib1305 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.

About

Python wrapper around implementation of the Poly1305 one-time authenticator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0