函数逻辑报告

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

函数名称:ase64_encode() -* Encodes the input string using characters from the set [A-Za-z0-9+,].* The encoded string is roughly 4/3 times the size of the input string.* Return: length of the encoded string

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

返回类型:int

参数:

类型参数名称
const u8 *src
intlen
char *dst
141  bits等于0, ac等于0
142  cp等于dst
144 i小于len循环
145  ac加等于src[i]左移bits
146  bits加等于8
147  循环
148  cp自加等于lookup_table[ac & 0x3f]
149  ac右移等于6位
150  bits减等于6
151 bits大于等于6循环
153  如果bitscp自加等于lookup_table[ac & 0x3f]
155  返回:cpdst
调用者
名称描述
fscrypt_fname_disk_to_usrscrypt_fname_disk_to_usr() - converts a filename from disk space to user* space* The caller must have allocated sufficient memory for the @oname string.* If the key is available, we'll decrypt the disk name; otherwise, we'll encode* it for presentation