{"id":22856450,"url":"https://github.com/quadule/digest-cmac","last_synced_at":"2025-08-22T13:19:11.761Z","repository":{"id":549951,"uuid":"180271","full_name":"quadule/digest-cmac","owner":"quadule","description":"A Ruby implementation of the CMAC digest algorithm, based on RFC 4493","archived":false,"fork":false,"pushed_at":"2011-10-11T21:32:22.000Z","size":95,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T17:11:46.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quadule.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-04-19T20:37:39.000Z","updated_at":"2020-10-22T08:07:53.000Z","dependencies_parsed_at":"2022-07-07T23:21:21.302Z","dependency_job_id":null,"html_url":"https://github.com/quadule/digest-cmac","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quadule%2Fdigest-cmac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quadule%2Fdigest-cmac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quadule%2Fdigest-cmac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quadule%2Fdigest-cmac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quadule","download_url":"https://codeload.github.com/quadule/digest-cmac/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251729688,"owners_count":21634280,"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":[],"created_at":"2024-12-13T08:08:38.499Z","updated_at":"2025-04-30T15:11:48.478Z","avatar_url":"https://github.com/quadule.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"A Ruby implementation of the CMAC / OMAC1 digest algorithm, based on RFC 4493:\nhttp://tools.ietf.org/html/rfc4493\n\nHere's an example using a test vector from the RFC:\n\n# key is 128 bits\nkey = [\"2b7e151628aed2a6abf7158809cf4f3c\"].pack('H*')\n\ncmac = Digest::CMAC.new(OpenSSL::Cipher::Cipher.new('aes-128-cbc'), key)\ncmac.update([\"6bc1bee22e409f96e93d7e117393172a\"].pack('H*'))\ndigest = cmac.digest\n\n# unpack it into hex\ndigest.unpack('H*')[0] # =\u003e '070a16b46b4d4144f79bdd9dd04a287c'","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquadule%2Fdigest-cmac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquadule%2Fdigest-cmac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquadule%2Fdigest-cmac/lists"}