{"id":19224159,"url":"https://github.com/pedroalbanese/nums","last_synced_at":"2026-06-17T22:31:18.813Z","repository":{"id":57692085,"uuid":"482116321","full_name":"pedroalbanese/nums","owner":"pedroalbanese","description":"Microsoft Nothing Up My Sleeve Elliptic curves","archived":false,"fork":false,"pushed_at":"2022-05-12T18:14:30.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T10:15:29.292Z","etag":null,"topics":["asymmetric-cryptography","digital-signature","ecdh","elliptic-curves","microsoft","nums"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pedroalbanese.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-16T00:18:15.000Z","updated_at":"2022-11-16T14:47:12.000Z","dependencies_parsed_at":"2022-08-27T19:00:35.001Z","dependency_job_id":null,"html_url":"https://github.com/pedroalbanese/nums","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pedroalbanese/nums","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedroalbanese%2Fnums","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedroalbanese%2Fnums/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedroalbanese%2Fnums/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedroalbanese%2Fnums/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedroalbanese","download_url":"https://codeload.github.com/pedroalbanese/nums/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedroalbanese%2Fnums/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34468766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["asymmetric-cryptography","digital-signature","ecdh","elliptic-curves","microsoft","nums"],"created_at":"2024-11-09T15:10:44.883Z","updated_at":"2026-06-17T22:31:18.799Z","avatar_url":"https://github.com/pedroalbanese.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NUMS\n[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](https://github.com/pedroalbanese/nums/blob/master/LICENSE.md) \n[![GitHub downloads](https://img.shields.io/github/downloads/pedroalbanese/nums/total.svg?logo=github\u0026logoColor=white)](https://github.com/pedroalbanese/nums/releases)\n[![GoDoc](https://godoc.org/github.com/pedroalbanese/nums?status.png)](http://godoc.org/github.com/pedroalbanese/nums)\n[![Go Report Card](https://goreportcard.com/badge/github.com/pedroalbanese/nums)](https://goreportcard.com/report/github.com/pedroalbanese/nums)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/pedroalbanese/nums)](https://github.com/pedroalbanese/nums/releases)\n### Microsoft Nothing Up My Sleeve Elliptic curves\n[NUMS](http://www.watersprings.org/pub/id/draft-black-numscurves-01.html) (Nothing Up My Sleeve) curves, which are supported in the MSRElliptic Curve Cryptography Library (a.k.a. MSR ECCLib).\n\nThese curves are elliptic curves over a prime field, just like the NIST or Brainpool curves. However, the domain-parameters are choosen using a VERY TIGHT DESIGN SPACE to ensure, that the introduction of a backdoor is infeasable. For a desired size of s bits the prime p is choosen as p = 2^s - c with the smallest c where c\u003e0 and p mod 4 = 3 and p being prime.\n\n## Usage\n```\nUsage of nums:\n  -dec\n        Decrypt with Private key\n  -derive\n        Derive shared secret key\n  -enc\n        Encrypt with Public key\n  -key string\n        Private/Public key\n  -keygen\n        Generate keypair\n  -pub string\n        Remote's side Public key\n  -sign\n        Sign with Private key\n  -signature string\n        Signature\n  -verify\n        Verify with Public key\n```\n## Examples\n#### Asymmetric keypair generation:\n```sh\n./nums -keygen \n```\n#### Digital signature (ECDSA):\n```sh\n./nums -sign -key $prvkey \u003c file.ext \u003e sign.txt\nsign=$(cat sign.txt)\n./nums -verify -key $pubkey -signature $sign \u003c file.ext\n```\n#### Asymmetric encryption:\n```sh\n./nums -enc -key $pubkey \u003c file.ext \u003e file.enc\n./nums -dec -key $prvkey \u003c file.enc\n```\n#### Shared key agreement (ECDH):\n```sh\n./nums -derive -key $prvkey -pub $pubkey\n```\n\n## License\n\nThis project is licensed under the ISC License.\n\n##### Industrial-Grade Reliability. Copyright (c) 2020-2022 ALBANESE Research Lab.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedroalbanese%2Fnums","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedroalbanese%2Fnums","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedroalbanese%2Fnums/lists"}