{"id":18581650,"url":"https://github.com/bitcoin-core/ctaes","last_synced_at":"2025-04-04T21:07:50.181Z","repository":{"id":51124850,"uuid":"54783612","full_name":"bitcoin-core/ctaes","owner":"bitcoin-core","description":"Simple constant-time AES implementation","archived":false,"fork":false,"pushed_at":"2025-01-21T13:50:20.000Z","size":44,"stargazers_count":117,"open_issues_count":3,"forks_count":45,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-28T20:07:22.544Z","etag":null,"topics":["aes","cryptography","encryption-library"],"latest_commit_sha":null,"homepage":"","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/bitcoin-core.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-26T14:48:55.000Z","updated_at":"2025-03-12T11:15:44.000Z","dependencies_parsed_at":"2022-09-12T15:54:11.409Z","dependency_job_id":null,"html_url":"https://github.com/bitcoin-core/ctaes","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/bitcoin-core%2Fctaes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoin-core%2Fctaes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoin-core%2Fctaes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoin-core%2Fctaes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitcoin-core","download_url":"https://codeload.github.com/bitcoin-core/ctaes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249525,"owners_count":20908212,"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":["aes","cryptography","encryption-library"],"created_at":"2024-11-07T00:06:31.064Z","updated_at":"2025-04-04T21:07:50.167Z","avatar_url":"https://github.com/bitcoin-core.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"ctaes\n=====\n\nSimple C module for constant-time AES encryption and decryption.\n\nFeatures:\n* Simple, pure C code without any dependencies.\n* No tables or data-dependent branches whatsoever, but using bit sliced approach from https://eprint.iacr.org/2009/129.pdf.\n* Very small object code: slightly over 4k of executable code when compiled with -Os.\n* Slower than implementations based on precomputed tables or specialized instructions, but can do ~15 MB/s on modern CPUs.\n\nPerformance\n-----------\n\nCompiled with GCC 5.3.1 with -O3, on an Intel(R) Core(TM) i7-4800MQ CPU, numbers in CPU cycles:\n\n| Algorithm | Key schedule | Encryption per byte | Decryption per byte |\n| --------- | ------------:| -------------------:| -------------------:|\n| AES-128   |         2.8k |                 154 |                 161 |\n| AES-192   |         3.1k |                 169 |                 181 |\n| AES-256   |         4.0k |                 191 |                 203 |\n\nBuild steps\n-----------\n\nObject code:\n\n    $ gcc -O3 ctaes.c -c -o ctaes.o\n\nTests:\n\n    $ gcc -O3 ctaes.c test.c -o test\n\nBenchmark:\n\n    $ gcc -O3 ctaes.c bench.c -o bench\n\nReview\n------\n\nResults of a formal review of the code can be found in http://bitcoin.sipa.be/ctaes/review.zip\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcoin-core%2Fctaes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitcoin-core%2Fctaes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcoin-core%2Fctaes/lists"}