本文介绍了如何在Linux内核2.6中使用CryptoAPI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一些时间,但是在足够的文档/示例中找不到如何使用linux附带的CryptoAPI来创建syscalls/在内核领域的示例.

I have been looking for some time but have not found anywhere near sufficient documentation / examples on how to use the CryptoAPI that comes with linux in the creation of syscalls / in kernel land.

如果有人知道一个好的资源,请告诉我,我想知道如何仅在内核空间中做SHA1/MD5和Blowfish/AES.

If anyone knows of a good source please let me know, I would like to know how to do SHA1 / MD5 and Blowfish / AES within the kernel space only.

推荐答案

内核中有几个使用加密模块的地方:eCryptfs文件系统(linux/fs/ecryptfs/)和802.11无线协议栈( linux/drivers/staging/rtl8187se/ieee80211/).两者都使用AES,但是您可以将在其中找到的内容外推到MD5.

There are a couple of places in the kernel which use the crypto module: the eCryptfs file system (linux/fs/ecryptfs/) and the 802.11 wireless stack (linux/drivers/staging/rtl8187se/ieee80211/). Both of these use AES, but you may be able to extrapolate what you find there to MD5.

这篇关于如何在Linux内核2.6中使用CryptoAPI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 12:00