{"id":16900345,"url":"https://github.com/mdlayher/alg","last_synced_at":"2025-07-05T18:33:07.295Z","repository":{"id":52620934,"uuid":"82108681","full_name":"mdlayher/alg","owner":"mdlayher","description":"Package alg provides access to Linux AF_ALG sockets for communication with the Linux kernel crypto API.  MIT Licensed.","archived":false,"fork":false,"pushed_at":"2021-05-11T08:17:16.000Z","size":10,"stargazers_count":16,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T14:33:28.624Z","etag":null,"topics":["af-alg","cryptography","golang","hashing","linux"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/mdlayher.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":"2017-02-15T21:28:19.000Z","updated_at":"2025-02-23T16:53:11.000Z","dependencies_parsed_at":"2022-09-01T12:40:15.545Z","dependency_job_id":null,"html_url":"https://github.com/mdlayher/alg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mdlayher/alg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdlayher%2Falg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdlayher%2Falg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdlayher%2Falg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdlayher%2Falg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdlayher","download_url":"https://codeload.github.com/mdlayher/alg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdlayher%2Falg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263784855,"owners_count":23510986,"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":["af-alg","cryptography","golang","hashing","linux"],"created_at":"2024-10-13T17:53:13.360Z","updated_at":"2025-07-05T18:33:07.269Z","avatar_url":"https://github.com/mdlayher.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"alg [![Build Status](https://travis-ci.org/mdlayher/alg.svg?branch=master)](https://travis-ci.org/mdlayher/alg) [![GoDoc](https://godoc.org/github.com/mdlayher/alg?status.svg)](https://godoc.org/github.com/mdlayher/alg) [![Go Report Card](https://goreportcard.com/badge/github.com/mdlayher/alg)](https://goreportcard.com/report/github.com/mdlayher/alg)\n===\n\nPackage `alg` provides access to Linux `AF_ALG` sockets for communication\nwith the Linux kernel crypto API.  MIT Licensed.\n\nThis package should be considered experimental, and should almost certainly\nnot be used in place of Go's built-in cryptographic cipher and hash packages.\n\nThe benefit of `AF_ALG` sockets is that they enable access to the Linux kernel's\ncryptography API, and may be able to use hardware acceleration to perform\ncertain transformations.  On systems with dedicated cryptography processing\nhardware (or systems without assembly implementations of certain\ntransformations), using this package may result in a performance boost.\n\nIf this package does end up being useful for you, please do reach out!\nI'd love to hear what you're doing with it.\n\nBenchmarking\n------------\n\nTo benchmark `AF_ALG` transformations vs. the Go standard library equivalents\non a given system, run the following commands:\n\n```\n$ go test -c\n$ ./alg.test -bench.std -test.bench . | tee std.txt\n$ ./alg.test -bench.alg -test.bench . | tee alg.txt\n$ benchcmp std.txt alg.txt\n```\n\nThe `benchcmp` utility can be installed using:\n\n```\n$ go get golang.org/x/tools/cmd/benchcmp\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdlayher%2Falg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdlayher%2Falg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdlayher%2Falg/lists"}