Lines Matching refs:dst
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
80 dst[x] = (unsigned char)simple_strtol(tmp, NULL, 16); in ecryptfs_from_hex()
94 static int ecryptfs_calculate_md5(char *dst, in ecryptfs_calculate_md5() argument
133 rc = crypto_hash_final(&desc, dst); in ecryptfs_calculate_md5()
182 char dst[MD5_DIGEST_SIZE]; in ecryptfs_derive_iv() local
200 rc = ecryptfs_calculate_md5(dst, crypt_stat, src, in ecryptfs_derive_iv()
207 memcpy(iv, dst, crypt_stat->iv_bytes); in ecryptfs_derive_iv()
873 char dst[MD5_DIGEST_SIZE]; in ecryptfs_compute_root_iv() local
883 rc = ecryptfs_calculate_md5(dst, crypt_stat, crypt_stat->key, in ecryptfs_compute_root_iv()
890 memcpy(crypt_stat->root_iv, dst, crypt_stat->iv_bytes); in ecryptfs_compute_root_iv()
1975 void ecryptfs_encode_for_filename(unsigned char *dst, size_t *dst_size, in ecryptfs_encode_for_filename() argument
2004 if (!dst) in ecryptfs_encode_for_filename()
2020 dst[dst_offset++] = portable_filename_chars[dst_block[0]]; in ecryptfs_encode_for_filename()
2021 dst[dst_offset++] = portable_filename_chars[dst_block[1]]; in ecryptfs_encode_for_filename()
2022 dst[dst_offset++] = portable_filename_chars[dst_block[2]]; in ecryptfs_encode_for_filename()
2023 dst[dst_offset++] = portable_filename_chars[dst_block[3]]; in ecryptfs_encode_for_filename()
2040 ecryptfs_decode_from_filename(unsigned char *dst, size_t *dst_size, in ecryptfs_decode_from_filename() argument
2047 if (dst == NULL) { in ecryptfs_decode_from_filename()
2063 dst[dst_byte_offset] = (src_byte << 2); in ecryptfs_decode_from_filename()
2067 dst[dst_byte_offset++] |= (src_byte >> 4); in ecryptfs_decode_from_filename()
2068 dst[dst_byte_offset] = ((src_byte & 0xF) in ecryptfs_decode_from_filename()
2073 dst[dst_byte_offset++] |= (src_byte >> 2); in ecryptfs_decode_from_filename()
2074 dst[dst_byte_offset] = (src_byte << 6); in ecryptfs_decode_from_filename()
2078 dst[dst_byte_offset++] |= (src_byte); in ecryptfs_decode_from_filename()
2079 dst[dst_byte_offset] = 0; in ecryptfs_decode_from_filename()