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);
610 char dst[MD5_DIGEST_SIZE];
620 rc = ecryptfs_calculate_md5(dst, crypt_stat, crypt_stat->key,
627 memcpy(crypt_stat->root_iv, dst, crypt_stat->iv_bytes);
1724 * @dst: Destination location for encoded filename
1729 static void ecryptfs_encode_for_filename(unsigned char *dst, size_t *dst_size,
1758 if (!dst)
1774 dst[dst_offset++] = portable_filename_chars[dst_block[0]];
1775 dst[dst_offset++] = portable_filename_chars[dst_block[1]];
1776 dst[dst_offset++] = portable_filename_chars[dst_block[2]];
1777 dst[dst_offset++] = portable_filename_chars[dst_block[3]];
1790 * space that @dst will need to point to in a
1797 * @dst: If NULL, this function only sets @dst_size and returns. If
1799 * into the memory that @dst points to.
1805 ecryptfs_decode_from_filename(unsigned char *dst, size_t *dst_size,
1812 if (!dst) {
1822 dst[dst_byte_offset] = (src_byte << 2);
1826 dst[dst_byte_offset++] |= (src_byte >> 4);
1827 dst[dst_byte_offset] = ((src_byte & 0xF)
1832 dst[dst_byte_offset++] |= (src_byte >> 2);
1833 dst[dst_byte_offset] = (src_byte << 6);
1837 dst[dst_byte_offset++] |= (src_byte);