{"id":16224094,"url":"https://github.com/quininer/ktls","last_synced_at":"2025-07-19T01:03:49.718Z","repository":{"id":66210826,"uuid":"149901106","full_name":"quininer/ktls","owner":"quininer","description":"[deprecated] Linux Kernel TLS for Rust.","archived":false,"fork":false,"pushed_at":"2018-10-03T07:11:50.000Z","size":39,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-03T02:41:19.614Z","etag":null,"topics":["ktls","rustls","tls","tokio"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/quininer.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":"2018-09-22T17:38:06.000Z","updated_at":"2020-08-06T05:20:56.000Z","dependencies_parsed_at":"2023-02-23T23:15:33.204Z","dependency_job_id":null,"html_url":"https://github.com/quininer/ktls","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/quininer/ktls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quininer%2Fktls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quininer%2Fktls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quininer%2Fktls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quininer%2Fktls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quininer","download_url":"https://codeload.github.com/quininer/ktls/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quininer%2Fktls/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265866173,"owners_count":23840937,"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","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","rustls","tls","tokio"],"created_at":"2024-10-10T12:22:12.898Z","updated_at":"2025-07-19T01:03:49.691Z","avatar_url":"https://github.com/quininer.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linux KTLS for Rust\n\nKTLS is a new feature introduced in Linux 4.13 that performs TLS encryption in the kernel.\nThis will allow us to implement performance optimizations that were previously impossible.\n\n### Usage\n\nFirst we need to make sure that kernel module is enabled\n\n```\n\u003e sudo modprobe tls\n\u003e modinfo tls\n...\n```\n\nThen we need to use rustls to handshake\n\n```rust\nuse tokio_rustls::TlsConnector;\nuse tokio_rusktls::KtlsStream;\n\n// ...\n\nlet connector = TlsConnector::from(config);\n\nTcpStream::connect(\u0026addr)\n\t.and_then(|sock| connector.connect(dnsname, sock))\n\t.and_then(|stream| {\n\t\tlet (io, session) = stream.into_inner();\n\t\tKtlsStream::new(io, \u0026session)\n\t\t\t.map_err(|err| err.error)\n\t})\n\n// ...\n```\n\nPlease note that `ktls` currently only supports TLS 1.2 and AES-GCM 128.\nOther algorithms will return `Error`.\n\n### License\n\nThis project is licensed under [the MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquininer%2Fktls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquininer%2Fktls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquininer%2Fktls/lists"}