函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\encrypted-keys\ecryptfs_format.c Create Date:2022-07-27 20:08:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ryptfs_fill_auth_tok - fill the ecryptfs_auth_tok structure* Fill the ecryptfs_auth_tok structure with required ecryptfs data.* The source code is inspired to the original function generate_payload()* shipped with the software 'ecryptfs-utils' version 83.

函数原型:int ecryptfs_fill_auth_tok(struct ecryptfs_auth_tok *auth_tok, const char *key_desc)

返回类型:int

参数:

类型参数名称
struct ecryptfs_auth_tok *auth_tok
const char *key_desc
53  ryptfs_get_versions()* Source code taken from the software 'ecryptfs-utils' version 83.
54  8-bit major and 8-bit minor 等于major左移8位按位与0xFF00按位或minor按位与0x00FF
56  token_type等于ECRYPTFS_PASSWORD
57  strncpy((char * )signature, key_desc, ECRYPTFS_PASSWORD_SIG_SIZE)
59  session_key_encryption_key_bytes等于ECRYPTFS_MAX_KEY_BYTES
67  flags或等于ECRYPTFS_SESSION_KEY_ENCRYPTION_KEY_SET
70  encrypted_key[0]等于0
71  encrypted_key_size等于0
73  hash_algo等于PGP_DIGEST_ALGO_SHA512
74  flags与等于ECRYPTFS_PERSISTENT_PASSWORD的反
75  返回:0