Lines Matching refs:dst

34  * @dst: Buffer to take the bytes from src hex; must be at least of
37 * @dst_size: size of dst buffer, or number of hex characters pairs to convert
39 void ecryptfs_from_hex(char *dst, char *src, int dst_size)
47 dst[x] = (unsigned char)simple_strtol(tmp, NULL, 16);
53 * @dst: Pointer to 16 bytes of allocated memory
61 static int ecryptfs_calculate_md5(char *dst,
65 int rc = crypto_shash_tfm_digest(crypt_stat->hash_tfm, src, len, dst);
114 char dst[MD5_DIGEST_SIZE];
132 rc = ecryptfs_calculate_md5(dst, crypt_stat, src,
139 memcpy(iv, dst, crypt_stat->iv_bytes);
637 char dst[MD5_DIGEST_SIZE];
647 rc = ecryptfs_calculate_md5(dst, crypt_stat, crypt_stat->key,
654 memcpy(crypt_stat->root_iv, dst, crypt_stat->iv_bytes);
1752 * @dst: Destination location for encoded filename
1757 static void ecryptfs_encode_for_filename(unsigned char *dst, size_t *dst_size,
1786 if (!dst)
1802 dst[dst_offset++] = portable_filename_chars[dst_block[0]];
1803 dst[dst_offset++] = portable_filename_chars[dst_block[1]];
1804 dst[dst_offset++] = portable_filename_chars[dst_block[2]];
1805 dst[dst_offset++] = portable_filename_chars[dst_block[3]];
1818 * space that @dst will need to point to in a
1825 * @dst: If NULL, this function only sets @dst_size and returns. If
1827 * into the memory that @dst points to.
1833 ecryptfs_decode_from_filename(unsigned char *dst, size_t *dst_size,
1840 if (!dst) {
1850 dst[dst_byte_offset] = (src_byte << 2);
1854 dst[dst_byte_offset++] |= (src_byte >> 4);
1855 dst[dst_byte_offset] = ((src_byte & 0xF)
1860 dst[dst_byte_offset++] |= (src_byte >> 2);
1861 dst[dst_byte_offset] = (src_byte << 6);
1865 dst[dst_byte_offset++] |= (src_byte);