Lines Matching refs:src
34 * @dst: Buffer to take the bytes from src hex; must be at least of
36 * @src: Buffer to be converted from a hex string representation to raw value
39 void ecryptfs_from_hex(char *dst, char *src, int dst_size)
45 tmp[0] = src[x * 2];
46 tmp[1] = src[x * 2 + 1];
52 * ecryptfs_calculate_md5 - calculates the md5 of @src
55 * @src: Data to be md5'd
56 * @len: Length of @src
59 * generate the MD5 sum of the contents of src.
63 char *src, int len)
65 int rc = crypto_shash_tfm_digest(crypt_stat->hash_tfm, src, len, dst);
115 char src[ECRYPTFS_MAX_IV_BYTES + 16];
125 memcpy(src, crypt_stat->root_iv, crypt_stat->iv_bytes);
126 memset((src + crypt_stat->iv_bytes), 0, 16);
127 snprintf((src + crypt_stat->iv_bytes), 16, "%lld", offset);
130 ecryptfs_dump_hex(src, (crypt_stat->iv_bytes + 16));
132 rc = ecryptfs_calculate_md5(dst, crypt_stat, src,
1754 * @src: Source location for the filename to encode
1758 unsigned char *src, size_t src_size)
1771 memcpy(last_block, (&src[src_size - 3]), 3);
1777 last_block[0] = src[src_size - 1];
1781 last_block[0] = src[src_size - 2];
1782 last_block[1] = src[src_size - 1];
1795 src_block = &src[block_num * 3];
1826 * non-NULL, this function decodes the encoded octets in @src
1829 * @src: The encoded set of octets to decode.
1834 const unsigned char *src, size_t src_size)
1846 filename_rev_map[(int)src[src_byte_offset]];