{"id":35858102,"url":"https://github.com/kamil-kielbasa/libedhoc","last_synced_at":"2026-04-02T00:55:57.893Z","repository":{"id":230910771,"uuid":"780408115","full_name":"kamil-kielbasa/libedhoc","owner":"kamil-kielbasa","description":"EDHOC (RFC 9528): Lightweight authenticated key exchange in C for IoT and constrained devices","archived":false,"fork":false,"pushed_at":"2026-02-27T18:35:55.000Z","size":6426,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-02-27T21:43:12.081Z","etag":null,"topics":["authentication","c","coap","constrained-devices","cryptography","edhoc","embedded","ietf","iot","key-exchange","oscore","rfc9528","rfc9529","security","zephyr"],"latest_commit_sha":null,"homepage":"","language":"C","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/kamil-kielbasa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","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":"2024-04-01T12:20:54.000Z","updated_at":"2026-02-27T18:19:33.000Z","dependencies_parsed_at":"2024-04-01T15:00:40.156Z","dependency_job_id":"2672b957-4576-41fb-b6b5-3e11f383eea6","html_url":"https://github.com/kamil-kielbasa/libedhoc","commit_stats":null,"previous_names":["kamil-kielbasa/libedhoc"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/kamil-kielbasa/libedhoc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamil-kielbasa%2Flibedhoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamil-kielbasa%2Flibedhoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamil-kielbasa%2Flibedhoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamil-kielbasa%2Flibedhoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamil-kielbasa","download_url":"https://codeload.github.com/kamil-kielbasa/libedhoc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamil-kielbasa%2Flibedhoc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29977969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"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":["authentication","c","coap","constrained-devices","cryptography","edhoc","embedded","ietf","iot","key-exchange","oscore","rfc9528","rfc9529","security","zephyr"],"created_at":"2026-01-08T10:11:58.766Z","updated_at":"2026-03-01T18:03:58.495Z","avatar_url":"https://github.com/kamil-kielbasa.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI / Linux](https://github.com/kamil-kielbasa/libedhoc/actions/workflows/ci-linux.yml/badge.svg?branch=main)](https://github.com/kamil-kielbasa/libedhoc/actions/workflows/ci-linux.yml)\n[![CI / Zephyr](https://github.com/kamil-kielbasa/libedhoc/actions/workflows/ci-zephyr.yml/badge.svg?branch=main)](https://github.com/kamil-kielbasa/libedhoc/actions/workflows/ci-zephyr.yml)\n[![CI / Sandbox](https://github.com/kamil-kielbasa/libedhoc/actions/workflows/ci-sandbox.yml/badge.svg?branch=main)](https://github.com/kamil-kielbasa/libedhoc/actions/workflows/ci-sandbox.yml)\n[![CI / Documentation](https://github.com/kamil-kielbasa/libedhoc/actions/workflows/ci-docs.yml/badge.svg?branch=main)](https://github.com/kamil-kielbasa/libedhoc/actions/workflows/ci-docs.yml)\n[![codecov](https://codecov.io/gh/kamil-kielbasa/libedhoc/branch/main/graph/badge.svg)](https://codecov.io/gh/kamil-kielbasa/libedhoc)\n\n# libedhoc\n\nA C implementation of the Ephemeral Diffie-Hellman Over COSE (EDHOC) protocol — a lightweight authenticated key exchange designed for constrained devices. EDHOC provides mutual authentication, forward secrecy, and identity protection. Standardized by the IETF as [RFC 9528](https://datatracker.ietf.org/doc/html/rfc9528), verified against [RFC 9529](https://datatracker.ietf.org/doc/html/rfc9529) test vectors.\n\n## Features\n\n- Context-based API with safe access control using context handles\n- CoAP-friendly message composition and processing\n- OSCORE session export for establishing secure communication channels\n- Separate interfaces for cryptographic keys, operations, credentials, and EAD\n- Private keys accessible only by identifier; raw key material never exposed\n- All CBOR encoding/decoding encapsulated and hidden from the user\n- Stack-only allocations using VLA; no heap required\n- Native Zephyr RTOS support with west manifest integration\n- Verified with cppcheck, clang-tidy, ASan, UBSan, Valgrind, and LibFuzzer\n\n### Cipher Suites\n\n| Suite | AEAD               | Hash    | ECDH    | Signature |\n|-------|-------------------|---------|---------|-----------|\n| 0     | AES-CCM-16-64-128 | SHA-256 | X25519  | EdDSA     |\n| 2     | AES-CCM-16-64-128 | SHA-256 | P-256   | ES256     |\n\n### Authentication Methods\n\nAll four EDHOC authentication methods (0–3) are supported, combining Signature Keys and Static DH Keys for initiator and responder.\n\n## Metrics\n\n| Metric | Value |\n|--------|-------|\n| Line coverage | 92.8% |\n| Function coverage | 100% |\n| Test count | 635+ (unit, integration, fuzz) |\n| Library flash footprint | ~20 KiB (cipher suite 2, P-256/ES256, native_sim) |\n| Static RAM (data + bss) | 0 bytes (all state on stack) |\n\nCoverage details on the [Codecov dashboard](https://codecov.io/gh/kamil-kielbasa/libedhoc). Memory and timing benchmarks available as [CI artifacts](../../actions/workflows/ci-zephyr.yml).\n\n## Documentation\n\nFull documentation including API reference, build instructions, configuration, and testing guide:\n\n\u003chttps://kamil-kielbasa.github.io/libedhoc/\u003e\n\n## Contributing\n\nContributions are welcome. To contribute:\n\n1. Fork the repository and create a new branch.\n2. Implement your feature or bugfix.\n3. Write tests if applicable.\n4. Open a pull request.\n\nPlease follow the existing code style and structure.\n\n## License\n\nMIT License. See the [LICENSE](LICENSE) file for details.\n\n## Related Projects\n\n- [node-edhoc](https://github.com/stoprocent/node-edhoc) — A TypeScript/Node.js implementation of EDHOC.\n\n## Contact\n\nemail: kamkie1996@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamil-kielbasa%2Flibedhoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamil-kielbasa%2Flibedhoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamil-kielbasa%2Flibedhoc/lists"}