Linux的加密API和Linux / crypto.h - 文档 [英] Linux Crypto API and linux/crypto.h - Documentation

查看:1069
本文介绍了Linux的加密API和Linux / crypto.h - 文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写一个C程序,这使得使用Linux的加密API的数字签名。不幸的是我无法找到有关linux的API良好的文档和(谷歌搜索没有帮助,手册页为这些功能是不存在的),在linux / crypto.h定义的函数。所以,现在我不知道是否有人在这里可以帮我一个很好的链接,一本书也将是AP preciated。

I want to write a C program which makes use of the linux crypto-api for digital signatures. Unfortunately I cannot find good documentation about the linux api and the functions defined in linux/crypto.h (googling doesn't help, man pages for those functions don't exist). So now I wonder if anyone here can help me with a good link, a book would also be appreciated.

第二短的问题:所有这些加密的东西在当时的TFM一词出现,如在结构crypto_tfm或功能,但我不能找出TFM实际上意味着

2nd short question: All the time within this crypto stuff the term "tfm" comes up, as in a struct crypto_tfm or in functions, but I can't find out what tfm actually means.

推荐答案

在Linux加密API是一个的内部的内核中使用的东西,如IPsec和对于dm-crypt API。它不是由用户模式应用程序直接使用。如果你想在一个内核驱动程序使用它,阅读和看看这些文件:<一href=\"http://lxr.linux.no/linux+v2.6.37/Documentation/crypto\">http://lxr.linux.no/linux+v2.6.37/Documentation/crypto

The Linux crypto-API is an internal kernel API used for things such as IPsec and dm-crypt. It's not directly usable by user-mode applications. If you want to use it in a kernel driver, read the headers, and look at these files: http://lxr.linux.no/linux+v2.6.37/Documentation/crypto

在一般情况下,在下的任何内容的linux / 目录不应由普通的应用程序直接使用。下 SYS / 包括地方你是可以用在任何有再出口,如果它是一个函数,它会配有一个手册页为好。内核功能的设计与你会读到内核源码​​code中的假设(因为你在内核上工作的,对吧?),并因此API的细节都在头文件主要是和源文件本身。

In general, anything under the linux/ directory should not be used by ordinary applications directly. Anything in there you're allowed to use is re-exported under a sys/ include somewhere, and if it's a function it'll come with a manual page as well. Kernel functions are designed with the assumption that you will read the kernel source code (since you're working on the kernel, right?) and so the API details are documented primarily in the header and source files themselves.

最后,TFM代表转型。

Finally, "tfm" stands for "transformation".

这篇关于Linux的加密API和Linux / crypto.h - 文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆