{"id":17290553,"url":"https://github.com/crazyguitar/ktls-example","last_synced_at":"2025-08-21T10:17:34.457Z","repository":{"id":72290705,"uuid":"111994306","full_name":"crazyguitar/ktls-example","owner":"crazyguitar","description":"ktls related example","archived":false,"fork":false,"pushed_at":"2017-12-18T05:01:41.000Z","size":42,"stargazers_count":5,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-10T16:40:38.721Z","etag":null,"topics":["ktls","linux","tls"],"latest_commit_sha":null,"homepage":null,"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/crazyguitar.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,"zenodo":null}},"created_at":"2017-11-25T10:12:28.000Z","updated_at":"2024-10-07T01:32:51.000Z","dependencies_parsed_at":"2023-05-07T05:47:16.138Z","dependency_job_id":null,"html_url":"https://github.com/crazyguitar/ktls-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crazyguitar/ktls-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyguitar%2Fktls-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyguitar%2Fktls-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyguitar%2Fktls-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyguitar%2Fktls-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazyguitar","download_url":"https://codeload.github.com/crazyguitar/ktls-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyguitar%2Fktls-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271462094,"owners_count":24763858,"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-08-21T02:00:08.990Z","response_time":74,"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":["ktls","linux","tls"],"created_at":"2024-10-15T10:38:33.216Z","updated_at":"2025-08-21T10:17:34.452Z","avatar_url":"https://github.com/crazyguitar.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KTLS example\n\n[![Build Status](https://travis-ci.org/crazyguitar/ktls-example.svg?branch=master)](https://travis-ci.org/crazyguitar/ktls-example)\n\n## Prerequisite\n\n* linux 4.13 or above\n* openssl 1.0.x\n\n## Generate self-signed certificate\n\n```bash\n$ openssl ecparam -out key.pem -genkey -name prime256v1\n$ openssl req -x509 -new -key key.pem -out cert.pem\n```\n\n## Run the binaries\n\n```bash\n$ make\n$ dd if=/dev/zero of=.dd.test bs=1M count=512\n$ ./ktls_sendfile 127.0.0.1 .dd.test \nstart do_sendfile(.dd.test)\nsendfile cost time: 2.27\nend do_sendfile(.dd.test)\nchecksum(.TMP_ktls): aa559b4e3523a6c931f08f4df52d58f2\nchecksum(.dd.test): aa559b4e3523a6c931f08f4df52d58f2 \n```\n\n## Reference\n\n* [djwatson/ktls](https://github.com/djwatson/ktls)\n* [ktls/afi\\_ktls-tool](https://github.com/ktls/af_ktls-tool)\n* [include/uapi/linux/tls.h](https://github.com/torvalds/linux/blob/master/include/uapi/linux/tls.h)\n* [linux/Documentation/networking/tls.txt](https://github.com/torvalds/linux/blob/master/Documentation/networking/tls.txt)\n* [TLS: Linux Kernel Transport Layer Security - NetDev](https://netdevconf.org/1.2/papers/ktls.pdf)\n* [Playing with kernel TLS in Linux 4.13 and Go - Filippo.io](https://blog.filippo.io/playing-with-kernel-tls-in-linux-4-13-and-go/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyguitar%2Fktls-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazyguitar%2Fktls-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyguitar%2Fktls-example/lists"}