crypto-algorithms.c

Basic implementations of standard cryptography algorithms, like AES and SHA-1
git clone git://git.finwo.net/lib/crypto-algorithms.c
Log | Files | Refs | README

commit 7731526e21f3a22a9c78f205e360a054a210595d
parent 87712589d0ed8508d5c32f496ba9075f1f3c93d2
Author: finwo <finwo@pm.me>
Date:   Wed, 23 Sep 2026 23:54:42 +0200

Add dep plumbing

Diffstat:
A.dep.export | 10++++++++++
Aexport.mk | 12++++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/.dep.export b/.dep.export @@ -0,0 +1,10 @@ +include/finwo/aes.h aes.h +include/finwo/arcfour.h arcfour.h +include/finwo/base64.h base64.h +include/finwo/blowfish.h blowfish.h +include/finwo/des.h des.h +include/finwo/md2.h md2.h +include/finwo/md5.h md5.h +include/finwo/rot-13.h rot-13.h +include/finwo/sha1.h sha1.h +include/finwo/sha256.h sha256.h diff --git a/export.mk b/export.mk @@ -0,0 +1,12 @@ +# Build flags if you don't want all unused sections in your binary: +# -ffunction-sections -fdata-sections -Wl,--gc-sections +SRC+={{module.dirname}}/aes.c +SRC+={{module.dirname}}/arcfour.c +SRC+={{module.dirname}}/base64.c +SRC+={{module.dirname}}/blowfish.c +SRC+={{module.dirname}}/des.c +SRC+={{module.dirname}}/md2.c +SRC+={{module.dirname}}/md5.c +SRC+={{module.dirname}}/rot-13.c +SRC+={{module.dirname}}/sha1.c +SRC+={{module.dirname}}/sha256.c