blackshirt / poly1305

Poly1305 one-time message authenticated code (MAC) module for V Language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

poly1305

Poly1305 is a one-time authenticator originally designed by D. J. Bernstein. Poly1305 takes a 32-byte one-time key and a message and produces a 16-byte tag. It can be used to verify the data integrity and the authenticity of a message.

This module provide poly1305 message authentication code (MAC) for V Language. As a note, a key must only be used for a single message. Authenticating two different messages with the same key allows an attacker to forge authenticators for other messages with the same key.

Note

This module was upstreamed to standard vlib, lives at experimental module in x.crypto.poly1305 So, development and test would be done on main repository. Use that instead.

About

Poly1305 one-time message authenticated code (MAC) module for V Language

License:MIT License


Languages

Language:V 100.0%