{"id":26933542,"url":"https://github.com/ppad-tech/poly1305","last_synced_at":"2026-04-21T09:33:36.081Z","repository":{"id":281505722,"uuid":"945466251","full_name":"ppad-tech/poly1305","owner":"ppad-tech","description":"The Poly1305 message authentication code","archived":false,"fork":false,"pushed_at":"2025-12-28T21:23:05.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-31T14:12:36.755Z","etag":null,"topics":["cryptography","haskell","mac","poly1305"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ppad-tech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-09T13:48:38.000Z","updated_at":"2025-12-28T21:23:09.000Z","dependencies_parsed_at":"2025-06-11T09:34:31.631Z","dependency_job_id":null,"html_url":"https://github.com/ppad-tech/poly1305","commit_stats":null,"previous_names":["ppad-tech/poly1305"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ppad-tech/poly1305","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fpoly1305","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fpoly1305/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fpoly1305/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fpoly1305/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppad-tech","download_url":"https://codeload.github.com/ppad-tech/poly1305/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fpoly1305/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32085556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cryptography","haskell","mac","poly1305"],"created_at":"2025-04-02T09:19:31.632Z","updated_at":"2026-04-21T09:33:36.071Z","avatar_url":"https://github.com/ppad-tech.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# poly1305\n\n[![](https://img.shields.io/hackage/v/ppad-poly1305?color=blue)](https://hackage.haskell.org/package/ppad-poly1305)\n![](https://img.shields.io/badge/license-MIT-brightgreen)\n[![](https://img.shields.io/badge/haddock-poly1305-lightblue)](https://docs.ppad.tech/poly1305)\n\nA pure Haskell implementation of the Poly1305 message authentication\ncode as specified by [RFC8439][8439].\n\n## Usage\n\nA sample GHCi session:\n\n```\n  \u003e :set -XOverloadedStrings\n  \u003e\n  \u003e -- import qualified\n  \u003e import qualified Crypto.MAC.Poly1305 as Poly1305\n  \u003e\n  \u003e -- produce a MAC for a message using a secret one-time key\n  \u003e let key = \"i'll never use this key again!!!\"\n  \u003e let msg = \"i am a message that is in need of authentication\"\n  \u003e Poly1305.mac key msg\n  Just \"\\247\\247\\GSZ^\\140\\168\\r\\177\\197\\242\\182b#\\210g\"\n```\n\n## Documentation\n\nHaddocks (API documentation, etc.) are hosted at\n[docs.ppad.tech/poly1305][hadoc].\n\n## Performance\n\nThe aim is best-in-class performance for pure Haskell code.\n\nCurrent benchmark figures on the simple \"sunscreen input\" from RFC8439\non an M4 Silicon MacBook Air look like (use `cabal bench` to run the\nbenchmark suite):\n\n```\n  benchmarking ppad-poly1305/mac (big key)\n  time                 125.1 ns   (124.9 ns .. 125.4 ns)\n                       1.000 R²   (1.000 R² .. 1.000 R²)\n  mean                 125.4 ns   (125.0 ns .. 126.2 ns)\n  std dev              1.530 ns   (216.3 ps .. 2.693 ns)\n```\n\n## Security\n\nThis library aims at the maximum security achievable in a\ngarbage-collected language under an optimizing compiler such as GHC, in\nwhich strict constant-timeness can be [challenging to achieve][const].\n\nThe Poly1305 MAC function and its internals pass all official\ntest vectors in RFC8439, and the downstream AEAD-ChaCha20-Poly1305\nimplementation in [ppad-aead](https://github.com/ppad-tech/aead) passes\nall the [Project Wycheproof vectors][wyche].\n\nFixed-width words and constant-time primitives are supplied by\n[ppad-fixed][fixed]. Criterion benchmarks provide sanity checks of\nconstant-time execution:\n\n```\n  benchmarking ppad-poly1305/mac (small key)\n  time                 125.1 ns   (124.9 ns .. 125.4 ns)\n                       1.000 R²   (1.000 R² .. 1.000 R²)\n  mean                 125.1 ns   (125.0 ns .. 125.4 ns)\n  std dev              524.6 ps   (180.6 ps .. 1.132 ns)\n\n  benchmarking ppad-poly1305/mac (mid key)\n  time                 125.2 ns   (124.9 ns .. 125.4 ns)\n                       1.000 R²   (1.000 R² .. 1.000 R²)\n  mean                 125.1 ns   (125.1 ns .. 125.3 ns)\n  std dev              441.3 ps   (195.0 ps .. 755.1 ps)\n\n  benchmarking ppad-poly1305/mac (big key)\n  time                 125.1 ns   (124.9 ns .. 125.4 ns)\n                       1.000 R²   (1.000 R² .. 1.000 R²)\n  mean                 125.4 ns   (125.0 ns .. 126.2 ns)\n  std dev              1.530 ns   (216.3 ps .. 2.693 ns)\n  variance introduced by outliers: 12% (moderately inflated)\n```\n\nIf you discover any vulnerabilities, please disclose them via\nsecurity@ppad.tech.\n\n## Development\n\nYou'll require [Nix][nixos] with [flake][flake] support enabled. Enter a\ndevelopment shell with:\n\n```\n$ nix develop\n```\n\nThen do e.g.:\n\n```\n$ cabal repl ppad-poly1305\n```\n\nto get a REPL for the main library.\n\n[8439]: https://datatracker.ietf.org/doc/html/rfc8439\n[nixos]: https://nixos.org/\n[flake]: https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake.html\n[hadoc]: https://docs.ppad.tech/poly1305\n[const]: https://www.chosenplaintext.ca/articles/beginners-guide-constant-time-cryptography.html\n[wyche]: https://github.com/C2SP/wycheproof\n[fixed]: https://github.com/ppad-tech/fixed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppad-tech%2Fpoly1305","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppad-tech%2Fpoly1305","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppad-tech%2Fpoly1305/lists"}