{"id":21107496,"url":"https://github.com/cjhdev/moda","last_synced_at":"2025-03-14T09:22:26.984Z","repository":{"id":25180508,"uuid":"28603736","full_name":"cjhdev/moda","owner":"cjhdev","description":"Modular AES","archived":false,"fork":false,"pushed_at":"2017-01-12T12:49:54.000Z","size":695,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T03:42:37.538Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://cjhdev.github.io/moda/","language":"C","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/cjhdev.png","metadata":{"files":{"readme":"readme.md","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":"2014-12-29T19:34:34.000Z","updated_at":"2017-01-12T12:26:50.000Z","dependencies_parsed_at":"2022-08-23T18:00:46.988Z","dependency_job_id":null,"html_url":"https://github.com/cjhdev/moda","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/cjhdev%2Fmoda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fmoda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fmoda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fmoda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjhdev","download_url":"https://codeload.github.com/cjhdev/moda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243551453,"owners_count":20309346,"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-11-20T00:40:16.975Z","updated_at":"2025-03-14T09:22:26.959Z","avatar_url":"https://github.com/cjhdev.png","language":"C","readme":"# MODA - Modular AES\n\n[![Build Status](https://travis-ci.org/cjhdev/moda.svg?branch=master)](https://travis-ci.org/cjhdev/moda)\n\nAn easy to integrate AES implementation for resource constrained targets.\n\nHighlights:\n\n- Source linted to MISRA 2012\n- Embedded interface documentation\n- Tests\n- Compile time options for porting\n\n## Modules\n\n- AES\n    - byte oriented (512B of tables)\n    - support for 128, 196 and 256 bit keys\n- AES GCM\n    - depends on AES\n    - table-less\n    - vector operations optimised for target word size\n    - single pass mode only\n- AES Key Wrap\n    - depends on AES\n    - RFC 3394:2002\n- AES CMAC\n    - depends on AES\n    - vector operations optimised for target word size\n    - NIST SP 800-38B\n    - single pass mode only\n\n## Integrating With Your Project\n\nExample makefile snippet:\n\n~~~ mf\nINCLUDES += $(DIR_MODA)/include\n\nVPATH += $(DIR_MODA)/src\n\nSRC += $(wildcard $(DIR_MODA)/src/*.c)\n\nOBJECTS += $(SRC:.c=.o)\n~~~\n\nAdd `#include \"moda.h\"` to source files that use the MODA API.\n\n## Build Time Options\n\n~~~\n// define to remove assert.h (as per usual)\n-DNDEBUG\n\n// define to set target endian as big endian\n// default: undefined (not relevant if MODA_WORD_SIZE == 1)\n-DMODA_BIG_ENDIAN\n\n// define to set target word size {1, 2, 4 or 8}\n// default: 1\n-DMODA_WORD_SIZE=4\n\n// define to apply compiler specific restrict attribute\n// default: __restrict__\n-DMODA_RESTRICT=__restrict__\n\n// include settings for putting constant data into program memory for avr gcc\n// default: undefined\n-DMODA_AVR_GCC_PROGMEM\n\n// define to apply target specific attribute after sbox, rsbox and rcon constants\n// default: undefined\n-DMODA_CONST_POST=PROGMEM\n\n// define to apply target specific attribute before sbox, rsbox and rcon constants\n// default: undefined\n-D'MODA_CONST_PRE=__flash'\n\n// define an alternate instruction to use to access rsbox constant\n// default: rsbox[C]\n-D'RSBOX(C)=pgm_read_byte(\u0026rsbox[C])'\n\n// define an alternate instruction to use to access sbox constant\n// default: sbox[C]\n-D'SBOX(C)=pgm_read_byte(\u0026sbox[C])'\n\n// define an alternate instruction to use to access rcon constant\n// default: rcon[C]\n-D'RCON(C)=pgm_read_byte(\u0026rcon[C])'\n\n~~~\n\n## Recommended Further Reading\n\n[https://en.wikipedia.org/wiki/Side-channel_attack](https://en.wikipedia.org/wiki/Side-channel_attack)\n\n## License\n\nModa has an MIT license.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjhdev%2Fmoda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjhdev%2Fmoda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjhdev%2Fmoda/lists"}