函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\fname.c Create Date:2022-07-29 10:56:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:base64_decode

函数原型:static int base64_decode(const char *src, int len, u8 *dst)

返回类型:int

参数:

类型参数名称
const char *src
intlen
u8 *dst
160  bits等于0, ac等于0
162  cp等于dst
164 i小于len循环
165  p等于strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for
166  如果p恒等于NULLsrc[i]恒等于0则返回:负2
168  ac加等于plookup_table左移bits
169  bits加等于6
170  如果bits大于等于8则
171  cp自加等于ac按位与0xff
172  ac右移等于8位
173  bits减等于8
176  如果ac则返回:负1
178  返回:cpdst
调用者
名称描述
fscrypt_setup_filenamescrypt_setup_filename() - prepare to search a possibly encrypted directory*@dir: the directory that will be searched*@iname: the user-provided filename being searched for*@lookup: 1 if we're allowed to proceed without the key because it's* ->lookup() or