这个内核模块注册一个新的密钥类型。
用户空间程序不允许创建新的密钥类型。
User-space programs are not allowed to create new key types.
还可以将一组操作与一个密钥类型相关联。
You can also associate a set of operations to a key type. A key_type can define the following operations.
密钥类型可以是user或keyring。
提供了无法识别的会话密钥类型。
清单5给出在内核模块中声明的一个新的密钥类型。
Listing 5 shows a new key type being declared in the kernel module.
要添加新的密钥类型,必须由一个内核服务注册它。
To add a new key type, it must be registered by a kernel service.
该密钥类型不受支持。
创建了新的密钥类型之后,我们来试用一下这个内核模块。
Having created a new key type, we next want to try using the kernel module.
对象指定密钥类型。
有两种预定义的密钥类型:keyring和user。
在演示中使用了rsa密钥类型,但是其他密钥类型也有效。
The rsa key type is used in the demonstration, but other key types are also valid.
私钥模块遇到要求生成不受支持的密钥类型的请求。
Private key module encountered a request to generate an unsupported key type.
对于在本地找到的每个私有密钥类型,尝试执行密钥身份验证。
Key authentication is tried for each private key type found locally.
私钥模块遇到要求生成不受支持的密钥类型的请求。
The private key module encountered a request to generate an unsupported key type.
register_key_type用来定义新的密钥类型。
现在,向下滚动并设置加密密钥类型,长度,关键本身。
Now scroll down and set the encryption key type, the length, and the key itself.
其他任何密钥类型必须已经通过内核服务向内核注册,然后才能使用。
Any other key type must be already registered with the kernel via a kernel service.
这将为每个密钥类型创建两个文件:公钥(在以.pub结尾的文件中)和私钥。
Two files are created for each key type: the public key (in the file ending.pub) and the private key.
类型(Type):Linux密钥保留服务定义两个标准密钥类型:user和keyring。
Type: The Linux key retention service defines two standard key types: user and keyring.
此选项不可以和一些密钥类型一起使用,例如智能卡密钥和在软件密钥存储提供程序(KSP)中存储的密钥。
This option may not work with some key types, such as smart card keys and keys that are stored in the software key storage provider (KSP).
然后,模块在它的init函数中调用 register_key_type()来注册这个新密钥类型(名为 mykey)。
The module then calls register_key_type(), in its init function, to register the new key, which is named mykey.
这一部分讨论不同类型的密钥,以及如何选择密钥的算法。
This section describes different types of keys, and how to select an algorithm for your key.
权限掩码给四个可能的密钥访问者类型各分配8位:所有者、用户、组和其他。
The permissions mask allocates 8 bits each to the four possible types of key accessor: possessor, user, group, and other.
将密钥存储格式设置为适当的存储类型。
将密钥存储格式设置为适当的存储类型。
接受缺省的CMS密钥数据库类型。
加密算法和密钥长度的组合决定加密类型的强度。
The combination of encryption algorithm and the key length governs the strength of the encryption type.
不同加密类型之间的差异在于算法的强度和使用的密钥长度。
The difference between the encryption types is the strength of algorithm and length of the key being used.
通过组合使用不同的密钥长度和散列算法,IBMNAS提供表1所示的加密类型。
With combination of different key lengths and different hashing algorithms, IBM NAS provides encryption types as shown in Table 1.
应用推荐