public static function auth($mac, $m, $bytes, $key) { $p = Poly1305::instance(); $ctx = $p->init($key); $p->update($ctx, $m, $bytes); $p->finish($ctx, $mac); }
public static function auth($mac, $m, $bytes, $key) { $p = Poly1305::instance(); $ctx = $p->init($key); $p->update($ctx, $m, $bytes); $p->finish($ctx, $mac); }