Create Linux Kernel Crypto API

yuhh

New Member
Joined
Sep 23, 2024
Messages
3
Reaction score
0
Credits
27
Hello everyone, I am a senior student. I am doing a graduation project related to encrypting USB memory partitions using LUKS but not using the existing block encryption algorithm but using a new block encryption algorithm in Vietnam. I have completed the code but I don't know how to create Linux Kernel Crypto API. Can anyone show me how to create it? Thanks.
 


Is that how to build a crypto kernel?
You'll need someone who is familiar with Linux Crypto API to be able to help you with specifics.
And your question is also not clear, it's not clear what your exact task is?

If you're familiar with basic concepts of cryptography irrespective of any particular implementation then reinventing such implementation with some other shouldn't be a big problem.
But I assume your teacher didn't task you with something that they didn't teach you beforehand.
 
But I assume your teacher didn't task you with something that they didn't teach you beforehand.
Yeah, that's right. I'm looking to build a linux crypto API to encrypt LUKS for Raspberry Pi embedded computers, specifically Debian operating system. I have finished building my encryption algorithm and I want to make it on the kernel. I have completed the kernel module and built it with dkms and it works. But I don't see my module appear in proc/crypto so I'm unsure if I'm doing it right or not.
 
I have completed the kernel module and built it with dkms and it works. But I don't see my module appear in proc/crypto so I'm unsure if I'm doing it right or not.
Here are some hints:

First use lsmod to list modules and see if your module is listed, you can pipe it grep e.g. lsmod | grep modulename to narrow down the results.

If your module depends on other other modules (likely it does depends on Linux Crypto API) then consider using depmod command to build modules.dep file.
for more info run man depmod command.

Next you might also want to run insmod (if no deps exist) or modprobe (if deps exist) to load module into kernel for usage.

You might also want to use update-initramfs (see man update-initramfs) to load your module on boot.

Which commands exactly you need and in which order I can't tell so make sure you read man of each to figure out.
 

Members online


Top