wok-next rev 20397
Add mbedtls, dislocker
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Dec 02 16:11:25 2017 +0200 (2017-12-02) |
parents | 6196c5e2b89d |
children | 867395afbd02 |
files | dislocker/receipt dislocker/stuff/manpage/dislocker-bek.1 dislocker/stuff/manpage/dislocker-metadata.1 dislocker/stuff/patches/fix-spelling.patch dislocker/stuff/patches/series mbedtls/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dislocker/receipt Sat Dec 02 16:11:25 2017 +0200 1.3 @@ -0,0 +1,37 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +PACKAGE="dislocker" 1.7 +VERSION="0.7.1" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Read/write BitLocker encrypted volumes under Linux" 1.10 +MAINTAINER="al.bobylev@gmail.com" 1.11 +LICENSE="GPL2" 1.12 +WEB_SITE="https://github.com/Aorimn/dislocker" 1.13 + 1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 +WGET_URL="https://github.com/Aorimn/dislocker/archive/v$VERSION.tar.gz" 1.16 + 1.17 +BUILD_DEPENDS="cmake mbedtls-dev fuse-dev" 1.18 + 1.19 +compile_rules() { 1.20 + # Fix v0.7 upstream path error 1.21 + sed -i 's/DIS_MAN \${PROJECT_SOURCE_DIR}/DIS_MAN ../' src/CMakeLists.txt 1.22 + 1.23 + cp $stuff/manpage/* man/linux/ 1.24 + 1.25 + cmake \ 1.26 + -DCMAKE_INSTALL_PREFIX=/usr \ 1.27 + -Dlibdir=/usr/lib \ 1.28 + -D WARN_FLAGS:STRING="-Wall -Wextra" \ 1.29 + . && 1.30 + make && 1.31 + make DESTDIR=$install install || return 1 1.32 + 1.33 + cook_pick_docs README.md CHANGELOG.md 1.34 + cook_pick_manpages man/linux/dislocker-bek.1 man/linux/dislocker-metadata.1 1.35 +} 1.36 + 1.37 +genpkg_rules() { 1.38 + copy @std 1.39 + DEPENDS="fuse mbedtls" 1.40 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/dislocker/stuff/manpage/dislocker-bek.1 Sat Dec 02 16:11:25 2017 +0200 2.3 @@ -0,0 +1,45 @@ 2.4 +.TH dislocker-bek "1" "Jul 2017" "DISLOCKER-BEK 0.7.1" "Reads .BEK files and prints information about them".\" Text automatically generated by txt2man 2.5 +.SH NAME 2.6 +\fBdislocker-bek \fP- Reads .BEK files and prints information about them 2.7 +.SH SYNOPSIS 2.8 +.nf 2.9 +.fam C 2.10 +\fBdislocker-bek\fP [\fB-f\fP file.bek] 2.11 +.fam T 2.12 +.fi 2.13 +.fam T 2.14 +.fi 2.15 +.SH DESCRIPTION 2.16 +Dislocker has been designed to read BitLocker encrypted partitions under 2.17 +a Linux system. The driver used to read volumes encrypted in Windows system 2.18 +versions of the Vista to 10 and BitLocker-To-Go encrypted partitions,that's 2.19 +USB/FAT32 partitions. 2.20 +.PP 2.21 +BEK file is a BitLocker Encryption Key. BitLocker Drive Encryption is a full 2.22 +disk encryption feature included with the Microsoft's Windows versions Vista 2.23 +to 10. It is designed to protect data by providing encryption for entire 2.24 +volumes. 2.25 +.PP 2.26 +The software works with driver composed of a library, with multiple binaries 2.27 +using this library. Decrypting the partition, you have to give it a mount 2.28 +point where, once keys are decrypted, a file named dislocker-file appears. 2.29 +This file is a virtual NTFS partition, so you can mount it as any NTFS 2.30 +partition and then read from or write to it. Writing to the NTFS virtual 2.31 +file will change the underlying BitLocker partition content. 2.32 +.PP 2.33 +This tool is useful in cryptography managing and forensics investigations. 2.34 +.SH OPTIONS 2.35 +.TP 2.36 +.B 2.37 +\fB-h\fP 2.38 +print all options to help 2.39 +.TP 2.40 +.B 2.41 +\fB-f\fP 2.42 +read information about a .bek file 2.43 +.SH AUTHOR 2.44 +The DISLOCKER was written by Romain Coltel <romain.coltel@gmail.com> and 2.45 +Hervé Schauer Consultants <Secretariat@hsc.fr> 2.46 +.PP 2.47 +This manual page was written by Giovani Augusto Ferreira <giovani@debian.org> 2.48 +for the Debian project (but may be used by others).
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/dislocker/stuff/manpage/dislocker-metadata.1 Sat Dec 02 16:11:25 2017 +0200 3.3 @@ -0,0 +1,49 @@ 3.4 +.TH dislocker-metadata "1" "Jul 2017" "DISLOCKER-METADATA 0.7.1" "printing information about a BitLocker-encrypted volume" 3.5 +.\" Text automatically generated by txt2man 3.6 +.SH NAME 3.7 +\fBdislocker-metadata \fP- printing information about a BitLocker-encrypted volume 3.8 +.SH SYNOPSIS 3.9 +.nf 3.10 +.fam C 3.11 +\fBdislocker-metadata\fP [\fIOPTIONS\fP] 3.12 +.fam T 3.13 +.fi 3.14 +.fam T 3.15 +.fi 3.16 +.SH DESCRIPTION 3.17 +Dislocker has been designed to read BitLocker encrypted partitions under 3.18 +a Linux system. The driver used to read volumes encrypted in Windows system 3.19 +versions of the Vista to 10 and BitLocker-To-Go encrypted partitions,that's 3.20 +USB/FAT32 partitions. 3.21 +.PP 3.22 +The software works with driver composed of a library, with multiple binaries 3.23 +using this library. Decrypting the partition, you have to give it a mount 3.24 +point where, once keys are decrypted, a file named dislocker-file appears. 3.25 +This file is a virtual NTFS partition, so you can mount it as any NTFS 3.26 +partition and then read from or write to it. Writing to the NTFS virtual 3.27 +file will change the underlying BitLocker partition content. 3.28 +.PP 3.29 +This tool is useful in cryptography managing and forensics investigations. 3.30 +.SH OPTIONS 3.31 +.TP 3.32 +.B 3.33 +\fB-h\fP 3.34 +print all options to help 3.35 +.TP 3.36 +.B 3.37 +\fB-o\fP 3.38 +partition offset 3.39 +.TP 3.40 +.B 3.41 +\fB-v\fP 3.42 +increase verbosity to debug level 3.43 +.TP 3.44 +.B 3.45 +\fB-V\fP VOLUME 3.46 +volume to get metadata from 3.47 +.SH AUTHOR 3.48 +The DISLOCKER was written by Romain Coltel <romain.coltel@gmail.com> and 3.49 +Hervé Schauer Consultants <Secretariat@hsc.fr> 3.50 +.PP 3.51 +This manual page was written by Giovani Augusto Ferreira <giovani@debian.org> 3.52 +for the Debian project (but may be used by others).
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/dislocker/stuff/patches/fix-spelling.patch Sat Dec 02 16:11:25 2017 +0200 4.3 @@ -0,0 +1,148 @@ 4.4 +Description: Fix a few typos on the manpages and source code. 4.5 +Author: Giovani Augusto Ferreira <giovani@debian.org> 4.6 +Last-Update: 2016-07-07 4.7 +Index: dislocker-0.7.1/man/linux/dislocker-file.1 4.8 +=================================================================== 4.9 +--- dislocker-0.7.1.orig/man/linux/dislocker-file.1 4.10 ++++ dislocker-0.7.1/man/linux/dislocker-file.1 4.11 +@@ -2,7 +2,7 @@ 4.12 + .\" 4.13 + .TH DISLOCKER 1 2011-09-07 "Linux" "DISLOCKER" 4.14 + .SH NAME 4.15 +-Dislocker file - Read BitLocker encrypted volumes under Linux, OSX and FreeBSD. 4.16 ++Dislocker-file \- Read BitLocker encrypted volumes under Linux, OSX and FreeBSD. 4.17 + .SH SYNOPSIS 4.18 + dislocker-file [-hqrsv] [-l \fILOG_FILE\fR] [-O \fIOFFSET\fR] [-V \fIVOLUME\fR \fIDECRYPTMETHOD\fR -F[\fIN\fR]] [--] \fINTFS_FILE\fR 4.19 + 4.20 +@@ -16,7 +16,7 @@ This NTFS file won't have any link with 4.21 + .SH OPTIONS 4.22 + For program's options description, see dislocker-fuse(1). The only change in the command line is the last argument, which in this case is the \fINTFS_FILE\fR argument: 4.23 + .PP 4.24 +-.TB 4.25 ++.TP 4.26 + .B NTFS_FILE 4.27 + the newly created file where NTFS data will be put to, once decrypted from the BitLocker encrypted volume. 4.28 + .SH EXAMPLES 4.29 +Index: dislocker-0.7.1/man/linux/dislocker-fuse.1 4.30 +=================================================================== 4.31 +--- dislocker-0.7.1.orig/man/linux/dislocker-fuse.1 4.32 ++++ dislocker-0.7.1/man/linux/dislocker-fuse.1 4.33 +@@ -2,7 +2,7 @@ 4.34 + .\" 4.35 + .TH DISLOCKER-FUSE 1 2011-09-07 "Linux" "DISLOCKER-FUSE" 4.36 + .SH NAME 4.37 +-Dislocker fuse - Read/write BitLocker encrypted volumes under Linux, OSX and FreeBSD. 4.38 ++Dislocker-fuse \- Read/write BitLocker encrypted volumes under Linux, OSX and FreeBSD. 4.39 + .SH SYNOPSIS 4.40 + dislocker-fuse [-hqrsv] [-l \fILOG_FILE\fR] [-O \fIOFFSET\fR] [-V \fIVOLUME\fR \fIDECRYPTMETHOD\fR -F[\fIN\fR]] [-- \fIARGS\fR...] 4.41 + 4.42 +@@ -49,7 +49,7 @@ do NOT display any information. 4.43 + This option has priority on any previous `\fB-v\fR'. One probably wants to check the return value of the program when using this option 4.44 + .TP 4.45 + .B -r, --readonly 4.46 +-do not allow to write on the BitLocker volume (read only mode) 4.47 ++do not allow one to write on the BitLocker volume (read only mode) 4.48 + .TP 4.49 + .B -s, --stateok 4.50 + do not check the volume's state, assume it's ok to mount it. 4.51 +Index: dislocker-0.7.1/src/metadata/datums.c 4.52 +=================================================================== 4.53 +--- dislocker-0.7.1.orig/src/metadata/datums.c 4.54 ++++ dislocker-0.7.1/src/metadata/datums.c 4.55 +@@ -326,7 +326,7 @@ void print_datum_key(DIS_LOGS level, voi 4.56 + datum_key_t* datum = (datum_key_t*) vdatum; 4.57 + char* cipher_str = cipherstr((cipher_t) datum->algo); 4.58 + 4.59 +- dis_printf(level, "Unkown: \n"); 4.60 ++ dis_printf(level, "Unknown: \n"); 4.61 + hexdump(level, (void*) &datum->padd, 2); 4.62 + dis_printf(level, "Algo: %s (%#hx)\n", cipher_str, datum->algo); 4.63 + dis_printf(level, "Key:\n"); 4.64 +@@ -367,7 +367,7 @@ void print_datum_stretch_key(DIS_LOGS le 4.65 + { 4.66 + datum_stretch_key_t* datum = (datum_stretch_key_t*) vdatum; 4.67 + 4.68 +- dis_printf(level, "Unkown: \n"); 4.69 ++ dis_printf(level, "Unknown: \n"); 4.70 + hexdump(level, (void*) &datum->padd, 2); 4.71 + dis_printf(level, "Algo: %#x\n", datum->algo); 4.72 + dis_printf(level, "Salt: \n"); 4.73 +Index: dislocker-0.7.1/src/metadata/metadata.c 4.74 +=================================================================== 4.75 +--- dislocker-0.7.1.orig/src/metadata/metadata.c 4.76 ++++ dislocker-0.7.1/src/metadata/metadata.c 4.77 +@@ -202,7 +202,7 @@ int dis_metadata_initialize(dis_metadata 4.78 + { 4.79 + dis_printf( 4.80 + L_CRITICAL, 4.81 +- "A problem occured during the retrieving of metadata. Abort.\n" 4.82 ++ "A problem occurred during the retrieving of metadata. Abort.\n" 4.83 + ); 4.84 + return DIS_RET_ERROR_METADATA_CHECK; 4.85 + } 4.86 +Index: dislocker-0.7.1/src/metadata/print_metadata.c 4.87 +=================================================================== 4.88 +--- dislocker-0.7.1.orig/src/metadata/print_metadata.c 4.89 ++++ dislocker-0.7.1/src/metadata/print_metadata.c 4.90 +@@ -59,7 +59,7 @@ void print_volume_header(DIS_LOGS level, 4.91 + format_guid(volume_header->guid, rec_id); 4.92 + 4.93 + 4.94 +- dis_printf(level, "=====[ Volume header informations ]=====\n"); 4.95 ++ dis_printf(level, "=====[ Volume header information ]=====\n"); 4.96 + dis_printf(level, " Signature: '%.8s'\n", volume_header->signature); 4.97 + dis_printf(level, " Sector size: 0x%1$04x (%1$hu) bytes\n", volume_header->sector_size); 4.98 + dis_printf(level, " Sector per cluster: 0x%1$02x (%1$hhu) bytes\n", volume_header->sectors_per_cluster); 4.99 +@@ -122,7 +122,7 @@ void print_information(DIS_LOGS level, d 4.100 + dis_printf(level, " Current state: %s (%hu)\n", get_state_str(information->curr_state), information->curr_state); 4.101 + dis_printf(level, " Next state: %s (%hu)\n", get_state_str(information->next_state), information->next_state); 4.102 + dis_printf(level, " Encrypted volume size: %1$" PRIu64 " bytes (%1$#" PRIx64 "), ~%2$" PRIu64 " MB\n", information->encrypted_volume_size, information->encrypted_volume_size / (1024*1024)); 4.103 +- dis_printf(level, " Size of convertion region: %1$#x (%1$u)\n", information->convert_size); 4.104 ++ dis_printf(level, " Size of conversion region: %1$#x (%1$u)\n", information->convert_size); 4.105 + dis_printf(level, " Number of boot sectors backuped: %1$u sectors (%1$#x)\n", information->nb_backup_sectors); 4.106 + dis_printf(level, " First metadata header offset: %#" PRIx64 "\n", information->information_off[0]); 4.107 + dis_printf(level, " Second metadata header offset: %#" PRIx64 "\n", information->information_off[1]); 4.108 +@@ -187,7 +187,7 @@ void print_eow_infos(DIS_LOGS level, dis 4.109 + 4.110 + bitlocker_eow_infos_t* eow_infos = dis_meta->eow_information; 4.111 + 4.112 +- dis_printf(level, "=======================[ BitLocker EOW informations ]========================\n"); 4.113 ++ dis_printf(level, "=======================[ BitLocker EOW information ]========================\n"); 4.114 + dis_printf(level, " Signature: '%.8s'\n", eow_infos->signature); 4.115 + dis_printf(level, " Structure size: 0x%1$04x (%1$hu)\n", eow_infos->header_size); 4.116 + dis_printf(level, " On-disk size: 0x%1$04x (%1$hu)\n", eow_infos->infos_size); 4.117 +@@ -243,7 +243,7 @@ void print_data(DIS_LOGS level, dis_meta 4.118 + break; 4.119 + 4.120 + dis_printf(level, "\n"); 4.121 +- dis_printf(level, "=======[ Datum n°%d informations ]=======\n", ++loop); 4.122 ++ dis_printf(level, "=======[ Datum n°%d information ]=======\n", ++loop); 4.123 + print_one_datum(level, data); 4.124 + dis_printf(level, "=========================================\n"); 4.125 + 4.126 +Index: dislocker-0.7.1/src/config.c 4.127 +=================================================================== 4.128 +--- dislocker-0.7.1.orig/src/config.c 4.129 ++++ dislocker-0.7.1/src/config.c 4.130 +@@ -181,7 +181,7 @@ PROGNAME " by " AUTHOR ", v" VERSION " ( 4.131 + " -p, --recovery-password=[RECOVERY_PASSWORD]\n" 4.132 + " decrypt volume using the recovery password method\n" 4.133 + " -q, --quiet do NOT display anything\n" 4.134 +-" -r, --readonly do not allow to write on the BitLocker volume\n" 4.135 ++" -r, --readonly do not allow one to write on the BitLocker volume\n" 4.136 + " -s, --stateok do not check the volume's state, assume it's ok to mount it\n" 4.137 + " -u, --user-password=[USER_PASSWORD]\n" 4.138 + " decrypt volume using the user password method\n" 4.139 +Index: dislocker-0.7.1/man/linux/dislocker-find.1 4.140 +=================================================================== 4.141 +--- dislocker-0.7.1.orig/man/linux/dislocker-find.1 4.142 ++++ dislocker-0.7.1/man/linux/dislocker-find.1 4.143 +@@ -2,7 +2,7 @@ 4.144 + .\" 4.145 + .TH DISLOCKER-FIND 1 2011-09-07 "Linux" "DISLOCKER-FIND" 4.146 + .SH NAME 4.147 +-Dislocker find - Find BitLocker-encrypted volumes. 4.148 ++Dislocker-find \- Find BitLocker-encrypted volumes. 4.149 + .SH SYNOPSIS 4.150 + dislocker-find [-h] [files...] 4.151 + .SH DESCRIPTION
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/dislocker/stuff/patches/series Sat Dec 02 16:11:25 2017 +0200 5.3 @@ -0,0 +1,2 @@ 5.4 +# https://packages.debian.org/sid/utils/dislocker 5.5 +fix-spelling.patch
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/mbedtls/receipt Sat Dec 02 16:11:25 2017 +0200 6.3 @@ -0,0 +1,32 @@ 6.4 +# SliTaz package receipt v2. 6.5 + 6.6 +PACKAGE="mbedtls" 6.7 +VERSION="2.6.0" 6.8 +CATEGORY="security" 6.9 +SHORT_DESC="Portable cryptographic and SSL/TLS library (ex polarssl)" 6.10 +MAINTAINER="al.bobylev@gmail.com" 6.11 +LICENSE="Apache" 6.12 +WEB_SITE="https://tls.mbed.org/" 6.13 + 6.14 +TARBALL="$PACKAGE-$VERSION-gpl.tgz" 6.15 +WGET_URL="https://tls.mbed.org/download/$TARBALL" 6.16 + 6.17 +SPLIT="mbedtls-dev" 6.18 + 6.19 +compile_rules() { 6.20 + sed -i -e 's|//\(#define MBEDTLS_THREADING_C\)|\1|' \ 6.21 + -e 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' \ 6.22 + include/mbedtls/config.h 6.23 + sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h 6.24 + 6.25 + LDFLAGS="$LDFLAGS -I../include " \ 6.26 + make SHARED=1 no_test && 6.27 + make DESTDIR=$install/usr install 6.28 +} 6.29 + 6.30 +genpkg_rules() { 6.31 + case $PACKAGE in 6.32 + mbedtls) copy @std;; 6.33 + *-dev) copy @dev;; 6.34 + esac 6.35 +}