Lines Matching refs:data
9 * This utility will decrypt files and print the decrypted data on the standard
428 if (gcry_mpi_scan(&rm[i], GCRYMPI_FMT_USG, rd[i].data,
439 if (rd[j].data && rd[j].size)
440 gnutls_free(rd[j].data);
496 dpfx.data = pfx;
564 ntfs_log_error("Failed to obtain Bag data: "
625 ntfs_log_error("Failed to obtain Bag data: "
817 /* Convert the decrypted FEK from MPI format to binary data. */
822 "key from internal MPI format to binary data: "
1012 ntfs_log_error("Failed to des decrypt test data (error "
1247 * Depending on whether the key is a normal key or a data recovery key,
1276 static int ntfs_fek_decrypt_sector(ntfs_fek *fek, u8 *data, const u64 offset)
1297 err = ntfs_desx_decrypt(fek, &data[k], &data[k]);
1300 err = gcry_cipher_decrypt(fek->gcry_cipher_hd, data, 512, NULL, 0);
1307 ((le64*)data)[0] ^= cpu_to_le64(0x5816657be9161312ULL + offset);
1308 ((le64*)data)[1] ^= cpu_to_le64(0x1989adbe44918961ULL + offset);
1311 ((le64*)data)[0] ^= cpu_to_le64(0x169119629891ad13ULL + offset);
1319 static int ntfs_fek_encrypt_sector(ntfs_fek *fek, u8 *data, const u64 offset)
1337 ((le64*)data)[0] ^= cpu_to_le64(0x5816657be9161312ULL + offset);
1338 ((le64*)data)[1] ^= cpu_to_le64(0x1989adbe44918961ULL + offset);
1341 ((le64*)data)[0] ^= cpu_to_le64(0x169119629891ad13ULL + offset);
1348 err = ntfs_desx_encrypt(fek, &data[k], &data[k]);
1351 err = gcry_cipher_encrypt(fek->gcry_cipher_hd, data, 512, NULL, 0);
1404 ntfs_log_perror("ERROR: Couldn't decrypt all data!");
1414 ntfs_log_perror("ERROR: Couldn't output all data!");
1456 ntfs_log_error("The data stream was not encrypted\n");
1462 ntfs_log_error("Failed to truncate the data stream\n");
1470 ntfs_log_perror("ERROR: Couldn't read data");
1473 /* Fill with random data */
1503 ntfs_log_perror("ERROR: Couldn't encrypt all data!");
1511 ntfs_log_perror("ERROR: Couldn't output all data!");