Skip to content
This repository was archived by the owner on Apr 25, 2019. It is now read-only.

Added patch for cryptsetup_1.7.1 #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nickabal
Copy link

@nickabal nickabal commented May 15, 2016

# Adding new keyslot, existing passphrase provided,new passphrase provided.
# action crypt_keyslot_add_by_passphrase CRYPT_ACTIVATE_NUKE.

# action crypt_keyslot_add_by_passphrase.

# Trying to open key slot 0 [ACTIVE_LAST].
# Reading key slot 0 area.
# Using userspace crypto wrapper to access keyslot area.
Key slot 0 unlocked.
# Calculating data for key slot 1
# KDF pbkdf2, hash sha1: 1339177 iterations per second (256-bits key).
# Key slot 1 use 2615580 password iterations.
# Using hash sha1 for AF in key slot 1, 4000 stripes
# Updating key slot 1 [0x21000] area.
# Using userspace crypto wrapper to access keyslot area.
# Key slot 1 was enabled in LUKS header.
# Updating LUKS header of size 1024 on device /dev/md127
# Key length 32, device size 7813533696 sectors, header size 2050 sectors.
# Reading LUKS header of size 1024 from device /dev/md127
# Key length 32, device size 7813533696 sectors, header size 2050 sectors.
# Releasing crypt device /dev/md127 context.
# Releasing device-mapper backend.
# Unlocking memory.
Command successful.

@nickabal
Copy link
Author

`bash-4.3$ cd /tmp
bash-4.3$ git clone https://gitlab.com/cryptsetup/cryptsetup.git
Cloning into 'cryptsetup'...
remote: Counting objects: 7385, done.
remote: Compressing objects: 100% (2248/2248), done.
remote: Total 7385 (delta 5123), reused 7372 (delta 5117)
Receiving objects: 100% (7385/7385), 4.02 MiB | 3.39 MiB/s, done.
Resolving deltas: 100% (5123/5123), done.
Checking connectivity... done.
bash-4.3$ cd cryptsetup/
bash-4.3$ ls
ABOUT-NLS COPYING ChangeLog INSTALL NEWS README.md autogen.sh docs man po src
AUTHORS COPYING.LGPL FAQ Makefile.am README TODO configure.ac lib misc python tests
bash-4.3$ wget https://raw.githubusercontent.com/nickabal/cryptsetup-nuke-keys/9c554fbc30fae293c7e6b8a3ec580ed088947249/cryptsetup_1.7.1%2Bnuke_keys.diff
--2016-05-18 14:52:27-- https://raw.githubusercontent.com/nickabal/cryptsetup-nuke-keys/9c554fbc30fae293c7e6b8a3ec580ed088947249/cryptsetup_1.7.1%2Bnuke_keys.diff
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 23.235.47.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|23.235.47.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4955 (4.8K) [text/plain]
Saving to: ‘cryptsetup_1.7.1+nuke_keys.diff’

cryptsetup_1.7.1+nuke_keys.d 100%[=============================================>] 4.84K --.-KB/s in 0s

2016-05-18 14:52:27 (196 MB/s) - ‘cryptsetup_1.7.1+nuke_keys.diff’ saved [4955/4955]

bash-4.3$ patch -p1 < cryptsetup_1.7.1+nuke_keys.diff
patching file lib/libcryptsetup.h
patching file lib/luks1/keymanage.c
patching file lib/setup.c
patching file src/cryptsetup.c
bash-4.3$ ls
ABOUT-NLS COPYING.LGPL INSTALL README autogen.sh docs misc src
AUTHORS ChangeLog Makefile.am README.md configure.ac lib po tests
COPYING FAQ NEWS TODO cryptsetup_1.7.1+nuke_keys.diff man python
bash-4.3$ ./autogen.sh
bash-4.3$ ./configure.sh
bash-4.3$ make
`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant