{"id":24076635,"url":"https://github.com/lubux/key-derivation-tree","last_synced_at":"2025-10-20T03:22:14.529Z","repository":{"id":86831085,"uuid":"272445362","full_name":"lubux/key-derivation-tree","owner":"lubux","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-17T11:23:37.000Z","size":26,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-20T03:44:50.915Z","etag":null,"topics":["cryptography","key-generation","prf"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lubux.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2020-06-15T13:24:02.000Z","updated_at":"2020-06-17T11:23:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3705514-9257-4a8b-8d4f-34a0e72c6a2b","html_url":"https://github.com/lubux/key-derivation-tree","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lubux/key-derivation-tree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lubux%2Fkey-derivation-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lubux%2Fkey-derivation-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lubux%2Fkey-derivation-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lubux%2Fkey-derivation-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lubux","download_url":"https://codeload.github.com/lubux/key-derivation-tree/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lubux%2Fkey-derivation-tree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277081049,"owners_count":25757340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-26T02:00:09.010Z","response_time":78,"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":["cryptography","key-generation","prf"],"created_at":"2025-01-09T19:59:57.066Z","updated_at":"2025-09-26T12:52:35.066Z","avatar_url":"https://github.com/lubux.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Key Derivation Tree \n[![Build Status](https://travis-ci.org/lubux/key-derivation-tree.svg?branch=master)](https://travis-ci.org/lubux/key-derivation-tree)\n\n\nRust implementation of the key derivation tree used in TimeCrypt([Link](https://www.usenix.org/conference/nsdi20/presentation/burkhalter)).\n\n\n## Build\n\n```\ncargo build\n```\n\n## Usage\n\nInitialize the Key Derivation Tree with the master secret `key` and 32 bit inputs.\n```rust\nlet key = [0u8; 16];\nlet prf = ConstrainedPrf::init(32, key);\n```\nDerive the i-th key.\n```rust\nlet key_out = prf.apply(i).unwrap();\n```\n\nGive access to the keys in the range `[1,15)`.\n```rust\nlet node_keys = prf.constrain(1, 15).unwrap();\n```\n\nInitialize the Key Derivation Tree with the constrained nodes. \n```rust\nlet prf2 = ConstrainedPrf::new(32, node_keys);\n// derive key ok\nlet key_out = prf.apply(2).unwrap();\n// derive key error\nlet key_out = prf.apply(0).unwrap();\n```\n\n\n## Benchmark\n\n```\ncargo bench\n```\n\n## Disclaimer \nThis is a research prototype.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flubux%2Fkey-derivation-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flubux%2Fkey-derivation-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flubux%2Fkey-derivation-tree/lists"}