{"id":13507671,"url":"https://github.com/kleinernik/elixir-aes-cmac","last_synced_at":"2026-02-21T17:33:48.765Z","repository":{"id":57478738,"uuid":"53808418","full_name":"kleinernik/elixir-aes-cmac","owner":"kleinernik","description":"AES CMAC (rfc 4493) in Elixir","archived":false,"fork":false,"pushed_at":"2020-01-08T12:29:59.000Z","size":91,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-21T17:48:10.073Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/kleinernik.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}},"created_at":"2016-03-13T21:22:35.000Z","updated_at":"2023-09-01T12:15:22.000Z","dependencies_parsed_at":"2022-09-17T04:21:36.706Z","dependency_job_id":null,"html_url":"https://github.com/kleinernik/elixir-aes-cmac","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kleinernik/elixir-aes-cmac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleinernik%2Felixir-aes-cmac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleinernik%2Felixir-aes-cmac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleinernik%2Felixir-aes-cmac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleinernik%2Felixir-aes-cmac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kleinernik","download_url":"https://codeload.github.com/kleinernik/elixir-aes-cmac/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleinernik%2Felixir-aes-cmac/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29688267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"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":[],"created_at":"2024-08-01T02:00:37.633Z","updated_at":"2026-02-21T17:33:43.758Z","avatar_url":"https://github.com/kleinernik.png","language":"Elixir","funding_links":[],"categories":["Cryptography"],"sub_categories":[],"readme":"# Hint for users of OTP \u003e= 20\n\nSince OTP 20 the AES-CMAC is in `:crypto`\n\nYou can simply use for example:\n\n```elixir\n:crypto.cmac :\"aes_cbc128\", \u003c\u003c0x2b7e1516_28aed2a6_abf71588_09cf4f3c::128\u003e\u003e,\u003c\u003c0x6bc1bee2_2e409f96_e93d7e11_7393172a_ae2d8a57_1e03ac9c_9eb76fac_45af8e51_30c81c46_a35ce411::320\u003e\u003e\n```\nSee in [Erlang sources](https://github.com/erlang/otp/blob/83e20c62057ebc1d8064bf57b01be560cd244e1d/lib/crypto/src/crypto.erl#L159)\n\n\n# Aescmac\n\nImplementation of [rfc4493](https://tools.ietf.org/html/rfc4493) in elixir using :crypto from erlang for aes.\n\nAll [tests from rfc4493](https://tools.ietf.org/html/rfc4493#page-11) passing.\n\nAescmac.aes_cmac takes two binaries, the key and the message, where the key has to be 128bit\n\nUsage example:\n\n```elixir\n#  Aescmac.aes_cmac(key, message)\n\u003c\u003c0x070a16b4_6b4d4144_f79bdd9d_d04a287c::128\u003e\u003e = Aescmac.aes_cmac(\u003c\u003c0x2b7e1516_28aed2a6_abf71588_09cf4f3c::128\u003e\u003e,\u003c\u003c0x6bc1bee2_2e409f96_e93d7e11_7393172a::128\u003e\u003e)\n```\n\n## Documentation\n\nDocs can be found [at hexdocs.pm](https://hexdocs.pm/aescmac/).\n\n## Installation\n\n[Available in Hex](https://hex.pm/packages/aescmac), the package can be installed with:\n\n  1. Add aescmac to your list of dependencies in `mix.exs`:\n\n```elixir\n    def deps do\n      [{:aescmac, \"~\u003e 0.0.1\"}]\n    end\n```\n\n  2. Ensure aescmac is started before your application:\n\n```elixir\n    def application do\n      [applications: [:aescmac]]\n    end\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkleinernik%2Felixir-aes-cmac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkleinernik%2Felixir-aes-cmac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkleinernik%2Felixir-aes-cmac/lists"}