Lines Matching refs:src
57 void ecryptfs_to_hex(char *dst, char *src, size_t src_size) in ecryptfs_to_hex() argument
62 sprintf(&dst[x * 2], "%.2x", (unsigned char)src[x]); in ecryptfs_to_hex()
72 void ecryptfs_from_hex(char *dst, char *src, int dst_size) in ecryptfs_from_hex() argument
78 tmp[0] = src[x * 2]; in ecryptfs_from_hex()
79 tmp[1] = src[x * 2 + 1]; in ecryptfs_from_hex()
96 char *src, int len) in ecryptfs_calculate_md5() argument
106 sg_init_one(&sg, (u8 *)src, len); in ecryptfs_calculate_md5()
183 char src[ECRYPTFS_MAX_IV_BYTES + 16]; in ecryptfs_derive_iv() local
193 memcpy(src, crypt_stat->root_iv, crypt_stat->iv_bytes); in ecryptfs_derive_iv()
194 memset((src + crypt_stat->iv_bytes), 0, 16); in ecryptfs_derive_iv()
195 snprintf((src + crypt_stat->iv_bytes), 16, "%lld", offset); in ecryptfs_derive_iv()
198 ecryptfs_dump_hex(src, (crypt_stat->iv_bytes + 16)); in ecryptfs_derive_iv()
200 rc = ecryptfs_calculate_md5(dst, crypt_stat, src, in ecryptfs_derive_iv()
1976 unsigned char *src, size_t src_size) in ecryptfs_encode_for_filename() argument
1989 memcpy(last_block, (&src[src_size - 3]), 3); in ecryptfs_encode_for_filename()
1995 last_block[0] = src[src_size - 1]; in ecryptfs_encode_for_filename()
1999 last_block[0] = src[src_size - 2]; in ecryptfs_encode_for_filename()
2000 last_block[1] = src[src_size - 1]; in ecryptfs_encode_for_filename()
2013 src_block = &src[block_num * 3]; in ecryptfs_encode_for_filename()
2041 const unsigned char *src, size_t src_size) in ecryptfs_decode_from_filename() argument
2059 filename_rev_map[(int)src[src_byte_offset]]; in ecryptfs_decode_from_filename()