函数逻辑报告 |
Source Code:fs\crypto\keyring.c |
Create Date:2022-07-29 10:57:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Allocate a new fscrypt_master_key which contains the given secret, set it as* the payload of a new 'struct key' of type fscrypt, and link the 'struct key'* into the given keyring. Synchronized by fscrypt_add_key_mutex.
函数原型:static int add_new_master_key(struct fscrypt_master_key_secret *secret, const struct fscrypt_key_specifier *mk_spec, struct key *keyring)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct fscrypt_master_key_secret * | secret | |
const struct fscrypt_key_specifier * | mk_spec | |
struct key * | keyring |
336 | For v1 policy keys: an arbitrary key descriptor which was assigned by* userspace (->descriptor).* For v2 policy keys: a cryptographic hash of this key (->identifier).等于mk_spec |
339 | init_rwsem( & mk_secret_sem) |
342 | 初始化链表头 |
347 | 如果err则转到:out_free_mk |
350 | 如果err则转到:out_free_mk |
364 | 如果是错误则 |
366 | 转到:out_free_mk |
370 | 如果err则转到:out_free_mk |
373 | 返回:0 |
375 | out_free_mk : |
376 | free_master_key(mk) |
377 | 返回:err |
名称 | 描述 |
---|---|
add_master_key |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |